screengem 0.18.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +13 -0
- data/lib/screengem/automatic_visit.rb +1 -1
- data/lib/screengem/factories/question_factory.rb +1 -1
- data/lib/screengem/factories/task_factory.rb +1 -1
- data/lib/screengem/screen_elements.rb +4 -4
- data/lib/screengem/version.rb +1 -1
- data/screengem.gemspec +10 -11
- metadata +19 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 881221381cbcc432645d5f48799699aa39fe7b5598a8e74046ef100b133cd4ef
|
4
|
+
data.tar.gz: bac1875010d7741e891831bf0c43d6f801d938238d61564bf11af2728540025b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc84d7044d2512e6a8ed5b49a30f9a53afa2fe4024921ffa32d022b9f4849889f0735cd701c195f37723a4c45da491d44e71dc4698a530523a64e30ad41be5a2
|
7
|
+
data.tar.gz: c63d449ee95c85f41190bbf9f2b1c12e4caf5dc3aba0033da73f0fc4fd67a30a171cb219433b35fd9425e9ff81a281073dc95288a23e3ba1cc6d10289dfa12ac
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.5
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,19 @@
|
|
2
2
|
|
3
3
|
## main (unreleased)
|
4
4
|
|
5
|
+
## 0.19.0 (2023-03-13)
|
6
|
+
|
7
|
+
* Support Rails 7.0
|
8
|
+
|
9
|
+
### Breaking Changes
|
10
|
+
|
11
|
+
* Drop support for Ruby 2.7
|
12
|
+
* Drop support for Rails 5.2
|
13
|
+
|
14
|
+
## 0.18.1 (2023-03-05)
|
15
|
+
|
16
|
+
* Refine support for Ruby 3.x
|
17
|
+
|
5
18
|
## 0.18.0 (2023-02-04)
|
6
19
|
|
7
20
|
* Support Ruby 3.x
|
@@ -11,7 +11,7 @@ module Screengem
|
|
11
11
|
@screen_element = screen_element
|
12
12
|
end
|
13
13
|
|
14
|
-
definition = ::RUBY_VERSION >= "
|
14
|
+
definition = ::RUBY_VERSION >= "3.0" ? "..." : "*args"
|
15
15
|
|
16
16
|
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
17
17
|
def method_missing(method, #{definition})
|
@@ -6,7 +6,7 @@ module Screengem
|
|
6
6
|
class QuestionFactory < BasicObject
|
7
7
|
include ::Singleton
|
8
8
|
|
9
|
-
definition = ::RUBY_VERSION >= "
|
9
|
+
definition = ::RUBY_VERSION >= "3.0" ? "..." : "*args"
|
10
10
|
|
11
11
|
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
12
12
|
def method_missing(question_name, #{definition})
|
@@ -6,7 +6,7 @@ module Screengem
|
|
6
6
|
class TaskFactory < BasicObject
|
7
7
|
include ::Singleton
|
8
8
|
|
9
|
-
definition = ::RUBY_VERSION >= "
|
9
|
+
definition = ::RUBY_VERSION >= "3.0" ? "..." : "*args"
|
10
10
|
|
11
11
|
class_eval <<~RUBY, __FILE__, __LINE__ + 1
|
12
12
|
def method_missing(task_name, #{definition})
|
@@ -37,14 +37,14 @@ module Screengem
|
|
37
37
|
|
38
38
|
if auto_visit?(screen_element_class)
|
39
39
|
class_eval(<<~RUBY, __FILE__, __LINE__ + 1)
|
40
|
-
def #{method_name}(
|
41
|
-
Screengem::AutomaticVisit.new(#{class_name}.new(
|
40
|
+
def #{method_name}(...)
|
41
|
+
Screengem::AutomaticVisit.new(#{class_name}.new(...))
|
42
42
|
end
|
43
43
|
RUBY
|
44
44
|
else
|
45
45
|
class_eval(<<~RUBY, __FILE__, __LINE__ + 1)
|
46
|
-
def #{method_name}(
|
47
|
-
#{class_name}.new(
|
46
|
+
def #{method_name}(...)
|
47
|
+
#{class_name}.new(...)
|
48
48
|
end
|
49
49
|
RUBY
|
50
50
|
end
|
data/lib/screengem/version.rb
CHANGED
data/screengem.gemspec
CHANGED
@@ -3,8 +3,6 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
require "screengem/version"
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.metadata = { "rubygems_mfa_required" => "true" }
|
7
|
-
|
8
6
|
spec.name = "screengem"
|
9
7
|
spec.version = Screengem::VERSION
|
10
8
|
spec.authors = ["Alistair McKinnell"]
|
@@ -18,7 +16,8 @@ Gem::Specification.new do |spec|
|
|
18
16
|
"homepage_uri" => "https://github.com/nulogy/screengem",
|
19
17
|
"changelog_uri" => "https://github.com/nulogy/screengem/blob/master/CHANGELOG.md",
|
20
18
|
"source_code_uri" => "https://github.com/nulogy/screengem",
|
21
|
-
"bug_tracker_uri" => "https://github.com/nulogy/screengem/issues"
|
19
|
+
"bug_tracker_uri" => "https://github.com/nulogy/screengem/issues",
|
20
|
+
"rubygems_mfa_required" => "true"
|
22
21
|
}
|
23
22
|
|
24
23
|
# Specify which files should be added to the gem when it is released.
|
@@ -29,18 +28,18 @@ Gem::Specification.new do |spec|
|
|
29
28
|
spec.bindir = "exe"
|
30
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
30
|
spec.require_paths = ["lib"]
|
32
|
-
spec.required_ruby_version = ">=
|
31
|
+
spec.required_ruby_version = ">= 3.0"
|
33
32
|
|
34
|
-
spec.add_runtime_dependency "activesupport", ">=
|
33
|
+
spec.add_runtime_dependency "activesupport", ">= 6.0", "< 7.1"
|
35
34
|
spec.add_runtime_dependency "capybara", ">= 3.0", "< 4.0"
|
36
35
|
spec.add_runtime_dependency "require_all", ">= 3.0", "< 4.0"
|
37
|
-
spec.add_runtime_dependency "rspec-expectations", "~> 3.
|
36
|
+
spec.add_runtime_dependency "rspec-expectations", "~> 3.12"
|
38
37
|
|
39
38
|
spec.add_development_dependency "rake", "~> 13.0"
|
40
|
-
spec.add_development_dependency "rspec", "~> 3.
|
41
|
-
spec.add_development_dependency "rubocop", "~> 1.
|
42
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
39
|
+
spec.add_development_dependency "rspec", "~> 3.12"
|
40
|
+
spec.add_development_dependency "rubocop", "~> 1.48"
|
41
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.16"
|
43
42
|
spec.add_development_dependency "rubocop-rake", "~> 0.6"
|
44
|
-
spec.add_development_dependency "rubocop-rspec", "~> 2.
|
45
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
43
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.19"
|
44
|
+
spec.add_development_dependency "simplecov", "~> 0.22"
|
46
45
|
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.19.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: 2023-
|
11
|
+
date: 2023-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6.0'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '7.1'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '6.0'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '7.1'
|
@@ -76,14 +76,14 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '3.
|
79
|
+
version: '3.12'
|
80
80
|
type: :runtime
|
81
81
|
prerelease: false
|
82
82
|
version_requirements: !ruby/object:Gem::Requirement
|
83
83
|
requirements:
|
84
84
|
- - "~>"
|
85
85
|
- !ruby/object:Gem::Version
|
86
|
-
version: '3.
|
86
|
+
version: '3.12'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: rake
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,42 +104,42 @@ dependencies:
|
|
104
104
|
requirements:
|
105
105
|
- - "~>"
|
106
106
|
- !ruby/object:Gem::Version
|
107
|
-
version: '3.
|
107
|
+
version: '3.12'
|
108
108
|
type: :development
|
109
109
|
prerelease: false
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
112
|
- - "~>"
|
113
113
|
- !ruby/object:Gem::Version
|
114
|
-
version: '3.
|
114
|
+
version: '3.12'
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
116
|
name: rubocop
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
119
|
- - "~>"
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version: '1.
|
121
|
+
version: '1.48'
|
122
122
|
type: :development
|
123
123
|
prerelease: false
|
124
124
|
version_requirements: !ruby/object:Gem::Requirement
|
125
125
|
requirements:
|
126
126
|
- - "~>"
|
127
127
|
- !ruby/object:Gem::Version
|
128
|
-
version: '1.
|
128
|
+
version: '1.48'
|
129
129
|
- !ruby/object:Gem::Dependency
|
130
130
|
name: rubocop-performance
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
132
132
|
requirements:
|
133
133
|
- - "~>"
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
version: '1.
|
135
|
+
version: '1.16'
|
136
136
|
type: :development
|
137
137
|
prerelease: false
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
139
139
|
requirements:
|
140
140
|
- - "~>"
|
141
141
|
- !ruby/object:Gem::Version
|
142
|
-
version: '1.
|
142
|
+
version: '1.16'
|
143
143
|
- !ruby/object:Gem::Dependency
|
144
144
|
name: rubocop-rake
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,28 +160,28 @@ dependencies:
|
|
160
160
|
requirements:
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
|
-
version: '2.
|
163
|
+
version: '2.19'
|
164
164
|
type: :development
|
165
165
|
prerelease: false
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
167
167
|
requirements:
|
168
168
|
- - "~>"
|
169
169
|
- !ruby/object:Gem::Version
|
170
|
-
version: '2.
|
170
|
+
version: '2.19'
|
171
171
|
- !ruby/object:Gem::Dependency
|
172
172
|
name: simplecov
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
175
|
- - "~>"
|
176
176
|
- !ruby/object:Gem::Version
|
177
|
-
version: '0.
|
177
|
+
version: '0.22'
|
178
178
|
type: :development
|
179
179
|
prerelease: false
|
180
180
|
version_requirements: !ruby/object:Gem::Requirement
|
181
181
|
requirements:
|
182
182
|
- - "~>"
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: '0.
|
184
|
+
version: '0.22'
|
185
185
|
description:
|
186
186
|
email:
|
187
187
|
- alistairm@nulogy.com
|
@@ -230,6 +230,7 @@ metadata:
|
|
230
230
|
changelog_uri: https://github.com/nulogy/screengem/blob/master/CHANGELOG.md
|
231
231
|
source_code_uri: https://github.com/nulogy/screengem
|
232
232
|
bug_tracker_uri: https://github.com/nulogy/screengem/issues
|
233
|
+
rubygems_mfa_required: 'true'
|
233
234
|
post_install_message:
|
234
235
|
rdoc_options: []
|
235
236
|
require_paths:
|
@@ -238,14 +239,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
238
239
|
requirements:
|
239
240
|
- - ">="
|
240
241
|
- !ruby/object:Gem::Version
|
241
|
-
version: '
|
242
|
+
version: '3.0'
|
242
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
243
244
|
requirements:
|
244
245
|
- - ">="
|
245
246
|
- !ruby/object:Gem::Version
|
246
247
|
version: '0'
|
247
248
|
requirements: []
|
248
|
-
rubygems_version: 3.4.
|
249
|
+
rubygems_version: 3.4.8
|
249
250
|
signing_key:
|
250
251
|
specification_version: 4
|
251
252
|
summary: Ruby implementation of the Screengem Pattern.
|