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 +4 -4
- data/CHANGELOG.md +1 -0
- data/DEVELOPMENT.md +4 -0
- data/lib/sleeping_king_studios/tasks/apps/ci/rspec_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/apps/ci/rubocop_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/ci/cucumber_parser.rb +4 -3
- data/lib/sleeping_king_studios/tasks/ci/cucumber_results.rb +2 -2
- data/lib/sleeping_king_studios/tasks/ci/cucumber_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/ci/eslint_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/ci/jest_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/ci/rspec_each_task.rb +2 -2
- data/lib/sleeping_king_studios/tasks/ci/rspec_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/ci/rubocop_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/configuration.rb +2 -2
- data/lib/sleeping_king_studios/tasks/file/new_task.rb +1 -1
- data/lib/sleeping_king_studios/tasks/version.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc8e07d6f211c9e3dbf15ddc93b851b6b27114987be947ee082ed67271997d47
|
4
|
+
data.tar.gz: b33121e54e1c6ce5d4c76b03e205985bcee11d551dc958f00acc73fc81b40eb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78f51530a5a325edcd1fca06464a01424fcce2de696e5d365d961bc8a871bfdde893c33b0d230cd1ff8fa67384ef269fdab25618582d98287f6e4c68d8d88366
|
7
|
+
data.tar.gz: b5c7433200eb5c7fb91530136405d52b739491f953aeabc438e8c0d4b5cdbb29003c824a37e1c43deda991624c9e546997e83893751c2996a94d68c065653046
|
data/CHANGELOG.md
CHANGED
data/DEVELOPMENT.md
CHANGED
@@ -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
|
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
|
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
|
-
|
68
|
+
case status
|
69
|
+
when 'failed'
|
69
70
|
report['failing_step_count'] += 1
|
70
|
-
|
71
|
+
when 'pending', 'skipped'
|
71
72
|
report['pending_step_count'] += 1
|
72
|
-
end
|
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
|
-
|
178
|
+
] # end keys
|
179
179
|
end # method keys
|
180
180
|
|
181
181
|
def pluralize count, singular, plural = nil
|
@@ -34,7 +34,7 @@ module SleepingKingStudios::Tasks::Ci
|
|
34
34
|
|
35
35
|
def jest_runner
|
36
36
|
env = options.fetch('__env__', {})
|
37
|
-
opts = %w
|
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
|
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
|
147
|
+
opts = %w[--color --tty]
|
148
148
|
opts << "--format=#{format}"
|
149
149
|
end # if
|
150
150
|
|
@@ -34,7 +34,7 @@ module SleepingKingStudios::Tasks
|
|
34
34
|
:global => true
|
35
35
|
} # end rspec
|
36
36
|
|
37
|
-
option :steps, :default => %i
|
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
|
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
|
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 =
|
18
|
+
PRERELEASE = nil
|
19
19
|
# Build metadata.
|
20
|
-
BUILD =
|
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
|
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-
|
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.
|
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.
|
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:
|
282
|
+
version: '0'
|
283
283
|
requirements: []
|
284
284
|
rubygems_version: 3.0.3
|
285
285
|
signing_key:
|