sleeping_king_studios-tasks 0.2.0.rc.0 → 0.2.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: ecf773989f8f4674aaa32d70e9292f1990cb43a6903c3a41077eb6465f195246
4
- data.tar.gz: 0c8a09ca897e182933446ed099d1fd83f503aa359acbc8f8b565e4e3150ea093
3
+ metadata.gz: cc8e07d6f211c9e3dbf15ddc93b851b6b27114987be947ee082ed67271997d47
4
+ data.tar.gz: b33121e54e1c6ce5d4c76b03e205985bcee11d551dc958f00acc73fc81b40eb8
5
5
  SHA512:
6
- metadata.gz: 40172813dfed6cb6f781d02d2997d192aebf44107fc781e13c235d3bb5432fd8b59e1f469755aeaa9af742465c7ee6685a0b4e6b2f6bc197bae5d915bf164e50
7
- data.tar.gz: c6fe927bc9d5532d3c58f1995215a5341a010f94376f4004338925f6b16a9b3252a127071b2c6ffe1ed1a86be9076bb969b36c166b807a6e69992ffc51c5a91c
6
+ metadata.gz: 78f51530a5a325edcd1fca06464a01424fcce2de696e5d365d961bc8a871bfdde893c33b0d230cd1ff8fa67384ef269fdab25618582d98287f6e4c68d8d88366
7
+ data.tar.gz: b5c7433200eb5c7fb91530136405d52b739491f953aeabc438e8c0d4b5cdbb29003c824a37e1c43deda991624c9e546997e83893751c2996a94d68c065653046
@@ -4,6 +4,7 @@
4
4
 
5
5
  ### Ci
6
6
 
7
+ - Implement tasks for Jest.js, ESLint.
7
8
  - Add --format option, configuration value for RSpec, RSpec (Each) tasks.
8
9
 
9
10
  ## 0.1.0
@@ -1,5 +1,9 @@
1
1
  ## Tasks
2
2
 
3
+ ### Version 0.2.1
4
+
5
+ - add --retry option to Cucumber task.
6
+
3
7
  ### Future Tasks
4
8
 
5
9
  - add documentation for "ci" option in applications.yml
@@ -22,7 +22,7 @@ module SleepingKingStudios::Tasks::Apps::Ci
22
22
 
23
23
  def call *applications
24
24
  SleepingKingStudios::Tasks::Apps::Ci::StepsTask.
25
- new(options.merge('only' => %w(rspec))).
25
+ new(options.merge('only' => %w[rspec])).
26
26
  call(*applications)
27
27
  end # method call
28
28
  end # class
@@ -22,7 +22,7 @@ module SleepingKingStudios::Tasks::Apps::Ci
22
22
 
23
23
  def call *applications
24
24
  SleepingKingStudios::Tasks::Apps::Ci::StepsTask.
25
- new(options.merge('only' => %w(rubocop))).
25
+ new(options.merge('only' => %w[rubocop])).
26
26
  call(*applications)
27
27
  end # method call
28
28
  end # class
@@ -65,11 +65,12 @@ module SleepingKingStudios::Tasks::Ci
65
65
 
66
66
  status = step_status(step) || 'failed'
67
67
 
68
- if status == 'failed'
68
+ case status
69
+ when 'failed'
69
70
  report['failing_step_count'] += 1
70
- elsif status == 'pending' || status == 'skipped'
71
+ when 'pending', 'skipped'
71
72
  report['pending_step_count'] += 1
72
- end # if
73
+ end
73
74
 
74
75
  status
75
76
  end # method parse_step
@@ -167,7 +167,7 @@ module SleepingKingStudios::Tasks::Ci
167
167
  end # method build_summary_details
168
168
 
169
169
  def keys
170
- %w(
170
+ %w[
171
171
  duration
172
172
  step_count
173
173
  pending_step_count
@@ -175,7 +175,7 @@ module SleepingKingStudios::Tasks::Ci
175
175
  scenario_count
176
176
  pending_scenarios
177
177
  failing_scenarios
178
- ) # end keys
178
+ ] # end keys
179
179
  end # method keys
180
180
 
181
181
  def pluralize count, singular, plural = nil
@@ -33,7 +33,7 @@ module SleepingKingStudios::Tasks::Ci
33
33
  private
34
34
 
35
35
  def cucumber_runner
36
- opts = %w(--color)
36
+ opts = %w[--color]
37
37
  opts << '--format=pretty' unless quiet?
38
38
 
39
39
  CucumberRunner.new(:options => opts)
@@ -24,7 +24,7 @@ module SleepingKingStudios::Tasks::Ci
24
24
  private
25
25
 
26
26
  def eslint_runner
