Skip to content

Commit

Permalink
Merge pull request #135 from mbj/upgrade/dependencies-july-2016
Browse files Browse the repository at this point in the history
Upgrade flay, rubocop, rspec, mutant
  • Loading branch information
mbj committed Aug 1, 2016
2 parents 8b287e0 + 62a7ce9 commit 47fa411
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 11 deletions.
12 changes: 6 additions & 6 deletions devtools.gemspec
Expand Up @@ -19,17 +19,17 @@ Gem::Specification.new do |gem|
gem.add_runtime_dependency 'anima', '~> 0.3.0'
gem.add_runtime_dependency 'concord', '~> 0.1.5'
gem.add_runtime_dependency 'adamantium', '~> 0.2.0'
gem.add_runtime_dependency 'rspec', '= 3.4.0' # blocked by mutant-rspec
gem.add_runtime_dependency 'rspec-core', '= 3.4.4' # blocked by mutant-rspec
gem.add_runtime_dependency 'rspec', '~> 3.5.0'
gem.add_runtime_dependency 'rspec-core', '~> 3.5.2'
gem.add_runtime_dependency 'rspec-its', '~> 1.2.0'
gem.add_runtime_dependency 'rake', '~> 11.2.2'
gem.add_runtime_dependency 'yard', '~> 0.9.1'
gem.add_runtime_dependency 'flay', '= 2.7.0' # blocked by interface changes
gem.add_runtime_dependency 'flay', '~> 2.8.0'
gem.add_runtime_dependency 'flog', '~> 4.4.0'
gem.add_runtime_dependency 'reek', '~> 4.2.0'
gem.add_runtime_dependency 'rubocop', '~> 0.41.2'
gem.add_runtime_dependency 'rubocop', '~> 0.42.0'
gem.add_runtime_dependency 'simplecov', '~> 0.12.0'
gem.add_runtime_dependency 'yardstick', '~> 0.9.9'
gem.add_runtime_dependency 'mutant', '~> 0.8.10'
gem.add_runtime_dependency 'mutant-rspec', '~> 0.8.8'
gem.add_runtime_dependency 'mutant', '~> 0.8.11'
gem.add_runtime_dependency 'mutant-rspec', '~> 0.8.11'
end
2 changes: 0 additions & 2 deletions lib/devtools/config.rb
Expand Up @@ -157,14 +157,12 @@ class Mutant < self
FILE = 'mutant.yml'.freeze
DEFAULT_NAME = ''.freeze
DEFAULT_STRATEGY = 'rspec'.freeze
DEFAULT_COVERAGE = '1/1'.freeze

attribute :name, [String], default: DEFAULT_NAME
attribute :strategy, [String], default: DEFAULT_STRATEGY
attribute :zombify, [TrueClass, FalseClass], default: false
attribute :since, [String, NilClass], default: nil
attribute :ignore_subjects, [Array], default: []
attribute :expect_coverage, [String], default: DEFAULT_COVERAGE
attribute :namespace, [String]
end # Mutant

Expand Down
4 changes: 3 additions & 1 deletion lib/devtools/flay.rb
Expand Up @@ -46,6 +46,8 @@ def flay
class FileList
include Procto.call, Concord.new(:includes, :excludes)

GLOB = '**/*.{rb,erb}'.freeze

# Expand includes and filter by excludes
#
# @return [Set<Pathname>]
Expand Down Expand Up @@ -87,7 +89,7 @@ def include_set
#
# @api private
def flay_includes
::Flay.expand_dirs_to_files(includes)
PathExpander.new(includes.dup, GLOB).process
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/devtools/flay/file_list/call_spec.rb
@@ -1,5 +1,5 @@
describe Devtools::Flay::FileList, '.call' do
subject(:output) { described_class.call([tmpdir.to_s], [exclude]) }
subject(:output) { described_class.call([tmpdir.to_s].freeze, [exclude]) }

let(:tmpdir) { Dir.mktmpdir }
let(:one) { Pathname(tmpdir).join('1.rb') }
Expand Down
1 change: 0 additions & 1 deletion tasks/metrics/mutant.rake
Expand Up @@ -31,7 +31,6 @@ namespace :metrics do
arguments = %W[
--include lib
--require #{config.name}
--expect-coverage #{config.expect_coverage}
--use #{config.strategy}
].concat(ignore_subjects).concat(namespaces).concat(since).concat(jobs)

Expand Down

0 comments on commit 47fa411

Please sign in to comment.