screengem 0.18.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -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 +2 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cb523354724ca72cbf826806114006306fc6d140cc351a4f1d90114e7524268
|
4
|
+
data.tar.gz: 33a4cd4556e719c74e535473fc115e2c60055e0b309835024fd98fdca541af9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97802cce90e9b46e469d711ff2e5ad61ddfd496af35c5cce5601ee236c67daa71999ef106d5302fcc1f4e31b91ccf7d01c260d77ade3cfff2ddbb19424c3c642
|
7
|
+
data.tar.gz: cbedf6c1f6d2722b151420403f604b54ba5ac9c3fcf0ef24b06fc91dad98ab88ef10c858cc12021797b1813438d62d9a81cffd1c5f5e3312f05013bdf3555147
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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.18.
|
4
|
+
version: 0.18.1
|
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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -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:
|
@@ -245,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
246
|
- !ruby/object:Gem::Version
|
246
247
|
version: '0'
|
247
248
|
requirements: []
|
248
|
-
rubygems_version: 3.4.
|
249
|
+
rubygems_version: 3.4.7
|
249
250
|
signing_key:
|
250
251
|
specification_version: 4
|
251
252
|
summary: Ruby implementation of the Screengem Pattern.
|