From 63ebaa94a5e7b8a04cf88a854da7883251aa87ee Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 16:45:32 +0100 Subject: [PATCH 01/12] Prepare changelog --- Changelog.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Changelog.md b/Changelog.md index 4e9e8012..687fc40f 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,11 +1,21 @@ +# v0.2.20 2013-03-1 + +* [change] Update dependencies + +[Compare v0.2.17..v0.2.20](https://github.com/mbj/mutant/compare/v0.2.17...v0.2.20) + # v0.2.17 2013-01-20 * [change] Update dependencies +[Compare v0.2.16..v0.2.17](https://github.com/mbj/mutant/compare/v0.2.16...v0.2.17) + # v0.2.16 2013-01-20 * [fixed] Handle Rubinius::AST::NthRef as noop +[Compare v0.2.15..v0.2.16](https://github.com/mbj/mutant/compare/v0.2.15...v0.2.16) + # v0.2.15 2013-01-10 * [change] Do not mutate super to super() anymore. This needs a context check in future. From aefb32e6d9632699538ba4659f83b1ae137fe481 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 16:51:25 +0100 Subject: [PATCH 02/12] Bump version to 0.2.20 --- mutant.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutant.gemspec b/mutant.gemspec index 3a71024a..218c4b81 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |gem| gem.name = 'mutant' - gem.version = '0.2.17' + gem.version = '0.2.20' gem.authors = [ 'Markus Schirp' ] gem.email = [ 'mbj@seonic.net' ] gem.description = 'Mutation testing for ruby' From b7bd85ea8bac0e294a41ad48f7872efda14253ae Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 16:51:50 +0100 Subject: [PATCH 03/12] Update to long living backports dependency --- mutant.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutant.gemspec b/mutant.gemspec index 218c4b81..e3d7332c 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -15,7 +15,7 @@ Gem::Specification.new do |gem| gem.extra_rdoc_files = %w[TODO LICENSE] gem.executables = [ 'mutant' ] - gem.add_runtime_dependency('backports', '~> 2.8.2') + gem.add_runtime_dependency('backports', [ '~> 3.0', '>= 3.0.3' ]) gem.add_runtime_dependency('to_source', '~> 0.2.14') gem.add_runtime_dependency('ice_nine', '~> 0.7.0') gem.add_runtime_dependency('descendants_tracker', '~> 0.0.1') From c70c5669144c58eec4f660eb8d67d7014c54a8bb Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 16:52:07 +0100 Subject: [PATCH 04/12] Update adamantium and equalizer dependency --- mutant.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mutant.gemspec b/mutant.gemspec index e3d7332c..b78a6231 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -19,8 +19,8 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency('to_source', '~> 0.2.14') gem.add_runtime_dependency('ice_nine', '~> 0.7.0') gem.add_runtime_dependency('descendants_tracker', '~> 0.0.1') - gem.add_runtime_dependency('adamantium', '~> 0.0.6') - gem.add_runtime_dependency('equalizer', '~> 0.0.4') + gem.add_runtime_dependency('adamantium', '~> 0.0.7') + gem.add_runtime_dependency('equalizer', '~> 0.0.5') gem.add_runtime_dependency('inflecto', '~> 0.0.2') gem.add_runtime_dependency('abstract_type', '~> 0.0.3') gem.add_runtime_dependency('diff-lcs', '~> 1.1.3') From c7745360820c785598000ed058fdf2b8f52658da Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 16:52:42 +0100 Subject: [PATCH 05/12] Update diff-lcs dependency --- mutant.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutant.gemspec b/mutant.gemspec index b78a6231..9f8b9145 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -23,5 +23,5 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency('equalizer', '~> 0.0.5') gem.add_runtime_dependency('inflecto', '~> 0.0.2') gem.add_runtime_dependency('abstract_type', '~> 0.0.3') - gem.add_runtime_dependency('diff-lcs', '~> 1.1.3') + gem.add_runtime_dependency('diff-lcs', '~> 1.2.1') end From a97f5bdeefcb795cda9fad2c193d649c376ca7ba Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 17:06:01 +0100 Subject: [PATCH 06/12] Bump to source dependency --- mutant.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutant.gemspec b/mutant.gemspec index 9f8b9145..5124969f 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.executables = [ 'mutant' ] gem.add_runtime_dependency('backports', [ '~> 3.0', '>= 3.0.3' ]) - gem.add_runtime_dependency('to_source', '~> 0.2.14') + gem.add_runtime_dependency('to_source', '~> 0.2.20') gem.add_runtime_dependency('ice_nine', '~> 0.7.0') gem.add_runtime_dependency('descendants_tracker', '~> 0.0.1') gem.add_runtime_dependency('adamantium', '~> 0.0.7') From e00938310d4d601a2c3018d05afb64986af0673e Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 17:08:16 +0100 Subject: [PATCH 07/12] Test against 2.0.0 on travis --- .travis.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.travis.yml b/.travis.yml index d7e1fa65..0b3a949e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,7 @@ rvm: - 1.8.7 - 1.9.2 - 1.9.3 + - 2.0.0 - ruby-head - rbx-19mode matrix: @@ -13,6 +14,7 @@ matrix: - rvm: 1.8.7 # We'll see what happens - rvm: ruby-head + - rvm: 2.0.0 notifications: email: - mbj@seonic.net From 81fa45ca74b8835b495ebf238b378a8f39085b98 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 18:04:40 +0100 Subject: [PATCH 08/12] Use correct latest to_source --- mutant.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutant.gemspec b/mutant.gemspec index 5124969f..a4e1eacf 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |gem| gem.executables = [ 'mutant' ] gem.add_runtime_dependency('backports', [ '~> 3.0', '>= 3.0.3' ]) - gem.add_runtime_dependency('to_source', '~> 0.2.20') + gem.add_runtime_dependency('to_source', '~> 0.2.19') gem.add_runtime_dependency('ice_nine', '~> 0.7.0') gem.add_runtime_dependency('descendants_tracker', '~> 0.0.1') gem.add_runtime_dependency('adamantium', '~> 0.0.7') From 2344dfd66e60bcf9571bb3b2f15d5b2837ff9f88 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 18:11:41 +0100 Subject: [PATCH 09/12] Adjust gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 0ff020be..8c8ba099 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ /tmp /coverage /test_app/.rbx +/.bundle +/vendor From fa74670ce0f18e96ee0d0173f3d16df2c8217186 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 18:16:51 +0100 Subject: [PATCH 10/12] Sync devtools --- Gemfile.devtools | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/Gemfile.devtools b/Gemfile.devtools index 46d73064..9dc64d1c 100644 --- a/Gemfile.devtools +++ b/Gemfile.devtools @@ -2,26 +2,25 @@ group :development do gem 'rake', '~> 10.0.3' - gem 'rspec', '~> 2.12.0' - gem 'yard', '~> 0.8.3' + gem 'rspec', '~> 2.13.0' + gem 'yard', '~> 0.8.5' end group :yard do - gem 'redcarpet', '~> 2.2.2', :platforms => [ :mri, :rbx ] + gem 'kramdown', '~> 0.14.2' end group :guard do - gem 'guard', '~> 1.6.1' + gem 'guard', '~> 1.6.2' gem 'guard-bundler', '~> 1.0.0' - gem 'guard-rspec', '~> 2.3.3' + gem 'guard-rspec', '~> 2.4.1' # file system change event handling gem 'rb-fchange', '~> 0.0.6', :require => false gem 'rb-fsevent', '~> 0.9.3', :require => false gem 'rb-inotify', '~> 0.9.0', :require => false - # Remove this one https://github.com/guard/listen/pull/78 is released - gem 'listen', '~> 0.7.2', :git => 'https://github.com/guard/listen' + gem 'listen', '~> 0.7.3' # notification handling gem 'libnotify', '~> 0.8.0', :require => false @@ -30,21 +29,17 @@ group :guard do end group :metrics do - gem 'flay', '~> 1.4.3' - gem 'flog', '~> 2.5.3' - gem 'reek', '~> 1.2.13', :git => 'https://github.com/troessner/reek.git', :ref => 'ef77fcecaa21c9ebcbe4d9a79d41b0e70196bf18' - gem 'roodi', '~> 2.1.0' - gem 'yardstick', '~> 0.9.0' + gem 'flay', '~> 2.1.0' + gem 'flog', '~> 3.2.2' + gem 'reek', '~> 1.3.1' + gem 'metric_fu-roodi', '~> 2.2.1' + gem 'yardstick', '~> 0.9.3', :git => 'https://github.com/dkubb/yardstick.git' platforms :ruby_18, :ruby_19 do # this indirectly depends on ffi which does not build on ruby-head gem 'yard-spellcheck', '~> 0.1.5' end - platforms :mri_18 do - gem 'rcov', '~> 1.0.0' - end - platforms :mri_19 do gem 'simplecov', '~> 0.7.1' end From b8ac5ecbf44bc97262b0717546b8d3e6161a0711 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 18:17:04 +0100 Subject: [PATCH 11/12] Add explicit rspec dependency --- mutant.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/mutant.gemspec b/mutant.gemspec index a4e1eacf..22820351 100644 --- a/mutant.gemspec +++ b/mutant.gemspec @@ -24,4 +24,5 @@ Gem::Specification.new do |gem| gem.add_runtime_dependency('inflecto', '~> 0.0.2') gem.add_runtime_dependency('abstract_type', '~> 0.0.3') gem.add_runtime_dependency('diff-lcs', '~> 1.2.1') + gem.add_runtime_dependency('rspec', '~> 2.13.0') end From 40240b0673dc143f8d466234851a0f11a02f8597 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Fri, 1 Mar 2013 18:46:33 +0100 Subject: [PATCH 12/12] Use Devtools.init_spec_helper --- spec/shared/command_method_behavior.rb | 7 ------- spec/shared/each_method_behaviour.rb | 15 --------------- spec/shared/hash_method_behavior.rb | 17 ----------------- spec/shared/idempotent_method_behavior.rb | 7 ------- spec/shared/invertible_method_behaviour.rb | 9 --------- spec/spec_helper.rb | 6 ++---- 6 files changed, 2 insertions(+), 59 deletions(-) delete mode 100644 spec/shared/command_method_behavior.rb delete mode 100644 spec/shared/each_method_behaviour.rb delete mode 100644 spec/shared/hash_method_behavior.rb delete mode 100644 spec/shared/idempotent_method_behavior.rb delete mode 100644 spec/shared/invertible_method_behaviour.rb diff --git a/spec/shared/command_method_behavior.rb b/spec/shared/command_method_behavior.rb deleted file mode 100644 index c62854d4..00000000 --- a/spec/shared/command_method_behavior.rb +++ /dev/null @@ -1,7 +0,0 @@ -# encoding: utf-8 - -shared_examples_for 'a command method' do - it 'returns self' do - should equal(object) - end -end diff --git a/spec/shared/each_method_behaviour.rb b/spec/shared/each_method_behaviour.rb deleted file mode 100644 index d9b29d79..00000000 --- a/spec/shared/each_method_behaviour.rb +++ /dev/null @@ -1,15 +0,0 @@ -# encoding: utf-8 - -shared_examples_for 'an #each method' do - it_should_behave_like 'a command method' - - context 'with no block' do - subject { object.each } - - it { should be_instance_of(to_enum.class) } - - it 'yields the expected values' do - subject.to_a.should eql(object.to_a) - end - end -end diff --git a/spec/shared/hash_method_behavior.rb b/spec/shared/hash_method_behavior.rb deleted file mode 100644 index 7b20c7d3..00000000 --- a/spec/shared/hash_method_behavior.rb +++ /dev/null @@ -1,17 +0,0 @@ -# encoding: utf-8 - -shared_examples_for 'a hash method' do - it_should_behave_like 'an idempotent method' - - specification = proc do - should be_instance_of(Fixnum) - end - - it 'is a fixnum' do - instance_eval(&specification) - end - - it 'memoizes the hash code' do - subject.should eql(object.memoized(:hash)) - end -end diff --git a/spec/shared/idempotent_method_behavior.rb b/spec/shared/idempotent_method_behavior.rb deleted file mode 100644 index 220d792d..00000000 --- a/spec/shared/idempotent_method_behavior.rb +++ /dev/null @@ -1,7 +0,0 @@ -# encoding: utf-8 - -shared_examples_for 'an idempotent method' do - it 'is idempotent' do - should equal(instance_eval(&self.class.subject)) - end -end diff --git a/spec/shared/invertible_method_behaviour.rb b/spec/shared/invertible_method_behaviour.rb deleted file mode 100644 index 936d65d0..00000000 --- a/spec/shared/invertible_method_behaviour.rb +++ /dev/null @@ -1,9 +0,0 @@ -# encoding: utf-8 - -shared_examples_for 'an invertible method' do - it_should_behave_like 'an idempotent method' - - it 'is invertible' do - subject.inverse.should equal(object) - end -end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 5b7ad6d7..11aec662 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,9 +1,7 @@ # encoding: utf-8 -require 'rspec' - -# require spec support files and shared behavior -Dir[File.expand_path('../{support,shared}/**/*.rb', __FILE__)].each { |f| require(f) } +require 'devtools' +Devtools.init_spec_helper $: << File.join(TestApp.root,'lib')