cucumber-sammies 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e23990f5ccfc0b00f8474e1655812fa195c3e432a2381ab24700cd6ab842be0d
4
- data.tar.gz: ea6acd0409854cc839369451c2e90fdace095c28218d91a52367f17466d3eb48
3
+ metadata.gz: 25caf5606e734ec531ea1b677ae758c9f009762c0a4e874913098a4b87cb639c
4
+ data.tar.gz: 8a28b5c235fd61593a0f6c091a476e6cd157598a4485a271199d56578c29c8b1
5
5
  SHA512:
6
- metadata.gz: a2a24e1965f94463a9c44e0d73eb881390da73b7d40341bb45858bd11855d5242975daa0fcbb4e92ee0dceec3de4e69b728c01047e4dabc004220a7d2920bc10
7
- data.tar.gz: 7d248c7b4947f353b1296a2f69ef4fbf723e8c514f50e8a2df19d7601803a98762efabb09e5c0f786472f7f42c9470de816db776699456fefdfd07efa83fdd01
6
+ metadata.gz: 419997311cbd0483bedc02fe060083b85d7654dc4ff9ebde4ebeb746b0bc410435d8c8998a7e22802bc690b4c4c7a241e2eaf09667c456d10ab279f00bcdc548
7
+ data.tar.gz: b6bef3df23357dc93a27ba00b9aff0dfa8749371b2257ce03b0f90d0efefa6d565744d35b2464ebcbc6e35cac78202c5daedb4c4ea40d22996d8c71a92ebc61b
data/.rubocop.yml CHANGED
@@ -3,6 +3,9 @@
3
3
 
4
4
  AllCops:
5
5
  Exclude:
6
+ - 'config/**/*'
7
+ - 'lib/tasks/**/*'
8
+ - 'db/schema.rb'
6
9
  - 'node_modules/**/*'
7
10
  - 'vendor/**/*'
8
11
  - '.git/**/*'
@@ -75,7 +78,7 @@ Layout/IndentationWidth:
75
78
  Layout/InitialIndentation:
76
79
  Enabled: true
77
80
 
78
- Layout/LeadingBlankLines:
81
+ Layout/LeadingEmptyLines:
79
82
  Enabled: true
80
83
 
81
84
  Layout/SpaceAfterColon:
@@ -102,10 +105,10 @@ Layout/SpaceBeforeComma:
102
105
  Layout/SpaceInsideStringInterpolation:
103
106
  Enabled: true
104
107
 
105
- Layout/Tab:
108
+ Layout/IndentationStyle:
106
109
  Enabled: true
107
110
 
108
- Layout/TrailingBlankLines:
111
+ Layout/TrailingEmptyLines:
109
112
  Enabled: true
110
113
 
111
114
  Layout/TrailingWhitespace:
@@ -121,7 +124,7 @@ Lint/CircularArgumentReference:
121
124
  Enabled: true
122
125
 
123
126
  Lint/Debugger:
124
- Enabled: false
127
+ Enabled: true
125
128
 
126
129
  Lint/DuplicateCaseCondition:
127
130
  Enabled: true
@@ -129,7 +132,7 @@ Lint/DuplicateCaseCondition:
129
132
  Lint/DuplicateMethods:
130
133
  Enabled: true
131
134
 
132
- Lint/DuplicatedKey:
135
+ Lint/DuplicateHashKey:
133
136
  Enabled: true
134
137
 
135
138
  Lint/EachWithObjectArgument:
@@ -159,7 +162,7 @@ Lint/FloatOutOfRange:
159
162
  Lint/FormatParameterMismatch:
160
163
  Enabled: true
161
164
 
162
- Lint/HandleExceptions:
165
+ Lint/SuppressedException:
163
166
  Enabled: true
164
167
 
165
168
  Lint/ImplicitStringConcatenation:
@@ -186,7 +189,7 @@ Lint/Loop:
186
189
  Lint/MissingCopEnableDirective:
187
190
  Enabled: true
188
191
 
189
- Lint/MultipleCompare:
192
+ Lint/MultipleComparison:
190
193
  Enabled: true
191
194
 
192
195
  Lint/NestedMethodDefinition:
@@ -250,7 +253,7 @@ Lint/ShadowedException:
250
253
  Lint/ShadowingOuterLocalVariable:
251
254
  Enabled: true
252
255
 
253
- Lint/StringConversionInInterpolation:
256
+ Lint/RedundantStringCoercion:
254
257
  Enabled: true
255
258
 
256
259
  Lint/Syntax:
@@ -262,10 +265,10 @@ Lint/UnderscorePrefixedVariableName:
262
265
  Lint/UnifiedInteger:
263
266
  Enabled: true
264
267
 
265
- Lint/UnneededRequireStatement:
268
+ Lint/RedundantRequireStatement:
266
269
  Enabled: true
267
270
 
268
- Lint/UnneededSplatExpansion:
271
+ Lint/RedundantSplatExpansion:
269
272
  Enabled: true
270
273
 
271
274
  Lint/UnreachableCode:
@@ -301,7 +304,7 @@ Metrics/AbcSize:
301
304
 
302
305
  Metrics/BlockLength:
303
306
  Enabled: true
304
- Max: 50
307
+ Max: 100
305
308
 
306
309
  Metrics/BlockNesting:
307
310
  Enabled: true