27
- opts = %w(--color)
27
+ opts = %w[--color]
28
28
 
29
29
  EslintRunner.new(:options => opts)
30
30
  end
@@ -34,7 +34,7 @@ module SleepingKingStudios::Tasks::Ci
34
34
 
35
35
  def jest_runner
36
36
  env = options.fetch('__env__', {})
37
- opts = %w(--color)
37
+ opts = %w[--color]
38
38
  opts << "--verbose=#{options.fetch('verbose', default_verbose)}"
39
39
 
40
40
  JestRunner.new(:env => env, :options => opts)
@@ -82,7 +82,7 @@ module SleepingKingStudios::Tasks::Ci
82
82
  end # method default_format
83
83
 
84
84
  def files_list groups
85
- groups = %w(spec) if groups.empty?
85
+ groups = %w[spec] if groups.empty?
86
86
 
87
87
  groups.map do |group_or_file|
88
88
  if File.extname(group_or_file).empty?
@@ -144,7 +144,7 @@ module SleepingKingStudios::Tasks::Ci
144
144
  format = options.fetch('format', default_format)
145
145
 
146
146
  if format && !quiet?
147
- opts = %w(--color --tty)
147
+ opts = %w[--color --tty]
148
148
  opts << "--format=#{format}"
149
149
  end # if
150
150
 
@@ -72,7 +72,7 @@ module SleepingKingStudios::Tasks::Ci
72
72
 
73
73
  format = options.fetch('format', default_format)
74
74
 
75
- opts = %w(--color --tty)
75
+ opts = %w[--color --tty]
76
76
  opts << "--format=#{format}" unless quiet?
77
77
 
78
78
  RSpecRunner.new(:env => env, :options => opts)
@@ -35,7 +35,7 @@ module SleepingKingStudios::Tasks::Ci
35
35
  private
36
36
 
37
37
  def rubocop_runner
38
- opts = %w(--color)
38
+ opts = %w[--color]
39
39
  opts << '--format=progress' unless quiet?
40
40
 
41
41
  RuboCopRunner.new(:options => opts)
@@ -34,7 +34,7 @@ module SleepingKingStudios::Tasks
34
34
  :global => true
35
35
  } # end rspec
36
36
 
37
- option :steps, :default => %i(rspec rubocop simplecov)
37
+ option :steps, :default => %i[rspec rubocop simplecov]
38
38
 
39
39
  define_method :steps_with_options do
40
40
  steps.each.with_object({}) do |step, hsh|
@@ -103,7 +103,7 @@ module SleepingKingStudios::Tasks
103
103
  :title => 'SimpleCov'
104
104
  } # end rspec
105
105
 
106
- option :steps, :default => %i(rspec rubocop simplecov)
106
+ option :steps, :default => %i[rspec rubocop simplecov]
107
107
 
108
108
  define_method :steps_with_options do
109
109
  steps.each.with_object({}) do |step, hsh|
@@ -220,7 +220,7 @@ module SleepingKingStudios::Tasks::File
220
220
  end # method split_file_path
221
221
 
222
222
  def split_relative_path fragments
223
- if %w(app apps lib spec tmp vendor).include?(fragments.first)
223
+ if %w[app apps lib spec tmp vendor].include?(fragments.first)
224
224
  @directory = fragments.shift
225
225
  end # if
226
226
 
@@ -15,9 +15,9 @@ module SleepingKingStudios
15
15
  # Patch version.
16
16
  PATCH = 0
17
17
  # Prerelease version.
18
- PRERELEASE = :rc
18
+ PRERELEASE = nil
19
19
  # Build metadata.
20
- BUILD = 0
20
+ BUILD = nil
21
21
 
22
22
  class << self
23
23
  # Generates the gem version string from the Version constants.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sleeping_king_studios-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.rc.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rob "Merlin" Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-04 00:00:00.000000000 Z
11
+ date: 2019-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -138,14 +138,14 @@ dependencies:
138
138
  requirements:
139
139
  - - "~>"
140
140
  - !ruby/object:Gem::Version
141
- version: 0.47.0
141
+ version: 0.49.0
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: 0.47.0
148
+ version: 0.49.0
149
149
  - !ruby/object:Gem::Dependency
150
150
  name: cucumber
151
151
  requirement: !ruby/object:Gem::Requirement
@@ -277,9 +277,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
277
277
  version: '0'
278
278
  required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  requirements:
280
- - - ">"
280
+ - - ">="
281
281
  - !ruby/object:Gem::Version
282
- version: 1.3.1
282
+ version: '0'
283
283
  requirements: []
284
284
  rubygems_version: 3.0.3
285
285
  signing_key: