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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c549a85682750f12b2c140ec3ebe7e2491be50e4
4
- data.tar.gz: 183f938f5d2b926f4bd2357b42f3099ee069af2d
3
+ metadata.gz: 1c2270dfb75f85fcf1a74d5dd59a150e0b085e53
4
+ data.tar.gz: 79016f9af38770aa4a428bc60d6233d8474e0792
5
5
  SHA512:
6
- metadata.gz: 37fff166ad4e307eeff09ae504c56d0ba6f9326f723a781f9b678e6950e559b0599c884b9a808a1522a93adb4e832e934c63e904c5f377d7d6b13f2ebf244f08
7
- data.tar.gz: 237a5b52c549125ff9d542f5c69cc75f40aacbc86cf8ed1bb9cec736bb328cf128ef218faa9c89b3f0fbcfc05544e7f9de6663dfd23ab9a9de7ad3f675189b94
6
+ metadata.gz: dd74658d9892ee698a38afa92c216d7be73044af47ecf0a601ce1596b146961c583a306aba05422c3973ebcb1ffd45d0f721b2e8253f95dcd190c682e7b45c3d
7
+ data.tar.gz: 31ac2c0e8bfaad3b1be3477ba39292908a098e95bb57c208ed1abd6f8bebe70930238be6c73eb89a9eaa66997de9722ca03e11ba0caf65c409c1797d84689c8e
@@ -1,5 +1,4 @@
1
1
  AllCops:
2
+ DisplayCopNames: true
2
3
  Include:
3
4
  - 'Gemfile'
4
- Exclude:
5
- - 'vendor/**/*'
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ # rubocop:disable Naming/FileName
1
2
  require 'devtools'
2
3
 
3
4
  ENV['DEVTOOLS_SELF'] = '1'
@@ -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
@@ -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.18'
4
- gem.authors = [ 'Markus Schirp' ]
5
- gem.email = [ 'mbj@schirp-dso.com' ]
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 'adamantium', '~> 0.2.0'
23
- gem.add_runtime_dependency 'rspec', '~> 3.5.0'
24
- gem.add_runtime_dependency 'rspec-core', '~> 3.5.4'
25
- gem.add_runtime_dependency 'rspec-its', '~> 1.2.0'
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 'yard', '~> 0.9.1'
28
- gem.add_runtime_dependency 'flay', '~> 2.8.1'
29
- gem.add_runtime_dependency 'flog', '~> 4.4.0'
30
- gem.add_runtime_dependency 'reek', '~> 4.6.0'
31
- gem.add_runtime_dependency 'rubocop', '~> 0.47.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
@@ -97,7 +97,8 @@ describe Devtools::Rake::Flay, '#verify' do
97
97
  end
98
98
 
99
99
  let(:report) do
100
- <<-REPORT
100
+ # rubocop:disable Layout/IndentHeredoc
101
+ <<~REPORT
101
102
  Total score (lower is better) = 10
102
103
 
103
104
  Similar code found in :defn (mass = 10)
@@ -2,6 +2,7 @@ namespace :metrics do
2
2
  desc 'Measure code coverage'
3
3
  task :coverage do
4
4
  begin
5
+ # rubocop:disable Style/ParallelAssignment
5
6
  original, ENV['COVERAGE'] = ENV['COVERAGE'], 'true'
6
7
  Rake::Task['spec:unit'].execute
7
8
  ensure
@@ -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.totals.select { |name, score| name[-5, 5] != '#none' }
17
- .map { |name, score| [name, score.round(1)] }
18
- .sort_by { |name, score| score }
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 { |name, score| score > threshold }
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
@@ -1,5 +1,6 @@
1
+ # rubocop:disable Metrics/BlockLength
1
2
  namespace :metrics do
