cucumis 0.7.0 → 0.8.0

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: a4adb913554f1f5841893d03efc2de9521b423e4
4
- data.tar.gz: '094851871eacf02ef6852cec0b9b50bac211e486'
3
+ metadata.gz: c8ecaa6be8a32f0bd664ea18bf1cee83f2a2c42c
4
+ data.tar.gz: 412d32d0b01e8bef738ff4b77fd1c6e5e02a699c
5
5
  SHA512:
6
- metadata.gz: dccd05354c1ae3aa1defcaf7694f9cdecb047db96984fb01970a02536dc626f2f91cac6792839870ff47cb3237e8bad1e3115afd33289a2d9d6330d8b714b390
7
- data.tar.gz: ddf5051ac243d14b218046966701421d28427a1ec17218378fa5c170524094a7d32fd1b1af8f5abdc18c9c61ed7c712ace99f016176d9353fc1f8167db58b7e3
6
+ metadata.gz: 042770ef94331d740da5da1f32638a3d7b11e2d94c1287724f3fef8d984a50363317f1c0e99539419ef374ee70ffc75c1a0a0804dfa0c9610b12fc95f79ded61
7
+ data.tar.gz: b806f31485ee763bf6148d32b314e4920210295d2885f97e63500e59049a9d65688b76b944663c792b80565d3b66a7711a3c0e7a3b6ee9d625f0ae9db0081b50
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ AllCops:
5
5
  - bin/**/*
6
6
  - features/**/*
7
7
 
8
- Style/DotPosition:
8
+ Layout/DotPosition:
9
9
  EnforcedStyle: trailing
10
10
 
11
11
  Style/Documentation:
@@ -17,10 +17,10 @@ Style/FrozenStringLiteralComment:
17
17
  Style/CommandLiteral:
18
18
  EnforcedStyle: mixed
19
19
 
20
- Style/MultilineOperationIndentation:
20
+ Layout/MultilineOperationIndentation:
21
21
  EnforcedStyle: indented
22
22
 
23
- Style/SpaceInsideHashLiteralBraces:
23
+ Layout/SpaceInsideHashLiteralBraces:
24
24
  Enabled: false
25
25
 
26
26
  Metrics/LineLength:
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumis (0.7.0)
4
+ cucumis (0.8.0)
5
5
  capybara-webkit (~> 1.14)
6
6
  chromedriver-helper (~> 1.0)
7
7
  cucumber (~> 2.4)
@@ -64,6 +64,7 @@ GEM
64
64
  multi_test (0.1.2)
65
65
  nokogiri (1.7.1)
66
66
  mini_portile2 (~> 2.1.0)
67
+ parallel (1.11.2)
67
68
  parser (2.4.0.0)
68
69
  ast (~> 2.2)
69
70
  poltergeist (1.15.0)
@@ -78,11 +79,12 @@ GEM
78
79
  rainbow (2.2.2)
79
80
  rake
80
81
  rake (12.0.0)
81
- rspec-expectations (3.5.0)
82
+ rspec-expectations (3.6.0)
82
83
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.5.0)
84
- rspec-support (3.5.0)
85
- rubocop (0.48.1)
84
+ rspec-support (~> 3.6.0)
85
+ rspec-support (3.6.0)
86
+ rubocop (0.49.0)
87
+ parallel (~> 1.10)
86
88
  parser (>= 2.3.3.1, < 3.0)
87
89
  powerpack (~> 0.1)
88
90
  rainbow (>= 1.99.1, < 3.0)
@@ -0,0 +1,13 @@
1
+ module Cucumis
2
+ module Capybara
3
+ def safe_click(element)
4
+ if %i[selenium chrome].include?(::Capybara.current_driver)
5
+ element.click
6
+ else
7
+ element.trigger('click')
8
+ end
9
+ end
10
+ end
11
+ end
12
+
13
+ World(Cucumis::Capybara)
@@ -1,3 +1,3 @@
1
1
  module Cucumis
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.8.0'.freeze
3
3
  end
data/lib/cucumis.rb CHANGED
@@ -8,6 +8,7 @@ require 'cucumis/active_record'
8
8
  require 'cucumis/table'
9
9
  require 'cucumis/debug'
10
10
  require 'cucumis/page'
11
+ require 'cucumis/capybara'
11
12
  require 'cucumis/version'
12
13
 
13
14
  module Cucumis
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Falkowski
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-04 00:00:00.000000000 Z
11
+ date: 2017-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -170,6 +170,7 @@ files:
170
170
  - cucumis.gemspec
171
171
  - lib/cucumis.rb
172
172
  - lib/cucumis/active_record.rb
173
+ - lib/cucumis/capybara.rb
173
174
  - lib/cucumis/chrome.rb
174
175
  - lib/cucumis/debug.rb
175
176
  - lib/cucumis/page.rb