screengem 0.11.0 → 0.12.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 +16 -1
- data/CHANGELOG.md +5 -0
- data/README.md +1 -1
- data/lib/screengem/factories/question_factory.rb +1 -1
- data/lib/screengem/factories/task_factory.rb +1 -1
- data/lib/screengem/version.rb +1 -1
- data/screengem.gemspec +9 -9
- metadata +20 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6e95abeb4fb13d09982bb3003eb07d2a54fca26982a895f0e758d95cba7d22f
|
4
|
+
data.tar.gz: 7f32e487331fd7221fca398ed025ac0ee81b4ca8a325470db9fc9ae709d0a223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03a048b636ab93c43019c8c215e595a466a6e4cadc30570eef32fa289745256a2926421f12ae95cd30cb5e0ee4306d3fb6cc17f478da52ea9717ceb704dd7f7b
|
7
|
+
data.tar.gz: 4c0a8bccccc951536accac8f15694cc926886bc3f3db850364b295d9f99f88794610ab4242145ed33ff9be480ad068367f6f0e559cba9f8b55e15fc9ab9d13bf
|
data/.rubocop.yml
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
require: rubocop-rspec
|
2
2
|
|
3
3
|
AllCops:
|
4
|
-
TargetRubyVersion: 2.
|
4
|
+
TargetRubyVersion: 2.6
|
5
|
+
NewCops: enable
|
6
|
+
|
7
|
+
Lint/ConstantDefinitionInBlock:
|
8
|
+
Exclude:
|
9
|
+
- spec/**/*_spec.rb
|
5
10
|
|
6
11
|
Layout/SpaceAroundMethodCallOperator:
|
7
12
|
Enabled: false
|
@@ -27,6 +32,10 @@ Metrics/MethodLength:
|
|
27
32
|
Metrics/ModuleLength:
|
28
33
|
Enabled: false
|
29
34
|
|
35
|
+
Naming/VariableNumber:
|
36
|
+
Enabled: true
|
37
|
+
EnforcedStyle: snake_case
|
38
|
+
|
30
39
|
RSpec/AnyInstance:
|
31
40
|
Enabled: false
|
32
41
|
|
@@ -36,6 +45,9 @@ RSpec/DescribedClass:
|
|
36
45
|
RSpec/ExampleLength:
|
37
46
|
Max: 20
|
38
47
|
|
48
|
+
RSpec/MultipleMemoizedHelpers:
|
49
|
+
Max: 8
|
50
|
+
|
39
51
|
RSpec/MultipleExpectations:
|
40
52
|
Max: 5
|
41
53
|
|
@@ -63,6 +75,9 @@ Style/HashTransformValues:
|
|
63
75
|
Style/Documentation:
|
64
76
|
Enabled: false
|
65
77
|
|
78
|
+
Style/DocumentDynamicEvalDefinition:
|
79
|
+
Enabled: false
|
80
|
+
|
66
81
|
Style/EmptyMethod:
|
67
82
|
Enabled: false
|
68
83
|
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -51,7 +51,7 @@ Capybara is available to all screen elements and is the recommended way to inter
|
|
51
51
|
Actors are able to answer questions. A question is considered to be answered affirmatively
|
52
52
|
when no exception is thrown and negatively when an exception is thrown.
|
53
53
|
|
54
|
-
RSpec
|
54
|
+
[RSpec expectations](https://github.com/rspec/rspec-expectations) are available in all questions and are the recommended way to implement a question.
|
55
55
|
|
56
56
|
## Dampening
|
57
57
|
|
@@ -6,7 +6,7 @@ module Screengem
|
|
6
6
|
class QuestionFactory < BasicObject
|
7
7
|
include ::Singleton
|
8
8
|
|
9
|
-
def method_missing(question_name, *args)
|
9
|
+
def method_missing(question_name, *args)
|
10
10
|
question_class_name = "#{question_name}_question".camelize
|
11
11
|
question_class = "#{question_scope}::#{question_class_name}".constantize
|
12
12
|
|
@@ -6,7 +6,7 @@ module Screengem
|
|
6
6
|
class TaskFactory < BasicObject
|
7
7
|
include ::Singleton
|
8
8
|
|
9
|
-
def method_missing(task_name, *args)
|
9
|
+
def method_missing(task_name, *args)
|
10
10
|
task_class_name = "#{task_name}_task".camelize
|
11
11
|
task_class = "#{task_scope}::#{task_class_name}".constantize
|
12
12
|
|
data/lib/screengem/version.rb
CHANGED
data/screengem.gemspec
CHANGED
@@ -27,18 +27,18 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.bindir = "exe"
|
28
28
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
29
29
|
spec.require_paths = ["lib"]
|
30
|
-
spec.required_ruby_version = ">= 2.
|
30
|
+
spec.required_ruby_version = ">= 2.6"
|
31
31
|
|
32
|
-
spec.add_runtime_dependency "activesupport", ">=
|
32
|
+
spec.add_runtime_dependency "activesupport", ">= 5.2", "< 6.1"
|
33
33
|
spec.add_runtime_dependency "capybara", ">= 2.18", "< 4.0"
|
34
|
-
spec.add_runtime_dependency "require_all", ">=
|
35
|
-
spec.add_runtime_dependency "rspec-expectations", "~> 3.
|
36
|
-
spec.add_runtime_dependency "thor", ">= 0.20", "< 1.
|
34
|
+
spec.add_runtime_dependency "require_all", ">= 3.0", "< 4.0"
|
35
|
+
spec.add_runtime_dependency "rspec-expectations", "~> 3.10"
|
36
|
+
spec.add_runtime_dependency "thor", ">= 0.20", "< 1.2"
|
37
37
|
|
38
38
|
spec.add_development_dependency "rake", "~> 13.0"
|
39
39
|
spec.add_development_dependency "rspec", "~> 3.9"
|
40
|
-
spec.add_development_dependency "rubocop", "~>
|
41
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
42
|
-
spec.add_development_dependency "rubocop-rspec", "~> 1
|
43
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
40
|
+
spec.add_development_dependency "rubocop", "~> 1.8"
|
41
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.9"
|
42
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.1"
|
43
|
+
spec.add_development_dependency "simplecov", "~> 0.21"
|
44
44
|
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.12.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: 2021-01-28 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: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6.1'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.1'
|
@@ -56,7 +56,7 @@ dependencies:
|
|
56
56
|
requirements:
|
57
57
|
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version: '
|
59
|
+
version: '3.0'
|
60
60
|
- - "<"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '4.0'
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '
|
69
|
+
version: '3.0'
|
70
70
|
- - "<"
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '4.0'
|
@@ -76,14 +76,14 @@ dependencies:
|
|
76
76
|
requirements:
|
77
77
|
- - "~>"
|
78
78
|
- !ruby/object:Gem::Version
|
79
|
-
version: '3.
|
79
|
+
version: '3.10'
|
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.10'
|
87
87
|
- !ruby/object:Gem::Dependency
|
88
88
|
name: thor
|
89
89
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,7 +93,7 @@ dependencies:
|
|
93
93
|
version: '0.20'
|
94
94
|
- - "<"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '1.
|
96
|
+
version: '1.2'
|
97
97
|
type: :runtime
|
98
98
|
prerelease: false
|
99
99
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -103,7 +103,7 @@ dependencies:
|
|
103
103
|
version: '0.20'
|
104
104
|
- - "<"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '1.
|
106
|
+
version: '1.2'
|
107
107
|
- !ruby/object:Gem::Dependency
|
108
108
|
name: rake
|
109
109
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,56 +138,56 @@ dependencies:
|
|
138
138
|
requirements:
|
139
139
|
- - "~>"
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version: '
|
141
|
+
version: '1.8'
|
142
142
|
type: :development
|
143
143
|
prerelease: false
|
144
144
|
version_requirements: !ruby/object:Gem::Requirement
|
145
145
|
requirements:
|
146
146
|
- - "~>"
|
147
147
|
- !ruby/object:Gem::Version
|
148
|
-
version: '
|
148
|
+
version: '1.8'
|
149
149
|
- !ruby/object:Gem::Dependency
|
150
150
|
name: rubocop-performance
|
151
151
|
requirement: !ruby/object:Gem::Requirement
|
152
152
|
requirements:
|
153
153
|
- - "~>"
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
version: '1.
|
155
|
+
version: '1.9'
|
156
156
|
type: :development
|
157
157
|
prerelease: false
|
158
158
|
version_requirements: !ruby/object:Gem::Requirement
|
159
159
|
requirements:
|
160
160
|
- - "~>"
|
161
161
|
- !ruby/object:Gem::Version
|
162
|
-
version: '1.
|
162
|
+
version: '1.9'
|
163
163
|
- !ruby/object:Gem::Dependency
|
164
164
|
name: rubocop-rspec
|
165
165
|
requirement: !ruby/object:Gem::Requirement
|
166
166
|
requirements:
|
167
167
|
- - "~>"
|
168
168
|
- !ruby/object:Gem::Version
|
169
|
-
version: '1
|
169
|
+
version: '2.1'
|
170
170
|
type: :development
|
171
171
|
prerelease: false
|
172
172
|
version_requirements: !ruby/object:Gem::Requirement
|
173
173
|
requirements:
|
174
174
|
- - "~>"
|
175
175
|
- !ruby/object:Gem::Version
|
176
|
-
version: '1
|
176
|
+
version: '2.1'
|
177
177
|
- !ruby/object:Gem::Dependency
|
178
178
|
name: simplecov
|
179
179
|
requirement: !ruby/object:Gem::Requirement
|
180
180
|
requirements:
|
181
181
|
- - "~>"
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
version: '0.
|
183
|
+
version: '0.21'
|
184
184
|
type: :development
|
185
185
|
prerelease: false
|
186
186
|
version_requirements: !ruby/object:Gem::Requirement
|
187
187
|
requirements:
|
188
188
|
- - "~>"
|
189
189
|
- !ruby/object:Gem::Version
|
190
|
-
version: '0.
|
190
|
+
version: '0.21'
|
191
191
|
description:
|
192
192
|
email:
|
193
193
|
- alistairm@nulogy.com
|
@@ -252,14 +252,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
252
252
|
requirements:
|
253
253
|
- - ">="
|
254
254
|
- !ruby/object:Gem::Version
|
255
|
-
version: '2.
|
255
|
+
version: '2.6'
|
256
256
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
257
257
|
requirements:
|
258
258
|
- - ">="
|
259
259
|
- !ruby/object:Gem::Version
|
260
260
|
version: '0'
|
261
261
|
requirements: []
|
262
|
-
rubygems_version: 3.
|
262
|
+
rubygems_version: 3.2.7
|
263
263
|
signing_key:
|
264
264
|
specification_version: 4
|
265
265
|
summary: Ruby implementation of the Screengem Pattern.
|