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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc2caab1569220080738a833782fd78797d70da30e98e190559dca7896d11695
4
- data.tar.gz: 2ae610d60ea958c002e0b1f1658257a906b790694478a1d01b0997b979bc8475
3
+ metadata.gz: 7cb523354724ca72cbf826806114006306fc6d140cc351a4f1d90114e7524268
4
+ data.tar.gz: 33a4cd4556e719c74e535473fc115e2c60055e0b309835024fd98fdca541af9f
5
5
  SHA512:
6
- metadata.gz: ebaced74c3f7ae2640252503e9c1dbee04b7b955b20a1d81c16777cf10b779a984acb5dd20c81c0e68bb356321f22314676f3efffe484147bf85a8ef82bab3df
7
- data.tar.gz: 4ccaed09c6abfd214ff67ffdff7e96b3482626dd591f1ef2e293e5ada8e5ff8ec37a82bfe422c16e1d0cdaa16bf79199c259303d59e610d3a5fa4281b6e66582
6
+ metadata.gz: 97802cce90e9b46e469d711ff2e5ad61ddfd496af35c5cce5601ee236c67daa71999ef106d5302fcc1f4e31b91ccf7d01c260d77ade3cfff2ddbb19424c3c642
7
+ data.tar.gz: cbedf6c1f6d2722b151420403f604b54ba5ac9c3fcf0ef24b06fc91dad98ab88ef10c858cc12021797b1813438d62d9a81cffd1c5f5e3312f05013bdf3555147
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## main (unreleased)
4
4
 
5
+ ## 0.18.1 (2023-03-05)
6
+
7
+ * Refine support for Ruby 3.x
8
+
5
9
  ## 0.18.0 (2023-02-04)
6
10
 
7
11
  * 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 >= "2.7" ? "..." : "*args"
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 >= "2.7" ? "..." : "*args"
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 >= "2.7" ? "..." : "*args"
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}(*args)
41
- Screengem::AutomaticVisit.new(#{class_name}.new(*args))
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}(*args)
47
- #{class_name}.new(*args)
46
+ def #{method_name}(...)
47
+ #{class_name}.new(...)
48
48
  end
49
49
  RUBY
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Screengem
2
- VERSION = "0.18.0"
2
+ VERSION = "0.18.1"
3
3
  end
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.0
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-02-04 00:00:00.000000000 Z
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.5
249
+ rubygems_version: 3.4.7
249
250
  signing_key:
250
251
  specification_version: 4
251
252
  summary: Ruby implementation of the Screengem Pattern.