ae_page_objects 6.0.0.pre1 → 6.0.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
  SHA256:
3
- metadata.gz: d03326a2bcedb51c1d268690baee1c9adea3c44cada101beaa4f414c22a74946
4
- data.tar.gz: 80e7c8b74ee935f28e1b80c7c698659d6d9f58b9886d087f10f8e3f2ee191820
3
+ metadata.gz: 821e62b026f7ce8c826470730f1e4f582ca4f2e5a253730204288b282c4dec7b
4
+ data.tar.gz: fd777245e7db9fb50691bfbd0a4ccf2ae153bf055178615afbe77cf5896c66cd
5
5
  SHA512:
6
- metadata.gz: 4f4f9b6b8042099edbba969631a2c09ac94466cb62ec898d8249c81eac70052a100ca79d400b0aef4fb6e32f40bf06cf93e4fafee641f6241be4d2e66d69de3b
7
- data.tar.gz: b787fa1e7d7ed7bcc76ddfe44061092b9807a3454188e7d0d4e16550231decfc670f022c4b24cdd186fad7c22c4179e39b3cb310a87793acc3a1c3a5c2b6fb06
6
+ metadata.gz: 3243021458e14158adb012befea9abc50ba39f4ef470f274535e685168a79049f99e35341105a1a1dd721bda3e1bdb02b31e035720811760f2186e1144a9fb68
7
+ data.tar.gz: 58dfab715e70b7f65059931b207b7faee6aa4f653ccd78d4a5dc10def861df46c29c5b284cea566c6372111a0cb60b3f6be6c2c9f14e265252a5ad58561cc696
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.license = 'MIT'
16
16
  spec.files = Dir['**/*'].select { |f| f[%r{^(lib/|LICENSE.txt|.*gemspec)}] }
17
17
  spec.require_paths = ['lib']
18
- spec.required_ruby_version = Gem::Requirement.new('>= 3')
18
+ spec.required_ruby_version = Gem::Requirement.new('>= 2.7.5')
19
19
 
20
20
  spec.metadata['allowed_push_host'] = 'https://rubygems.org'
21
21
 
@@ -117,13 +117,18 @@ module AePageObjects
117
117
 
118
118
  default_options = { minimum: 0 }
119
119
  if locator.last.is_a?(::Hash)
120
- default_options.merge!(locator.pop)
120
+ locator[-1] = default_options.merge(locator.last)
121
+ else
122
+ locator.push(default_options)
121
123
  end
122
124
 
125
+ locator_copy = locator.dup
126
+ options = locator_copy.pop
127
+
123
128
  if @wait
124
- node = AePageObjects.wait_until { parent.node.first(*locator, **default_options) }
129
+ node = AePageObjects.wait_until { parent.node.first(*locator_copy, **options) }
125
130
  else
126
- node = parent.node.first(*locator, **default_options)
131
+ node = parent.node.first(*locator_copy, **options)
127
132
  raise LoadingElementFailed, 'Element Not Found' unless node
128
133
  end
129
134
  node.allow_reload!
@@ -22,10 +22,15 @@ module AePageObjects
22
22
  else
23
23
  default_options = { wait: false }
24
24
  if locator.last.is_a?(::Hash)
25
- default_options.merge!(locator.pop)
25
+ locator[-1] = default_options.merge(locator.last)
26
+ else
27
+ locator.push(default_options)
26
28
  end
27
29
 
28
- node.all(*locator, **default_options).any?
30
+ locator_copy = locator.dup
31
+ options = locator_copy.pop
32
+
33
+ node.all(*locator_copy, **options).any?
29
34
  end
30
35
  end
31
36
 
@@ -1,3 +1,3 @@
1
1
  module AePageObjects
2
- VERSION = '6.0.0.pre1'.freeze
2
+ VERSION = '6.0.0'.freeze
3
3
  end
@@ -0,0 +1,17 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+
3
+ # Maintain your gem's version:
4
+ require "forum/version"
5
+
6
+ # Describe your gem and declare its dependencies:
7
+ Gem::Specification.new do |s|
8
+ s.name = "forum"
9
+ s.version = Forum::VERSION
10
+ s.authors = "Appfolio"
11
+ s.summary = "forum engine"
12
+ s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.rdoc"]
13
+ s.test_files = Dir["test/**/*"]
14
+
15
+ s.add_dependency "rails", "> 3"
16
+ s.add_development_dependency "sqlite3"
17
+ 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: 6.0.0.pre1
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-14 00:00:00.000000000 Z
11
+ date: 2023-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -66,6 +66,7 @@ files:
66
66
  - lib/ae_page_objects/util/internal_helpers.rb
67
67
  - lib/ae_page_objects/util/wait_time_manager.rb
68
68
  - lib/ae_page_objects/version.rb
69
+ - test/test_apps/shared/engines/forum/forum.gemspec
69
70
  homepage: https://github.com/appfolio/ae_page_objects
70
71
  licenses:
71
72
  - MIT
@@ -79,14 +80,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
79
80
  requirements:
80
81
  - - ">="
81
82
  - !ruby/object:Gem::Version
82
- version: '3'
83
+ version: 2.7.5
83
84
  required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  requirements:
85
- - - ">"
86
+ - - ">="
86
87
  - !ruby/object:Gem::Version
87
- version: 1.3.1
88
+ version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.4.6
90
+ rubygems_version: 3.3.26
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Capybara Page Objects pattern.