Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spike] Test against rails4 with appraisal #30

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -20,3 +20,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
*.gemfile.lock
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -2,6 +2,9 @@ rvm:
- 1.8.7
- 1.9.3
- 2.0.0
gemfile:
- gemfiles/rails3_2.gemfile
- gemfiles/rails4_0.gemfile
branches:
only:
- master
13 changes: 13 additions & 0 deletions Appraisals
@@ -0,0 +1,13 @@
appraise "rails3_2" do
gem 'rails', '>= 3.0', '< 4'
gem 'coffee-rails', '>= 3.0', '< 4'
gem 'sass-rails', '>= 3.0', '< 4'
end

appraise "rails4_0" do
gem 'rails', '>= 4.0.0.beta', '< 5'
gem 'activeresource', '>= 4.0.0.beta', '< 5'
gem 'coffee-rails', '>= 4.0.0.beta', '< 5'
gem 'sass-rails', '>= 4.0.0.beta', '< 5'
gem 'protected_attributes'
end
1 change: 1 addition & 0 deletions Rakefile
@@ -1,5 +1,6 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "appraisal"

RSpec::Core::RakeTask.new(:spec)
task :default => :spec
1 change: 1 addition & 0 deletions chanko.gemspec
Expand Up @@ -28,4 +28,5 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "sqlite3"
gem.add_development_dependency "thin"
gem.add_development_dependency "uglifier"
gem.add_development_dependency "appraisal"
end
9 changes: 9 additions & 0 deletions gemfiles/rails3_2.gemfile
@@ -0,0 +1,9 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", ">= 3.0", "< 4"
gem "coffee-rails", ">= 3.0", "< 4"
gem "sass-rails", ">= 3.0", "< 4"

gemspec :path=>"../"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put "\n" at the last of file

11 changes: 11 additions & 0 deletions gemfiles/rails4_0.gemfile
@@ -0,0 +1,11 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", ">= 4.0.0.beta", "< 5"
gem "activeresource", ">= 4.0.0.beta", "< 5"
gem "coffee-rails", ">= 4.0.0.beta", "< 5"
gem "sass-rails", ">= 4.0.0.beta", "< 5"
gem "protected_attributes"

gemspec :path=>"../"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put "\n" at the last of file

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file generated by appraisal automatically, so I'll pull req to appraisal.