devtools 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +1 -1
- data/Gemfile +6 -0
- data/config/flay.yml +1 -1
- data/config/mutant.yml +6 -4
- data/devtools.gemspec +3 -3
- data/lib/devtools/config.rb +0 -14
- data/lib/devtools/project.rb +0 -1
- data/spec/unit/devtools/project_spec.rb +0 -1
- data/tasks/metrics/ci.rake +2 -5
- metadata +17 -32
- data/tasks/metrics/mutant.rake +0 -43
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f154a4a603c5c90c6e36b9543bd551c53d97e976beb2341ac5a0d9980cdad238
|
4
|
+
data.tar.gz: c4ca346e733ae7b414647409d5cf06910b6881dc9ec3711956fe118738575f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab6841c8a0308bf4ff1ce76652f627d4c9094572207f47921a301b239685e12d642d68bf73f3efd704b1f34baa3d7c3a88a3a680e468a7db999b08fe523afd68
|
7
|
+
data.tar.gz: 4e2a20dd8a697910f6fbf881cf2a8f88bb340852b2983f348d7beaf929fc8b7ca11ffc46c9c45cca80d01107792c5e25a963df98611702fbf09815e77dadda00
|
data/.circleci/config.yml
CHANGED
data/Gemfile
CHANGED
data/config/flay.yml
CHANGED
data/config/mutant.yml
CHANGED
data/devtools.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'devtools'
|
3
|
-
gem.version = '0.1.
|
3
|
+
gem.version = '0.1.24'
|
4
4
|
gem.authors = ['Markus Schirp']
|
5
5
|
gem.email = ['mbj@schirp-dso.com']
|
6
6
|
gem.description = 'A metagem wrapping development tools'
|
@@ -21,8 +21,6 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_runtime_dependency 'concord', '~> 0.1.5'
|
22
22
|
gem.add_runtime_dependency 'flay', '~> 2.12.0'
|
23
23
|
gem.add_runtime_dependency 'flog', '~> 4.6.2'
|
24
|
-
gem.add_runtime_dependency 'mutant', '~> 0.8.24'
|
25
|
-
gem.add_runtime_dependency 'mutant-rspec', '~> 0.8.24'
|
26
24
|
gem.add_runtime_dependency 'procto', '~> 0.0.3'
|
27
25
|
gem.add_runtime_dependency 'rake', '~> 12.3.0'
|
28
26
|
gem.add_runtime_dependency 'reek', '~> 5.3.0'
|
@@ -33,4 +31,6 @@ Gem::Specification.new do |gem|
|
|
33
31
|
gem.add_runtime_dependency 'simplecov', '~> 0.16.1'
|
34
32
|
gem.add_runtime_dependency 'yard', '~> 0.9.16'
|
35
33
|
gem.add_runtime_dependency 'yardstick', '~> 0.9.9'
|
34
|
+
|
35
|
+
gem.add_development_dependency 'mutant', '~> 0.8.24'
|
36
36
|
end
|
data/lib/devtools/config.rb
CHANGED
@@ -155,20 +155,6 @@ module Devtools
|
|
155
155
|
attribute :lib_dirs, [Array], default: DEFAULT_LIB_DIRS
|
156
156
|
end # Flog
|
157
157
|
|
158
|
-
# Mutant configuration
|
159
|
-
class Mutant < self
|
160
|
-
FILE = 'mutant.yml'
|
161
|
-
DEFAULT_NAME = ''
|
162
|
-
DEFAULT_STRATEGY = 'rspec'
|
163
|
-
|
164
|
-
attribute :name, [String], default: DEFAULT_NAME
|
165
|
-
attribute :strategy, [String], default: DEFAULT_STRATEGY
|
166
|
-
attribute :zombify, [TrueClass, FalseClass], default: false
|
167
|
-
attribute :since, [String, NilClass], default: nil
|
168
|
-
attribute :ignore_subjects, [Array], default: []
|
169
|
-
attribute :namespace, [String]
|
170
|
-
end # Mutant
|
171
|
-
|
172
158
|
# Devtools configuration
|
173
159
|
class Devtools < self
|
174
160
|
FILE = 'devtools.yml'
|
data/lib/devtools/project.rb
CHANGED
@@ -16,7 +16,6 @@ RSpec.describe Devtools::Project do
|
|
16
16
|
flay: Devtools::Config::Flay,
|
17
17
|
flog: Devtools::Config::Flog,
|
18
18
|
reek: Devtools::Config::Reek,
|
19
|
-
mutant: Devtools::Config::Mutant,
|
20
19
|
rubocop: Devtools::Config::Rubocop,
|
21
20
|
yardstick: Devtools::Config::Yardstick
|
22
21
|
}.each do |name, klass|
|
data/tasks/metrics/ci.rake
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
desc 'Run all specs
|
2
|
-
task ci: %w[ci:metrics
|
1
|
+
desc 'Run all specs and metrics'
|
2
|
+
task ci: %w[ci:metrics]
|
3
3
|
|
4
4
|
namespace :ci do
|
5
5
|
tasks = %w[
|
@@ -11,7 +11,4 @@ namespace :ci do
|
|
11
11
|
metrics:reek
|
12
12
|
spec:integration
|
13
13
|
]
|
14
|
-
|
15
|
-
desc 'Run metrics (except mutant)'
|
16
|
-
task metrics: tasks
|
17
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Markus Schirp
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: abstract_type
|
@@ -94,34 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: 4.6.2
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: mutant
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: 0.8.24
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: 0.8.24
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: mutant-rspec
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: 0.8.24
|
118
|
-
type: :runtime
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: 0.8.24
|
125
97
|
- !ruby/object:Gem::Dependency
|
126
98
|
name: procto
|
127
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -262,6 +234,20 @@ dependencies:
|
|
262
234
|
- - "~>"
|
263
235
|
- !ruby/object:Gem::Version
|
264
236
|
version: 0.9.9
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: mutant
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 0.8.24
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 0.8.24
|
265
251
|
description: A metagem wrapping development tools
|
266
252
|
email:
|
267
253
|
- mbj@schirp-dso.com
|
@@ -315,7 +301,6 @@ files:
|
|
315
301
|
- tasks/metrics/coverage.rake
|
316
302
|
- tasks/metrics/flay.rake
|
317
303
|
- tasks/metrics/flog.rake
|
318
|
-
- tasks/metrics/mutant.rake
|
319
304
|
- tasks/metrics/reek.rake
|
320
305
|
- tasks/metrics/rubocop.rake
|
321
306
|
- tasks/metrics/yardstick.rake
|
@@ -340,7 +325,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
340
325
|
- !ruby/object:Gem::Version
|
341
326
|
version: '0'
|
342
327
|
requirements: []
|
343
|
-
rubygems_version: 3.0.
|
328
|
+
rubygems_version: 3.0.3
|
344
329
|
signing_key:
|
345
330
|
specification_version: 4
|
346
331
|
summary: A metagem wrapping development tools
|
data/tasks/metrics/mutant.rake
DELETED
@@ -1,43 +0,0 @@
|
|
1
|
-
# rubocop:disable Metrics/BlockLength
|
2
|
-
namespace :metrics do
|
3
|
-
config = Devtools.project.mutant
|
4
|
-
|
5
|
-
desc 'Measure mutation coverage'
|
6
|
-
task mutant: :coverage do
|
7
|
-
require 'mutant'
|
8
|
-
|
9
|
-
namespace =
|
10
|
-
if config.zombify
|
11
|
-
Mutant.zombify
|
12
|
-
Zombie::Mutant
|
13
|
-
else
|
14
|
-
Mutant
|
15
|
-
end
|
16
|
-
|
17
|
-
namespaces = Array(config.namespace).map { |n| "#{n}*" }
|
18
|
-
|
19
|
-
ignore_subjects = config.ignore_subjects.flat_map do |matcher|
|
20
|
-
%W[--ignore #{matcher}]
|
21
|
-
end
|
22
|
-
|
23
|
-
jobs = ENV.key?('CIRCLECI') ? %w[--jobs 4] : []
|
24
|
-
|
25
|
-
since =
|
26
|
-
if config.since
|
27
|
-
%W[--since #{config.since}]
|
28
|
-
else
|
29
|
-
[]
|
30
|
-
end
|
31
|
-
|
32
|
-
arguments = %W[
|
33
|
-
--include lib
|
34
|
-
--require #{config.name}
|
35
|
-
--use #{config.strategy}
|
36
|
-
].concat(ignore_subjects).concat(namespaces).concat(since).concat(jobs)
|
37
|
-
|
38
|
-
unless namespace::CLI.run(arguments)
|
39
|
-
Devtools.notify_metric_violation('Mutant task is not successful')
|
40
|
-
end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
# rubocop:enable Metrics/BlockLength
|