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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81f0d2fe698cac2db1ccf56dc0d7acf57cca4baf
|
4
|
+
data.tar.gz: e616ed1e42c48a9ebcd3ba129c7ab89ad581373a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cfe9480badc022cba89c2682e426769f1c235a5fffdb34dd8a4fc910275d3e382f1ba36e5fe727296dcbe6dc5b400bbd2bf6ffd500ec1a0cf89d2cda64e7a19
|
7
|
+
data.tar.gz: 0ea03b0afec02db914b7e50d40a17134edfe631fa498673def3dd060f01df3ffc230030ef31eb85f3f4cd02368075d5d1c4bce92ba3b5bc72329ea9fc6a1a6ee
|
@@ -6,27 +6,29 @@ module Crabfarm
|
|
6
6
|
extend self
|
7
7
|
|
8
8
|
def build_chrome_driver(_options={})
|
9
|
-
|
9
|
+
capabilities = Selenium::WebDriver::Remote::Capabilities.chrome
|
10
10
|
|
11
11
|
if _options[:proxy].present?
|
12
|
-
|
13
|
-
|
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, :
|
18
|
+
common_setup Selenium::WebDriver.for(:chrome, :desired_capabilities => capabilities), _options
|
17
19
|
end
|
18
20
|
|
19
21
|
def build_firefox_driver(_options={})
|
20
|
-
|
22
|
+
capabilities = Selenium::WebDriver::Remote::Capabilities.firefox
|
21
23
|
|
22
24
|
if _options[:proxy].present?
|
23
|
-
|
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, :
|
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.
|
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.
|
10
|
+
gem "selenium-webdriver", "~> 2.47"
|
11
11
|
|
12
12
|
group :test do
|
13
13
|
gem "rspec", "~> 3.2.0"
|
data/lib/crabfarm/version.rb
CHANGED
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.
|
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.
|
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.
|
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.
|
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.
|
200
|
+
version: 0.2.1
|
201
201
|
- !ruby/object:Gem::Dependency
|
202
202
|
name: bundler
|
203
203
|
requirement: !ruby/object:Gem::Requirement
|