screengem 0.15.0 → 0.16.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: 24319c88be9815217f65514730892e857eda19fd239ae0969f3c821fa44333d0
4
- data.tar.gz: cf295c1f7bece490659980ea1818bb3960464fbec4f37db379ae64f5a9603ae1
3
+ metadata.gz: '05882b1d14fcb9e81a7b940a395de8e34167d0652ee564800be2cb5b784633d6'
4
+ data.tar.gz: 91ba212fd5c24bb7b1ddae9b79a4504aca3f1d8cba2949a16aaf5691091b9420
5
5
  SHA512:
6
- metadata.gz: 6d3add892b0904a3e64fec1692abf8390c256128a4e4bad6e2613fae7a47569d194d5a04f22d46522bfd57d3fd86c3500a2656b66f2286246aca98569af6011d
7
- data.tar.gz: 8f6b7a5d7c6cf8145611dbfee8ec8007bf817ae6a26faeddf020c0ca6104be27a09982d16fceb96dd6f782a72c2d0f818bb75cbed7e769bd88e07e3d387eed38
6
+ metadata.gz: 4203bdfd6d5d28f387bcbb5df19a02f318e73465f5b845103d8e3c365dfbb3a91999b8897b3f93aa48956c2a3b36b54e57dd6e95a4bdd930cf2bca56707680a0
7
+ data.tar.gz: 6a16b7076d33d3eeeb80c30c7b1fc5a107524a5ca0d93fd308eebb10092ee43ce206e63a7466154f4ec7fb9a7151c36b884f4e121fdc203caf2cd6dd43b1b80d
data/.gitignore CHANGED
@@ -1,4 +1,5 @@
1
1
  /.bundle/
2
+ /.idea/
2
3
  /.yardoc
3
4
  /_yardoc/
4
5
  /coverage/
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.4
1
+ 2.7.6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Change log
2
2
 
3
- ## master (unreleased)
3
+ ## main (unreleased)
4
+
5
+ ## 0.16.0 (2022-08-03)
6
+
7
+ * Allow actor to recall with a default
8
+ * Update the capybara dependency
9
+ * Latest development dependencies
4
10
 
5
11
  ## 0.15.0 (2022-01-23)
6
12
 
@@ -50,15 +50,15 @@ module Screengem
50
50
  #
51
51
  # Used by an actor to recall a value for the specified tag.
52
52
  #
53
- def recall(tag, reload: true)
54
- unless recollections.key?(tag)
53
+ def recall(tag, default: nil, reload: true)
54
+ unless recollections.key?(tag) || default.present?
55
55
  raise <<~MSG
56
56
  #{name} does not recall #{tag}
57
57
  #{name} recalls: #{recollections.keys.to_sentence}
58
58
  MSG
59
59
  end
60
60
 
61
- recollections.fetch(tag).tap do |value|
61
+ recollections.fetch(tag, default).tap do |value|
62
62
  value.reload if reload && value.respond_to?(:reload)
63
63
  end
64
64
  end
@@ -1,3 +1,3 @@
1
1
  module Screengem
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  end
data/screengem.gemspec CHANGED
@@ -29,17 +29,17 @@ Gem::Specification.new do |spec|
29
29
  spec.require_paths = ["lib"]
30
30
  spec.required_ruby_version = ">= 2.7"
31
31
 
32
- spec.add_runtime_dependency "activesupport", ">= 5.2", "< 6.2"
33
- spec.add_runtime_dependency "capybara", ">= 2.18", "< 4.0"
32
+ spec.add_runtime_dependency "activesupport", ">= 5.2", "< 7.0"
33
+ spec.add_runtime_dependency "capybara", ">= 3.0", "< 4.0"
34
34
  spec.add_runtime_dependency "require_all", ">= 3.0", "< 4.0"
35
- spec.add_runtime_dependency "rspec-expectations", "~> 3.10"
35
+ spec.add_runtime_dependency "rspec-expectations", "~> 3.11"
36
36
  spec.add_runtime_dependency "thor", "~> 1.2"
37
37
 
38
38
  spec.add_development_dependency "rake", "~> 13.0"
39
- spec.add_development_dependency "rspec", "~> 3.9"
40
- spec.add_development_dependency "rubocop", "~> 1.24"
41
- spec.add_development_dependency "rubocop-performance", "~> 1.13"
39
+ spec.add_development_dependency "rspec", "~> 3.11"
40
+ spec.add_development_dependency "rubocop", "~> 1.32"
41
+ spec.add_development_dependency "rubocop-performance", "~> 1.14"
42
42
  spec.add_development_dependency "rubocop-rake", "~> 0.6"
43
- spec.add_development_dependency "rubocop-rspec", "~> 2.7"
43
+ spec.add_development_dependency "rubocop-rspec", "~> 2.12"
44
44
  spec.add_development_dependency "simplecov", "~> 0.21"
45
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.15.0
4
+ version: 0.16.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: 2022-01-24 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.2'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,14 +29,14 @@ dependencies:
29
29
  version: '5.2'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: capybara
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: '2.18'
39
+ version: '3.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: '4.0'
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: '2.18'
49
+ version: '3.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: '4.0'
@@ -76,14 +76,14 @@ dependencies:
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '3.10'
79
+ version: '3.11'
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.10'
86
+ version: '3.11'
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: thor
89
89
  requirement: !ruby/object:Gem::Requirement
@@ -118,42 +118,42 @@ dependencies:
118
118
  requirements:
119
119
  - - "~>"
120
120
  - !ruby/object:Gem::Version
121
- version: '3.9'
121
+ version: '3.11'
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: '3.9'
128
+ version: '3.11'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: rubocop
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
133
  - - "~>"
134
134
  - !ruby/object:Gem::Version
135
- version: '1.24'
135
+ version: '1.32'
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.24'
142
+ version: '1.32'
143
143
  - !ruby/object:Gem::Dependency
144
144
  name: rubocop-performance
145
145
  requirement: !ruby/object:Gem::Requirement
146
146
  requirements:
147
147
  - - "~>"
148
148
  - !ruby/object:Gem::Version
149
- version: '1.13'
149
+ version: '1.14'
150
150
  type: :development
151
151
  prerelease: false
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - "~>"
155
155
  - !ruby/object:Gem::Version
156
- version: '1.13'
156
+ version: '1.14'
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: rubocop-rake
159
159
  requirement: !ruby/object:Gem::Requirement
@@ -174,14 +174,14 @@ dependencies:
174
174
  requirements:
175
175
  - - "~>"
176
176
  - !ruby/object:Gem::Version
177
- version: '2.7'
177
+ version: '2.12'
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: '2.7'
184
+ version: '2.12'
185
185
  - !ruby/object:Gem::Dependency
186
186
  name: simplecov
187
187
  requirement: !ruby/object:Gem::Requirement
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  - !ruby/object:Gem::Version
267
267
  version: '0'
268
268
  requirements: []
269
- rubygems_version: 3.3.5
269
+ rubygems_version: 3.3.18
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Ruby implementation of the Screengem Pattern.