cuculungwa 0.0.32 → 0.0.33

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cuculungwa.rb +3 -2
  3. metadata +23 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 804247d9a857cbc37515f942db58d19571fd6edc
4
- data.tar.gz: 2806025d1db2c2c2847cfb2e983e8c6af1ccd294
3
+ metadata.gz: 4a2695ed2c79462965677fc2e3c69c200a47e2b0
4
+ data.tar.gz: 0b6ef838109572af22f1617de9014863f12340e0
5
5
  SHA512:
6
- metadata.gz: 67fbc5e5c9ff810fed3c0001e0f2a854831e2dd073289a5d9577bdc8e6e99364e9e80ca1c6c70c02fe1823074381abf4d1acb4d0b15f6b4e948dd582b903d711
7
- data.tar.gz: afb20f2278e771738d30a77b93ecc7dcc8d26d9a9d9fa7c73cba5346c5842bdc8abd73f96a32359f3ebfa2e60e9e6f15b45763c5a9cd1cc3e25387641a0dad81
6
+ metadata.gz: 5060b3aa2598f2911523fff31e3a0f23bfb3ec8cd4c6e6fb900d51e6a02b7da561bc258a3afdd6df04a39f296d0209d0cf2c293aa7ce4a2a9d24732b312f7bcf
7
+ data.tar.gz: 48d4227ab7d8fcb6cba10403ea82096e91e60bb9b4ef22e77fb34c9e39816a4b96295117916b8f1e42bfc3c7b18fb1286603ecaf3c35ff741dc388da25f2f3ce
data/lib/cuculungwa.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'i18n'
2
+ require 'headless'
2
3
  require 'capybara'
3
4
  require 'capybara-webkit'
4
5
  require 'capybara/dsl'
@@ -24,14 +25,14 @@ if config['capybara']['browser']=='phantomjs'
24
25
  end
25
26
  Capybara.default_driver = :poltergeist
26
27
  elsif config['capybara']['browser']=='capybara-webkit'
28
+ headless = Headless.new
29
+ headless.start
27
30
  Capybara.register_driver :webkit do |app|
28
31
  driver = Capybara::Webkit::Driver.new(app)
29
32
  driver.browser.ignore_ssl_errors
30
33
  driver
31
34
  end
32
35
  Capybara.default_driver = :webkit
33
- Capybara.javascript_driver = :webkit
34
-
35
36
  else
36
37
  Capybara.register_driver :selenium do |app|
37
38
  Capybara::Selenium::Driver.new(app, :browser => config['capybara']['browser'].to_sym)
metadata CHANGED
@@ -1,15 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuculungwa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michal Kaftanski
8
8
  - Jakub Kubiak
9
+ - Tomasz Tokarski
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2014-12-08 00:00:00.000000000 Z
13
+ date: 2014-12-09 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
16
  name: aruba
@@ -191,6 +192,26 @@ dependencies:
191
192
  - - ">="
192
193
  - !ruby/object:Gem::Version
193
194
  version: 1.3.1
195
+ - !ruby/object:Gem::Dependency
196
+ name: headless
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 1.0.2
202
+ - - ">="
203
+ - !ruby/object:Gem::Version
204
+ version: 1.0.2
205
+ type: :runtime
206
+ prerelease: false
207
+ version_requirements: !ruby/object:Gem::Requirement
208
+ requirements:
209
+ - - "~>"
210
+ - !ruby/object:Gem::Version
211
+ version: 1.0.2
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: 1.0.2
194
215
  - !ruby/object:Gem::Dependency
195
216
  name: i18n
196
217
  requirement: !ruby/object:Gem::Requirement