Skip to content

Commit

Permalink
Ensure we don't break on new rubocops
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoj committed Oct 6, 2016
1 parent 467d408 commit cf5389b
Show file tree
Hide file tree
Showing 10 changed files with 59 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@
/spec/reports/
/tmp/
*~
gemfiles/vendor
gemfiles/*.lock
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -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
8 changes: 5 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions gemfiles/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_DISABLE_SHARED_GEMS: "true"
7 changes: 7 additions & 0 deletions gemfiles/latest_rubocop.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rubocop"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rubocop_0.41.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rubocop", "~> 0.41.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rubocop_0.42.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rubocop", "~> 0.42.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/rubocop_0.43.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rubocop", "~> 0.43.0"

gemspec :path => "../"
3 changes: 2 additions & 1 deletion rubocop-migrations.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cf5389b

Please sign in to comment.