Skip to content

Commit

Permalink
Support Appraisal
Browse files Browse the repository at this point in the history
  • Loading branch information
m4i committed Jan 26, 2016
1 parent b19ade1 commit 4d8adc8
Show file tree
Hide file tree
Showing 16 changed files with 124 additions and 26 deletions.
33 changes: 11 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
*.gem
*.rbc
.bundle
.config
.yardoc
Gemfile.lock
InstalledFiles
_yardoc
coverage
doc/
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
*.bundle
*.so
*.o
*.a
mkmf.log
/.bundle/
/.yardoc
/Gemfile.lock
/_yardoc/
/coverage/
/doc/
/pkg/
/spec/reports/
/tmp/

/gemfiles/*.gemfile.lock
18 changes: 18 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
%w(
0.24.1
0.25.0
0.26.1
0.27.1
0.28.0
0.29.1
0.30.1
0.31.0
0.32.1
0.33.0
0.34.2
0.35.1
).each do |version|
appraise version[/\d+\.\d+/] do
gem 'rubocop', version
end
end
14 changes: 10 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
require 'bundler/gem_tasks'
require 'rake/testtask'
require 'appraisal'

task default: [:test]
Rake::TestTask.new(:test) do |t|
t.libs << 'test'
t.libs << 'lib'
t.test_files = FileList['test/**/*_test.rb']
end

Rake::TestTask.new do |t|
t.pattern = 'test/**/*_test.rb'
if ENV['APPRAISAL_INITIALIZED'] || ENV['TRAVIS']
task default: :test
else
task default: :appraisal
end
task spec: :test
7 changes: 7 additions & 0 deletions gemfiles/0.24.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.24.1"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.25.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.25.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.26.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.26.1"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.27.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.27.1"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.28.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.28.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.29.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.29.1"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.30.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.30.1"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.31.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.31.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.32.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.32.1"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.33.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.33.0"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.34.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.34.2"

gemspec :path => "../"
7 changes: 7 additions & 0 deletions gemfiles/0.35.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.35.1"

gemspec :path => "../"
1 change: 1 addition & 0 deletions rubocop-git.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'bundler', '~> 1.6'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'minitest'
spec.add_development_dependency 'appraisal'

spec.add_dependency 'rubocop', '>= 0.24.1'
end

0 comments on commit 4d8adc8

Please sign in to comment.