@@ -316,14 +319,14 @@ Metrics/CyclomaticComplexity:
316
319
  Enabled: true
317
320
  Max: 12
318
321
 
319
- Metrics/LineLength:
322
+ Layout/LineLength:
320
323
  Enabled: true
321
324
  Max: 200
322
325
 
323
326
  Metrics/MethodLength:
324
327
  Description: 'Avoid long methods.'
325
328
  Enabled: true
326
- Max: 30
329
+ Max: 50
327
330
 
328
331
  Metrics/ModuleLength:
329
332
  Description: 'Avoid long modules.'
@@ -337,7 +340,7 @@ Metrics/ParameterLists:
337
340
 
338
341
  Metrics/PerceivedComplexity:
339
342
  Enabled: true
340
- Max: 10
343
+ Max: 15
341
344
 
342
345
  Performance/Caller:
343
346
  Enabled: true
@@ -412,11 +415,11 @@ Performance/TimesMap:
412
415
  Performance/UnfreezeString:
413
416
  Enabled: true
414
417
 
415
- Style/UnneededSort:
418
+ Style/RedundantSort:
416
419
  Enabled: true
417
420
 
418
421
  Security/Eval:
419
- Enabled: false
422
+ Enabled: true
420
423
 
421
424
  Security/JSONLoad:
422
425
  Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.5
1
+ 2.7.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cucumber-sammies (0.1.2)
4
+ cucumber-sammies (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,9 +12,9 @@ PLATFORMS
12
12
  ruby
13
13
 
14
14
  DEPENDENCIES
15
- bundler (~> 1.17.2)
15
+ bundler (~> 2.1)
16
16
  cucumber-sammies!
17
17
  rake (~> 13.0.1)
18
18
 
19
19
  BUNDLED WITH
20
- 1.17.2
20
+ 2.1.4
@@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency "bundler", "~> 1.17.2"
26
- spec.add_development_dependency "rake", "~> 13.0.1"
25
+ spec.add_development_dependency "bundler", "~> 2.1"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
27
  end
@@ -5,11 +5,3 @@ end
5
5
  Given /^the "(.*)" ENV should be set to "(.*)"$/ do |key, value|
6
6
  expect(ENV[key]).to eq value
7
7
  end
8
-
9
- Then /^"(.*)" should raise a "(.*)" error$/ do |expression, error|
10
- expect { eval(expression) }.to raise_error(/#{error}/)
11
- end
12
-
13
- Then /^"(.*)" should not raise a "(.*)" error$/ do |expression, error|
14
- expect { eval(expression) }.not_to raise_error(/#{error}/)
15
- end
@@ -0,0 +1,11 @@
1
+ When("the {string} is performed with arg {string}") do |job, arg|
2
+ job.constantize.send("perform_now", arg)
3
+ end
4
+
5
+ When("the {string} is performed with the following:") do |job, args|
6
+ job.constantize.send("perform_now", *args.rows_hash.values)
7
+ end
8
+
9
+ When("the {string} is performed") do |job|
10
+ job.constantize.send("perform_now")
11
+ end
@@ -8,8 +8,8 @@ if defined?(Timecop)
8
8
  # https://makandracards.com/makandra/8723-guide-to-localizing-a-rails-application
9
9
 
10
10
  def use_timezones?
11
- active_record_loaded = defined?(ActiveRecord::Base)
12
- (!active_record_loaded || ActiveRecord::Base.default_timezone != :local) && Time.zone
11
+ active_record_loaded = defined?(ActiveRecord)
12
+ (!active_record_loaded || ActiveRecord.default_timezone != :local) && Time.zone
13
13
  end
14
14
 
15
15
  def parse_time(str)
@@ -11,7 +11,7 @@ When /^I log the page$/ do
11
11
  end
12
12
 
13
13
  Then /^I pry$/ do
14
- binding.pry
14
+ binding.pry # rubocop:disable Lint/Debugger
15
15
  end
16
16
 
17
17
  Then /^I sleep (.*) seconds$/ do |seconds|
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Sammies
3
- VERSION = "0.3.0"
3
+ VERSION = "0.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-sammies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Kirst
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2022-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.17.2
19
+ version: '2.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.17.2
26
+ version: '2.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 13.0.1
33
+ version: '13.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 13.0.1
40
+ version: '13.0'
41
41
  description:
42
42
  email:
43
43
  - jskirst@gmail.com
@@ -64,6 +64,7 @@ files:
64
64
  - lib/cucumber/sammies/step_definitions/data_steps.rb
65
65
  - lib/cucumber/sammies/step_definitions/environment_steps.rb
66
66
  - lib/cucumber/sammies/step_definitions/form_steps.rb
67
+ - lib/cucumber/sammies/step_definitions/job_steps.rb
67
68
  - lib/cucumber/sammies/step_definitions/navigation_steps.rb
68
69
  - lib/cucumber/sammies/step_definitions/table_steps.rb
69
70
  - lib/cucumber/sammies/step_definitions/time_steps.rb
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
91
  - !ruby/object:Gem::Version
91
92
  version: '0'
92
93
  requirements: []
93
- rubygems_version: 3.0.3
94
+ rubygems_version: 3.1.4
94
95
  signing_key:
95
96
  specification_version: 4
96
97
  summary: Cucumber step definitions for rails applications.