ikm-chromedriver-helper 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a61bdbbd1f0835ac63b664a67950adf69ade6f5
4
- data.tar.gz: 7c85f6f36afdf958b833d4f18bb3caa79219bad9
3
+ metadata.gz: 59f10284be5ffbe0706170f875fc2888e88acffb
4
+ data.tar.gz: 4cb36e09b86af3acf15c840dc1076eac6bb9b95c
5
5
  SHA512:
6
- metadata.gz: 0319377ff3681e2285fb702d4a9dae83cf2f44252e5bfb232542834460b6410b07e838882c6b440ca9596d63e471899540319ba80e7cdb6fb01e140e69d06004
7
- data.tar.gz: b52a23df4e50fd09790b4d7e79bbab0f6049bc94b32327eec728198f4049688736d2b0b04b166eff6f70e2366c1a7b3e7df39b763221ab510d598ed37f3aa674
6
+ metadata.gz: 367c089713bf8b76c4b38b20ae4ffd5d21c7c87a55ea7f410b5e18c489a6addc439918e350b1caba2fec49a3b53a5aa832e141af59144519c5794a8ceee175f1
7
+ data.tar.gz: 363c71c828de190d7108d433c2a0dab4034a05427f7049bd9b0f436d6175a092cdf65105d469277069f63ce21e6b05f55b5b7ab30db7570de652c68f51c950b3
@@ -20,4 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.add_development_dependency "rake"
21
21
  s.add_runtime_dependency "nokogiri"
22
22
  s.add_runtime_dependency "version_sorter"
23
+ s.add_runtime_dependency "download"
23
24
  end
@@ -2,6 +2,7 @@ require "chromedriver/helper/version"
2
2
  require "chromedriver/helper/google_code_parser"
3
3
  require 'fileutils'
4
4
  require 'rbconfig'
5
+ require 'download'
5
6
 
6
7
  module Chromedriver
7
8
  class Helper
@@ -17,7 +18,7 @@ module Chromedriver
17
18
  filename = File.basename url
18
19
  Dir.chdir platform_install_dir do
19
20
  system "rm #{filename}" if File.exists? filename
20
- system("wget -c -O #{filename} #{url}") || system("curl -C - -o #{filename} #{url}")
21
+ Download.file url, filename
21
22
  raise "Could not download #{url}" unless File.exists? filename
22
23
  system "unzip -o #{filename}"
23
24
  end
@@ -1,5 +1,5 @@
1
1
  module Chromedriver
2
2
  class Helper
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ikm-chromedriver-helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Dalessio
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: download
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: Easy installation and use of chromedriver, the Chromium project's selenium
70
84
  webdriver adapter. Forked from chromedriver-helper.
71
85
  email: