lib/dryrun/dryrun_utils.rb in dryrun-1.2.1 vs lib/dryrun/dryrun_utils.rb in dryrun-1.3.0
- old
+ new
@@ -25,11 +25,11 @@
if Gem.win_platform?
open(url, ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE) do |f|
page_string = f.read
end
else
- open(url) do |f|
+ URI.open(url) do |f|
page_string = f.read
end
end
page_string[/#{Regexp.escape('\'')}(.*?)#{Regexp.escape('\'')}/m, 1]
@@ -38,10 +38,10 @@
def self.up_to_date
latest = latest_version
latest.to_s <= Dryrun::VERSION.to_s
end
- def self.run_adb(args) # :yields: stdout
+ def self.run_adb(args)
adb_arg = " -s #{$device.name} " unless $device.nil?
path = "#{$sdk} #{adb_arg} #{args} "
run(path)
end