screengem 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -5
- data/.ruby-version +1 -1
- data/CHANGELOG.md +18 -0
- data/Gemfile +5 -5
- data/lib/screengem/screen_element.rb +6 -3
- data/lib/screengem/version.rb +1 -1
- data/screengem.gemspec +5 -5
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2671251040c1fe2f8a62b7961e8774b653558cb5b442c0e705c6085a98fd544f
|
4
|
+
data.tar.gz: 0b10f759cd95a57a852a844284f2601c2bf625f72962654ca1b9bf66fff4a656
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8014e0fdc10f49fe2022ca142da028467740ea0338d4d6c1568acd591d259e3b08d5c6888e9bf49fccba7983c857c8fa10d0dad085bc72c3fea1025e06990419
|
7
|
+
data.tar.gz: 76bd90f98d2636138aa04f4cbff34e1b73885332617bca617f0189af352749c4cd5824ac243b4357ac1d6735c15302803bbae7026399f188121647ad5c6a53ac
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.3.6
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,24 @@
|
|
2
2
|
|
3
3
|
## main (unreleased)
|
4
4
|
|
5
|
+
## 0.22.0 (2025-06-21)
|
6
|
+
|
7
|
+
* Support Rails 7.2.x
|
8
|
+
* Latest development dependencies
|
9
|
+
* Address rubocop violations
|
10
|
+
|
11
|
+
### Breaking Changes
|
12
|
+
|
13
|
+
* Drop support for Rails 6.x
|
14
|
+
* Drop support for Ruby 3.2
|
15
|
+
|
16
|
+
## 0.21.2 (2024-10-03)
|
17
|
+
|
18
|
+
### Bug fixes
|
19
|
+
|
20
|
+
* Restore behaviour of URI auto visit for screen elements
|
21
|
+
that define a visit_path that contains a query
|
22
|
+
|
5
23
|
## 0.21.1 (2024-10-03)
|
6
24
|
|
7
25
|
### Bug fixes
|
data/Gemfile
CHANGED
@@ -7,10 +7,10 @@ gemspec
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "rake", "~> 13.0"
|
10
|
-
gem "rspec", "~> 3.
|
11
|
-
gem "rubocop", "~> 1.
|
12
|
-
gem "rubocop-performance", "~> 1.
|
13
|
-
gem "rubocop-rake", "~> 0.
|
14
|
-
gem "rubocop-rspec", "~>
|
10
|
+
gem "rspec", "~> 3.13"
|
11
|
+
gem "rubocop", "~> 1.77"
|
12
|
+
gem "rubocop-performance", "~> 1.25"
|
13
|
+
gem "rubocop-rake", "~> 0.7"
|
14
|
+
gem "rubocop-rspec", "~> 3.6"
|
15
15
|
gem "simplecov", "~> 0.22"
|
16
16
|
end
|
@@ -25,14 +25,17 @@ module Screengem
|
|
25
25
|
|
26
26
|
#
|
27
27
|
# Screen elements may define a visit_path that includes these elements
|
28
|
-
# of a URI: the path, a query string, and a fragment.
|
29
|
-
#
|
28
|
+
# of a URI: the path, a query string, and a fragment. We consider only
|
29
|
+
# the path and the fragment when building the current_uri.
|
30
|
+
#
|
31
|
+
# This has the somewhat surprising consequence that a visit_path that contains
|
32
|
+
# a query string will never match the current_uri meaning that we will always
|
33
|
+
# auto visit. This preserves the behaviour in versions prior to 0.21.x.
|
30
34
|
#
|
31
35
|
def current_uri
|
32
36
|
uri = URI(page.current_url)
|
33
37
|
|
34
38
|
current_uri = uri.path
|
35
|
-
current_uri += "?#{uri.query}" if uri.query.present?
|
36
39
|
current_uri += "##{uri.fragment}" if uri.fragment.present?
|
37
40
|
|
38
41
|
current_uri
|
data/lib/screengem/version.rb
CHANGED
data/screengem.gemspec
CHANGED
@@ -28,10 +28,10 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.bindir = "exe"
|
29
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
30
|
spec.require_paths = ["lib"]
|
31
|
-
spec.required_ruby_version = ">= 3.
|
31
|
+
spec.required_ruby_version = ">= 3.3"
|
32
32
|
|
33
|
-
spec.
|
34
|
-
spec.
|
35
|
-
spec.
|
36
|
-
spec.
|
33
|
+
spec.add_dependency "activesupport", ">= 7.0", "< 8.0"
|
34
|
+
spec.add_dependency "capybara", ">= 3.0", "< 4.0"
|
35
|
+
spec.add_dependency "require_all", ">= 3.0", "< 4.0"
|
36
|
+
spec.add_dependency "rspec-expectations", "~> 3.12"
|
37
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screengem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alistair McKinnell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '7.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '7.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: capybara
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,14 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
142
142
|
- - ">="
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '3.
|
144
|
+
version: '3.3'
|
145
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
147
|
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
|
-
rubygems_version: 3.5.
|
151
|
+
rubygems_version: 3.5.22
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Ruby implementation of the Screengem Pattern.
|