From cf5389b469207f81e79e06c73c10f692aa458afe Mon Sep 17 00:00:00 2001 From: Fran Casas Date: Thu, 6 Oct 2016 15:47:43 +0200 Subject: [PATCH] Ensure we don't break on new rubocops --- .gitignore | 2 ++ .travis.yml | 5 +++++ Appraisals | 15 +++++++++++++++ Rakefile | 8 +++++--- gemfiles/.bundle/config | 2 ++ gemfiles/latest_rubocop.gemfile | 7 +++++++ gemfiles/rubocop_0.41.gemfile | 7 +++++++ gemfiles/rubocop_0.42.gemfile | 7 +++++++ gemfiles/rubocop_0.43.gemfile | 7 +++++++ rubocop-migrations.gemspec | 3 ++- 10 files changed, 59 insertions(+), 4 deletions(-) create mode 100644 Appraisals create mode 100644 gemfiles/.bundle/config create mode 100644 gemfiles/latest_rubocop.gemfile create mode 100644 gemfiles/rubocop_0.41.gemfile create mode 100644 gemfiles/rubocop_0.42.gemfile create mode 100644 gemfiles/rubocop_0.43.gemfile diff --git a/.gitignore b/.gitignore index 4889cd5..e2902b0 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,5 @@ /spec/reports/ /tmp/ *~ +gemfiles/vendor +gemfiles/*.lock \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index bed6e27..99e1bfc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,8 @@ language: ruby rvm: - 2.3.0 before_install: gem install bundler -v 1.11.2 +gemfile: + - gemfiles/rubocop_0.41.gemfile + - gemfiles/rubocop_0.42.gemfile + - gemfiles/rubocop_0.43.gemfile + - gemfiles/latest_rubocop.gemfile diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..d14caa7 --- /dev/null +++ b/Appraisals @@ -0,0 +1,15 @@ +appraise 'rubocop-0.41' do + gem 'rubocop', '~> 0.41.0' +end + +appraise 'rubocop-0.42' do + gem 'rubocop', '~> 0.42.0' +end + +appraise 'rubocop-0.43' do + gem 'rubocop', '~> 0.43.0' +end + +appraise 'latest-rubocop' do + gem 'rubocop' +end diff --git a/Rakefile b/Rakefile index b7e9ed5..0fcf855 100644 --- a/Rakefile +++ b/Rakefile @@ -1,6 +1,8 @@ -require "bundler/gem_tasks" -require "rspec/core/rake_task" +require 'rubygems' +require 'bundler/setup' +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) -task :default => :spec +task default: :spec diff --git a/gemfiles/.bundle/config b/gemfiles/.bundle/config new file mode 100644 index 0000000..9c61b5c --- /dev/null +++ b/gemfiles/.bundle/config @@ -0,0 +1,2 @@ +--- +BUNDLE_DISABLE_SHARED_GEMS: "true" diff --git a/gemfiles/latest_rubocop.gemfile b/gemfiles/latest_rubocop.gemfile new file mode 100644 index 0000000..b996387 --- /dev/null +++ b/gemfiles/latest_rubocop.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rubocop" + +gemspec :path => "../" diff --git a/gemfiles/rubocop_0.41.gemfile b/gemfiles/rubocop_0.41.gemfile new file mode 100644 index 0000000..53a3500 --- /dev/null +++ b/gemfiles/rubocop_0.41.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rubocop", "~> 0.41.0" + +gemspec :path => "../" diff --git a/gemfiles/rubocop_0.42.gemfile b/gemfiles/rubocop_0.42.gemfile new file mode 100644 index 0000000..d3dec7d --- /dev/null +++ b/gemfiles/rubocop_0.42.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rubocop", "~> 0.42.0" + +gemspec :path => "../" diff --git a/gemfiles/rubocop_0.43.gemfile b/gemfiles/rubocop_0.43.gemfile new file mode 100644 index 0000000..7f72ce4 --- /dev/null +++ b/gemfiles/rubocop_0.43.gemfile @@ -0,0 +1,7 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "rubocop", "~> 0.43.0" + +gemspec :path => "../" diff --git a/rubocop-migrations.gemspec b/rubocop-migrations.gemspec index 4feacd0..21449cf 100644 --- a/rubocop-migrations.gemspec +++ b/rubocop-migrations.gemspec @@ -24,5 +24,6 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'bundler', '~> 1.11' spec.add_development_dependency 'rake', '~> 10.0' - spec.add_development_dependency 'rspec', '3.5.0' + spec.add_development_dependency 'rspec', '~> 3.5' + spec.add_development_dependency 'appraisal' end