Skip to content

Commit

Permalink
Merge pull request #344 from mcorino/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
mcorino authored Dec 28, 2024
2 parents e66cace + a1e7047 commit 53dd06a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions rakelib/gem.rb
Original file line number Diff line number Diff line change
Expand Up @@ -214,16 +214,18 @@ def install_gem(prebuilt_only: false, package: nil)
end
elsif uri.scheme == 'http' || uri.scheme == 'https'
# download the binary release package
$stdout.puts "Downloading #{uri.path}..."
$stdout.puts "Downloading #{uri}..."
filename = File.basename(uri.path)
if WXRuby3.config.download_file(uri.path, filename)
if WXRuby3.config.download_file(uri.to_s, filename)
sha_file = File.basename(filename, '.*')+DIGEST_EXT
uri.path = File.join(File.dirname(uri.path), sha_file)
unless WXRuby3.config.download_file(uri.path, sha_file)
sha_uri = File.join(File.dirname(uri.to_s), sha_file)
unless WXRuby3.config.download_file(sha_uri, sha_file)
$stderr.puts "ERROR: Unable to download digest signature for binary release package : #{package}"
exit(1)
end
exit(1) unless install_bin_pkg(filename)
# cleanup, remove downloaded files
FileUtils.rm_f([filename, sha_file])
true
else
$stderr.puts "ERROR: Unable to download binary release package (#{package})!"
Expand All @@ -241,6 +243,8 @@ def install_gem(prebuilt_only: false, package: nil)
exit(1)
end
exit(1) unless install_bin_pkg(bin_pkg_name+BINPKG_EXT)
# cleanup, remove downloaded files
FileUtils.rm_f([bin_pkg_name+BINPKG_EXT, bin_pkg_name+DIGEST_EXT])
true
else
if prebuilt_only
Expand Down
6 changes: 3 additions & 3 deletions tests/test_event_handling.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def test_event
assert(win.child.test_event)
win.reset
evt = TestEvent.new
evt.value = 'Something happened'
evt.value = 'Something happened'.dup
win.process_event(evt)
evt.value << ' again'
assert(win.test_event)
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_queue_event
assert_false(win.child.test_cmd_event)
win.reset
evt = TestEvent.new
evt.value = 'Something happened'
evt.value = 'Something happened'.dup
win.queue_event(evt)
evt.value << ' again'
Wx.get_app.yield
Expand Down Expand Up @@ -202,7 +202,7 @@ def test_pending_event
assert_false(win.child.test_cmd_event)
win.reset
evt = TestEvent.new
evt.value = 'Something happened'
evt.value = 'Something happened'.dup
win.add_pending_event(evt)
evt.value << ' again'
Wx.get_app.yield
Expand Down

0 comments on commit 53dd06a

Please sign in to comment.