ae_page_objects 3.0.0 → 3.1.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: 79847ab6fa6a51c16ec5127b80cc6e42035abfde
4
- data.tar.gz: d20bbebe4ef811ccf92b75e15a3231957fd37fe1
3
+ metadata.gz: b2664086f0c22e4c15e353f3b0152b10aed6c31d
4
+ data.tar.gz: 5f553d03946d8e06f62de24100607fe011e21d24
5
5
  SHA512:
6
- metadata.gz: 38aa636f72ece06a5c8722085e898736bc57db7b362c2f54752ec9878a585d8e9d10e6dddd090457ce0778e0909704a33b3e3daa654070345a13092845aa5feb
7
- data.tar.gz: e75ab259fc8c46c28c1416622af05f6e65081e4f647e9a481c41463c30ae27a9c0267cc834c4e45212aa75b6eaceee5c40cdaaaaed7518ec1bb29d2ba35f013e
6
+ metadata.gz: 9b18723adb35ef95de606e9216076d223c660137458df5329ad10c28b4d7a7a02c70edc9a61ab1f3ed0b02889551f8e44e55b5185c10d807b4756013794dd446
7
+ data.tar.gz: 11cf83109a962f1fc0f0154beefcd3fcf04f13ba04ff12cf75a0c3c5ee35e9b9beaecf9d47569b5c16ac5dbccf4efe7ef96896fc79b89250d2c7226f0045c97c
@@ -103,7 +103,7 @@ module AePageObjects
103
103
  end
104
104
  end
105
105
 
106
- class Rails4 < Rails32
106
+ class Rails4Plus < Rails32
107
107
 
108
108
  private
109
109
 
@@ -130,20 +130,19 @@ module AePageObjects
130
130
  end
131
131
  end
132
132
 
133
- private
133
+ private
134
134
 
135
135
  def recognizer
136
- @recognizer ||= begin
137
- if ::Rails.version =~ /\A3\.[01]/
136
+ @recognizer ||= case ::Rails.version
137
+ when /\A3\.[01]/
138
138
  Recognizer::Rails3.new
139
- elsif ::Rails.version =~ /\A3\.2/
139
+ when /\A3\.2/
140
140
  Recognizer::Rails32.new
141
- elsif ::Rails.version =~ /\A4\.[012]/
142
- Recognizer::Rails4.new
141
+ when /\A(4\.[012]|5\.0)/
142
+ Recognizer::Rails4Plus.new
143
143
  else
144
144
  warn "[WARNING]: AePageObjects is not tested against Rails #{::Rails.version} and may behave in an undefined manner."
145
- Recognizer::Rails4.new
146
- end
145
+ Recognizer::Rails4Plus.new
147
146
  end
148
147
  end
149
148
  end
@@ -1,3 +1,3 @@
1
1
  module AePageObjects
2
- VERSION = '3.0.0'.freeze
2
+ VERSION = '3.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_page_objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donnie Tognazzini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-28 00:00:00.000000000 Z
11
+ date: 2017-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.4.5.1
83
+ rubygems_version: 2.6.12
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Capybara Page Objects pattern