2
- config = Devtools.project.mutant
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 = %W[
32
+ arguments = %W[
32
33
  --include lib
33
34
  --require #{config.name}
34
35
  --use #{config.strategy}
@@ -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.to_s}])
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
@@ -26,7 +26,7 @@ begin
26
26
  rescue LoadError
27
27
  %w[spec spec:unit spec:integration].each do |name|
28
28
  task name do
29
- $stderr.puts "In order to run #{name}, do: gem install rspec"
29
+ warn "In order to run #{name}, do: gem install rspec"
30
30
  end
31
31
  end
32
32
  end
@@ -4,6 +4,6 @@ begin
4
4
  YARD::Rake::YardocTask.new
5
5
  rescue LoadError
6
6
  task :yard do
7
- $stderr.puts 'In order to run yard, you must: gem install yard'
7
+ warn 'In order to run yard, you must: gem install yard'
8
8
  end
9
9
  end
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.18
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-06-30 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: procto
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.3
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.3
26
+ version: 0.0.7
27
27
  - !ruby/object:Gem::Dependency
28
- name: abstract_type
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.7
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.7
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: adamantium
70
+ name: flay
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: 0.2.0
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: 0.2.0
82
+ version: 2.10.0
83
83
  - !ruby/object:Gem::Dependency
84
- name: rspec
84
+ name: flog
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: 3.5.0
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: 3.5.0
96
+ version: 4.6.1
97
97
  - !ruby/object:Gem::Dependency
98
- name: rspec-core
98
+ name: mutant
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 3.5.4
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: 3.5.4
110
+ version: 0.8.14
111
111
  - !ruby/object:Gem::Dependency
112
- name: rspec-its
112
+ name: mutant-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: 1.2.0
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: 1.2.0
124
+ version: 0.8.14
125
125
  - !ruby/object:Gem::Dependency
126
- name: rake
126
+ name: procto
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 12.0.0
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: 12.0.0
138
+ version: 0.0.3
139
139
  - !ruby/object:Gem::Dependency
140
- name: yard
140
+ name: rake
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: 0.9.1
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.9.1
152
+ version: 12.0.0
153
153
  - !ruby/object:Gem::Dependency
154
- name: flay
154
+ name: reek
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
157
  - - "~>"
158
158
  - !ruby/object:Gem::Version
159
- version: 2.8.1
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: 2.8.1
166
+ version: 4.7.3
167
167
  - !ruby/object:Gem::Dependency
168
- name: flog
168
+ name: rspec
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 4.4.0
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: 4.4.0
180
+ version: 3.6.0
181
181
  - !ruby/object:Gem::Dependency
182
- name: reek
182
+ name: rspec-core
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
185
  - - "~>"
186
186
  - !ruby/object:Gem::Version
187
- version: 4.6.0
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: 4.6.0
194
+ version: 3.6.0
195
195
  - !ruby/object:Gem::Dependency
196
- name: rubocop
196
+ name: rspec-its
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
199
  - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.47.0
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: 0.47.0
208
+ version: 1.2.0
209
209
  - !ruby/object:Gem::Dependency
210
- name: simplecov
210
+ name: rubocop
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - "~>"
214
214
  - !ruby/object:Gem::Version
215
- version: 0.14.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.14.0
222
+ version: 0.51.0
223
223
  - !ruby/object:Gem::Dependency
224
- name: yardstick
224
+ name: simplecov
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: 0.9.9
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.9.9
236
+ version: 0.14.0
237
237
  - !ruby/object:Gem::Dependency
238
- name: mutant
238
+ name: yard
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
241
  - - "~>"
242
242
  - !ruby/object:Gem::Version
243
- version: 0.8.11
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.8.11
250
+ version: 0.9.9
251
251
  - !ruby/object:Gem::Dependency
252
- name: mutant-rspec
252
+ name: yardstick
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: 0.8.11
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.8.11
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.11
345
+ rubygems_version: 2.6.13
346
346
  signing_key:
347
347
  specification_version: 4
348
348
  summary: A metagem wrapping development tools