crabfarm 0.6.0 → 0.6.1

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: 425cdb9cbc7e43b16e7ab9a7d8ef5f187f95d07d
4
- data.tar.gz: a8f7360685f9febdb8e9076586ab1e856f6c0323
3
+ metadata.gz: 81f0d2fe698cac2db1ccf56dc0d7acf57cca4baf
4
+ data.tar.gz: e616ed1e42c48a9ebcd3ba129c7ab89ad581373a
5
5
  SHA512:
6
- metadata.gz: 203b29582a08881d693923620e7cb601433be93edf3551f8daebc414fff2aca12e3bfcc34b3e81b0d045921cfbb5ad74a47e7d3858925c31bf300e995107b33d
7
- data.tar.gz: 8b2215150d4976599385b2da16b1b5cb89f169ef6b0ba41b3e719cd56fc8d68b2c061d015cece7523ad72ec95378c9c49ad0faa292259a5f7645c17cc4af273d
6
+ metadata.gz: 9cfe9480badc022cba89c2682e426769f1c235a5fffdb34dd8a4fc910275d3e382f1ba36e5fe727296dcbe6dc5b400bbd2bf6ffd500ec1a0cf89d2cda64e7a19
7
+ data.tar.gz: 0ea03b0afec02db914b7e50d40a17134edfe631fa498673def3dd060f01df3ffc230030ef31eb85f3f4cd02368075d5d1c4bce92ba3b5bc72329ea9fc6a1a6ee
@@ -54,6 +54,7 @@ module Crabfarm
54
54
  cmd << "--webdriver=#{port}"
55
55
  cmd << "--ssl-protocol=#{@config[:ssl]}" unless @config[:ssl].nil?
56
56
  cmd << "--ignore-ssl-errors=true"
57
+ cmd << "--web-security=false"
57
58
  cmd << "--webdriver-loglevel=WARN"
58
59
  cmd
59
60
  end
@@ -6,27 +6,29 @@ module Crabfarm
6
6
  extend self
7
7
 
8
8
  def build_chrome_driver(_options={})
9
- switches = []
9
+ capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
10
10
 
11
11
  if _options[:proxy].present?
12
- switches << "--proxy-server=#{_options[:proxy]}"
13
- switches << "--ignore-certificate-errors"
12
+ capabilities.proxy = Selenium::WebDriver::Proxy.new({
13
+ :http => _options[:proxy],
14
+ :ssl => _options[:proxy]
15
+ })
14
16
  end
15
17
 
16
- common_setup Selenium::WebDriver.for(:chrome, :switches => switches), _options
18
+ common_setup Selenium::WebDriver.for(:chrome, :desired_capabilities => capabilities), _options
17
19
  end
18
20
 
19
21
  def build_firefox_driver(_options={})
20
- profile = Selenium::WebDriver::Firefox::Profile.new
22
+ capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
21
23
 
22
24
  if _options[:proxy].present?
23
- profile.proxy = Selenium::WebDriver::Proxy.new({
25
+ capabilities.proxy = Selenium::WebDriver::Proxy.new({
24
26
  :http => _options[:proxy],
25
27
  :ssl => _options[:proxy]
26
28
  })
27
29
  end
28
30
 
29
- common_setup Selenium::WebDriver.for(:firefox, :profile => profile), _options
31
+ common_setup Selenium::WebDriver.for(:firefox, desired_capabilities: capabilities), _options
30
32
  end
31
33
 
32
34
  def build_remote_driver(_options={})
@@ -1,13 +1,13 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gem "crabfarm", '<%= version %>'
4
- gem "pincers", '~> 0.2.0'
4
+ gem "pincers", '~> 0.2.1'
5
5
 
6
6
  # Comment this if not using a nokogiri based parser or browser
7
7
  gem 'nokogiri', "~> 1.6.6"
8
8
 
9
9
  # Comment this if not using a selenium webdriver based driver
10
- gem "selenium-webdriver", "~> 2.45"
10
+ gem "selenium-webdriver", "~> 2.47"
11
11
 
12
12
  group :test do
13
13
  gem "rspec", "~> 3.2.0"
@@ -1,3 +1,3 @@
1
1
  module Crabfarm
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crabfarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ignacio Baixas
@@ -162,14 +162,14 @@ dependencies:
162
162
  requirements:
163
163
  - - ~>
164
164
  - !ruby/object:Gem::Version
165
- version: '2.45'
165
+ version: '2.47'
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: !ruby/object:Gem::Requirement
169
169
  requirements:
170
170
  - - ~>
171
171
  - !ruby/object:Gem::Version
172
- version: '2.45'
172
+ version: '2.47'
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: nokogiri
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -190,14 +190,14 @@ dependencies:
190
190
  requirements:
191
191
  - - ~>
192
192
  - !ruby/object:Gem::Version
193
- version: 0.2.0
193
+ version: 0.2.1
194
194
  type: :development
195
195
  prerelease: false
196
196
  version_requirements: !ruby/object:Gem::Requirement
197
197
  requirements:
198
198
  - - ~>
199
199
  - !ruby/object:Gem::Version
200
- version: 0.2.0
200
+ version: 0.2.1
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: bundler
203
203
  requirement: !ruby/object:Gem::Requirement