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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0761d154eed75d0b204adfbcab021a4e1b14c0ee02ae5ca4dfe1d0f5d29eb2bf
4
- data.tar.gz: 262692949f74fa0588e15602556eeb08a0564fe1cc086f44d131b8e9774de762
3
+ metadata.gz: f154a4a603c5c90c6e36b9543bd551c53d97e976beb2341ac5a0d9980cdad238
4
+ data.tar.gz: c4ca346e733ae7b414647409d5cf06910b6881dc9ec3711956fe118738575f14
5
5
  SHA512:
6
- metadata.gz: c150041538afd2934e51c8b1254c1e2356aafb35e22332c9c7fd136e05d4d376eba91572d0343bde9548941658fd1848e683c0c3a8a359a04e907afca0e193d0
7
- data.tar.gz: f983bc915bd64cbaf3079136ed549599f5012d8a7a207b4b68edcf9955a17ff99e8ecab12ae44cfd10ff17580d48aae1b92fd3a3fd9fca75ad4010d6e612f51b
6
+ metadata.gz: ab6841c8a0308bf4ff1ce76652f627d4c9094572207f47921a301b239685e12d642d68bf73f3efd704b1f34baa3d7c3a88a3a680e468a7db999b08fe523afd68
7
+ data.tar.gz: 4e2a20dd8a697910f6fbf881cf2a8f88bb340852b2983f348d7beaf929fc8b7ca11ffc46c9c45cca80d01107792c5e25a963df98611702fbf09815e77dadda00
@@ -30,7 +30,7 @@ jobs:
30
30
  steps:
31
31
  - checkout
32
32
  - run: bundle install
33
- - run: bundle exec rake metrics:mutant
33
+ - run: bundle exec mutant --since HEAD~1 -- 'Devtools*'
34
34
  workflows:
35
35
  version: 2
36
36
  test:
data/Gemfile CHANGED
@@ -1,3 +1,9 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ gem(
6
+ 'mutant',
7
+ git: 'https://github.com/mbj/mutant.git',
8
+ ref: 'b55665b8ad5983760c38b3ab8c8a0e2c2fe97c1d'
9
+ )
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 8
3
- total_score: 122
3
+ total_score: 119
@@ -1,4 +1,6 @@
1
- name: devtools
2
- namespace: Devtools
3
- ignore_subjects:
4
- - "Devtools::Flay::Scale#flay"
1
+ ---
2
+ includes:
3
+ - lib
4
+ integration: rspec
5
+ requires:
6
+ - devtools
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'devtools'
3
- gem.version = '0.1.23'
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
@@ -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'
@@ -9,7 +9,6 @@ module Devtools
9
9
  flay: Config::Flay,
10
10
  flog: Config::Flog,
11
11
  reek: Config::Reek,
12
- mutant: Config::Mutant,
13
12
  rubocop: Config::Rubocop,
14
13
  yardstick: Config::Yardstick
15
14
  }.freeze
@@ -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|
@@ -1,5 +1,5 @@
1
- desc 'Run all specs, metrics and mutant'
2
- task ci: %w[ci:metrics metrics:mutant]
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.23
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: 2018-12-31 00:00:00.000000000 Z
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.1
328
+ rubygems_version: 3.0.3
344
329
  signing_key:
345
330
  specification_version: 4
346
331
  summary: A metagem wrapping development tools
@@ -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