devtools 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -2
- data/Rakefile +1 -0
- data/config/rubocop.yml +9 -0
- data/devtools.gemspec +18 -17
- data/spec/integration/devtools/rake/flay/verify_spec.rb +2 -1
- data/tasks/metrics/coverage.rake +1 -0
- data/tasks/metrics/flog.rake +8 -4
- data/tasks/metrics/mutant.rake +3 -2
- data/tasks/metrics/rubocop.rake +1 -1
- data/tasks/spec.rake +1 -1
- data/tasks/yard.rake +1 -1
- metadata +51 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c2270dfb75f85fcf1a74d5dd59a150e0b085e53
|
4
|
+
data.tar.gz: 79016f9af38770aa4a428bc60d6233d8474e0792
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd74658d9892ee698a38afa92c216d7be73044af47ecf0a601ce1596b146961c583a306aba05422c3973ebcb1ffd45d0f721b2e8253f95dcd190c682e7b45c3d
|
7
|
+
data.tar.gz: 31ac2c0e8bfaad3b1be3477ba39292908a098e95bb57c208ed1abd6f8bebe70930238be6c73eb89a9eaa66997de9722ca03e11ba0caf65c409c1797d84689c8e
|
data/.rubocop.yml
CHANGED
data/Rakefile
CHANGED
data/config/rubocop.yml
CHANGED
@@ -131,3 +131,12 @@ SignalException:
|
|
131
131
|
|
132
132
|
Style/FrozenStringLiteralComment:
|
133
133
|
Enabled: false
|
134
|
+
|
135
|
+
Style/CommentedKeyword:
|
136
|
+
Enabled: false
|
137
|
+
|
138
|
+
Style/MixinGrouping:
|
139
|
+
Enabled: false
|
140
|
+
|
141
|
+
Layout/MultilineMethodCallIndentation:
|
142
|
+
EnforcedStyle: indented
|
data/devtools.gemspec
CHANGED
@@ -1,36 +1,37 @@
|
|
1
|
+
# rubocop:disable Metrics/BlockLength
|
1
2
|
Gem::Specification.new do |gem|
|
2
3
|
gem.name = 'devtools'
|
3
|
-
gem.version = '0.1.
|
4
|
-
gem.authors = [
|
5
|
-
gem.email = [
|
4
|
+
gem.version = '0.1.19'
|
5
|
+
gem.authors = ['Markus Schirp']
|
6
|
+
gem.email = ['mbj@schirp-dso.com']
|
6
7
|
gem.description = 'A metagem wrapping development tools'
|
7
8
|
gem.summary = gem.description
|
8
9
|
gem.homepage = 'https://github.com/rom-rb/devtools'
|
9
10
|
gem.license = 'MIT'
|
10
11
|
|
11
12
|
gem.require_paths = %w[lib]
|
12
|
-
gem.files = `git ls-files`.split(
|
13
|
+
gem.files = `git ls-files`.split("\n")
|
13
14
|
gem.executables = %w[]
|
14
|
-
gem.test_files = `git ls-files -- spec`.split(
|
15
|
+
gem.test_files = `git ls-files -- spec`.split("\n")
|
15
16
|
gem.extra_rdoc_files = %w[README.md]
|
16
17
|
gem.required_ruby_version = '>= 2.1'
|
17
18
|
|
18
|
-
gem.add_runtime_dependency 'procto', '~> 0.0.3'
|
19
19
|
gem.add_runtime_dependency 'abstract_type', '~> 0.0.7'
|
20
|
+
gem.add_runtime_dependency 'adamantium', '~> 0.2.0'
|
20
21
|
gem.add_runtime_dependency 'anima', '~> 0.3.0'
|
21
22
|
gem.add_runtime_dependency 'concord', '~> 0.1.5'
|
22
|
-
gem.add_runtime_dependency '
|
23
|
-
gem.add_runtime_dependency '
|
24
|
-
gem.add_runtime_dependency '
|
25
|
-
gem.add_runtime_dependency 'rspec
|
23
|
+
gem.add_runtime_dependency 'flay', '~> 2.10.0'
|
24
|
+
gem.add_runtime_dependency 'flog', '~> 4.6.1'
|
25
|
+
gem.add_runtime_dependency 'mutant', '~> 0.8.14'
|
26
|
+
gem.add_runtime_dependency 'mutant-rspec', '~> 0.8.14'
|
27
|
+
gem.add_runtime_dependency 'procto', '~> 0.0.3'
|
26
28
|
gem.add_runtime_dependency 'rake', '~> 12.0.0'
|
27
|
-
gem.add_runtime_dependency '
|
28
|
-
gem.add_runtime_dependency '
|
29
|
-
gem.add_runtime_dependency '
|
30
|
-
gem.add_runtime_dependency '
|
31
|
-
gem.add_runtime_dependency 'rubocop', '~> 0.
|
29
|
+
gem.add_runtime_dependency 'reek', '~> 4.7.3'
|
30
|
+
gem.add_runtime_dependency 'rspec', '~> 3.6.0'
|
31
|
+
gem.add_runtime_dependency 'rspec-core', '~> 3.6.0'
|
32
|
+
gem.add_runtime_dependency 'rspec-its', '~> 1.2.0'
|
33
|
+
gem.add_runtime_dependency 'rubocop', '~> 0.51.0'
|
32
34
|
gem.add_runtime_dependency 'simplecov', '~> 0.14.0'
|
35
|
+
gem.add_runtime_dependency 'yard', '~> 0.9.9'
|
33
36
|
gem.add_runtime_dependency 'yardstick', '~> 0.9.9'
|
34
|
-
gem.add_runtime_dependency 'mutant', '~> 0.8.11'
|
35
|
-
gem.add_runtime_dependency 'mutant-rspec', '~> 0.8.11'
|
36
37
|
end
|
data/tasks/metrics/coverage.rake
CHANGED
data/tasks/metrics/flog.rake
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# rubocop:disable Metrics/BlockLength
|
1
2
|
namespace :metrics do
|
2
3
|
require 'flog'
|
3
4
|
require 'flog_cli'
|
@@ -13,9 +14,11 @@ namespace :metrics do
|
|
13
14
|
flog = Flog.new
|
14
15
|
flog.flog(*PathExpander.new(config.lib_dirs.dup, '**/*.rb').process)
|
15
16
|
|
16
|
-
totals = flog
|
17
|
-
|
18
|
-
|
17
|
+
totals = flog
|
18
|
+
.totals
|
19
|
+
.reject { |name, _score| name.end_with?('#none') }
|
20
|
+
.map { |name, score| [name, score.round(1)] }
|
21
|
+
.sort_by { |_name, score| score }
|
19
22
|
|
20
23
|
if totals.any?
|
21
24
|
max = totals.last[1]
|
@@ -24,7 +27,8 @@ namespace :metrics do
|
|
24
27
|
end
|
25
28
|
end
|
26
29
|
|
27
|
-
bad_methods = totals.select { |
|
30
|
+
bad_methods = totals.select { |_name, score| score > threshold }
|
31
|
+
|
28
32
|
if bad_methods.any?
|
29
33
|
bad_methods.reverse_each do |name, score|
|
30
34
|
printf "%8.1f: %s\n", score, name
|
data/tasks/metrics/mutant.rake
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
# rubocop:disable Metrics/BlockLength
|
1
2
|
namespace :metrics do
|
2
|
-
config
|
3
|
+
config = Devtools.project.mutant
|
3
4
|
|
4
5
|
desc 'Measure mutation coverage'
|
5
6
|
task mutant: :coverage do
|
@@ -28,7 +29,7 @@ namespace :metrics do
|
|
28
29
|
[]
|
29
30
|
end
|
30
31
|
|
31
|
-
arguments
|
32
|
+
arguments = %W[
|
32
33
|
--include lib
|
33
34
|
--require #{config.name}
|
34
35
|
--use #{config.strategy}
|
data/tasks/metrics/rubocop.rake
CHANGED
@@ -4,7 +4,7 @@ namespace :metrics do
|
|
4
4
|
require 'rubocop'
|
5
5
|
config = Devtools.project.rubocop
|
6
6
|
begin
|
7
|
-
exit_status = RuboCop::CLI.new.run(%W[--config #{config.config_file
|
7
|
+
exit_status = RuboCop::CLI.new.run(%W[--config #{config.config_file}])
|
8
8
|
fail 'Rubocop not successful' unless exit_status.zero?
|
9
9
|
rescue Encoding::CompatibilityError => exception
|
10
10
|
Devtools.notify_metric_violation exception.message
|
data/tasks/spec.rake
CHANGED
data/tasks/yard.rake
CHANGED
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: abstract_type
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.0.
|
19
|
+
version: 0.0.7
|
20
20
|
type: :runtime
|
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: 0.0.
|
26
|
+
version: 0.0.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: adamantium
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.0
|
33
|
+
version: 0.2.0
|
34
34
|
type: :runtime
|
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: 0.0
|
40
|
+
version: 0.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: anima
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,201 +67,201 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.1.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: flay
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 2.10.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 2.10.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: flog
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 4.6.1
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 4.6.1
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: mutant
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.8.14
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.8.14
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name: rspec
|
112
|
+
name: mutant-rspec
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: 0.8.14
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: 0.8.14
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: procto
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: 0.0.3
|
132
132
|
type: :runtime
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version:
|
138
|
+
version: 0.0.3
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
-
name:
|
140
|
+
name: rake
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 0.
|
145
|
+
version: 12.0.0
|
146
146
|
type: :runtime
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 0.
|
152
|
+
version: 12.0.0
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
154
|
+
name: reek
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
157
|
- - "~>"
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: 4.7.3
|
160
160
|
type: :runtime
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
163
163
|
requirements:
|
164
164
|
- - "~>"
|
165
165
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
166
|
+
version: 4.7.3
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
168
|
+
name: rspec
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version:
|
173
|
+
version: 3.6.0
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version:
|
180
|
+
version: 3.6.0
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
-
name:
|
182
|
+
name: rspec-core
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
185
|
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
187
|
+
version: 3.6.0
|
188
188
|
type: :runtime
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
192
|
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version:
|
194
|
+
version: 3.6.0
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: rspec-its
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - "~>"
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: 1.2.0
|
202
202
|
type: :runtime
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
205
205
|
requirements:
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
|
-
version:
|
208
|
+
version: 1.2.0
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
-
name:
|
210
|
+
name: rubocop
|
211
211
|
requirement: !ruby/object:Gem::Requirement
|
212
212
|
requirements:
|
213
213
|
- - "~>"
|
214
214
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
215
|
+
version: 0.51.0
|
216
216
|
type: :runtime
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version: 0.
|
222
|
+
version: 0.51.0
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
224
|
+
name: simplecov
|
225
225
|
requirement: !ruby/object:Gem::Requirement
|
226
226
|
requirements:
|
227
227
|
- - "~>"
|
228
228
|
- !ruby/object:Gem::Version
|
229
|
-
version: 0.
|
229
|
+
version: 0.14.0
|
230
230
|
type: :runtime
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
233
233
|
requirements:
|
234
234
|
- - "~>"
|
235
235
|
- !ruby/object:Gem::Version
|
236
|
-
version: 0.
|
236
|
+
version: 0.14.0
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
238
|
+
name: yard
|
239
239
|
requirement: !ruby/object:Gem::Requirement
|
240
240
|
requirements:
|
241
241
|
- - "~>"
|
242
242
|
- !ruby/object:Gem::Version
|
243
|
-
version: 0.
|
243
|
+
version: 0.9.9
|
244
244
|
type: :runtime
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
247
247
|
requirements:
|
248
248
|
- - "~>"
|
249
249
|
- !ruby/object:Gem::Version
|
250
|
-
version: 0.
|
250
|
+
version: 0.9.9
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
252
|
+
name: yardstick
|
253
253
|
requirement: !ruby/object:Gem::Requirement
|
254
254
|
requirements:
|
255
255
|
- - "~>"
|
256
256
|
- !ruby/object:Gem::Version
|
257
|
-
version: 0.
|
257
|
+
version: 0.9.9
|
258
258
|
type: :runtime
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
261
261
|
requirements:
|
262
262
|
- - "~>"
|
263
263
|
- !ruby/object:Gem::Version
|
264
|
-
version: 0.
|
264
|
+
version: 0.9.9
|
265
265
|
description: A metagem wrapping development tools
|
266
266
|
email:
|
267
267
|
- mbj@schirp-dso.com
|
@@ -342,7 +342,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
342
342
|
version: '0'
|
343
343
|
requirements: []
|
344
344
|
rubyforge_project:
|
345
|
-
rubygems_version: 2.6.
|
345
|
+
rubygems_version: 2.6.13
|
346
346
|
signing_key:
|
347
347
|
specification_version: 4
|
348
348
|
summary: A metagem wrapping development tools
|