Skip to content

Commit

Permalink
Add Appraisal configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
sikachu committed Jun 10, 2011
1 parent 0b4326b commit 08e24fc
Show file tree
Hide file tree
Showing 7 changed files with 467 additions and 3 deletions.
11 changes: 11 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appraise "3.0.9.rc3" do
gem "rails", "3.0.9.rc3"
end

appraise "3.1.0.rc4" do
gem "rails", "3.1.0.rc4"
gem 'sass'
gem 'coffee-script'
gem 'uglifier'
gem 'jquery-rails'
end
12 changes: 9 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ require 'rake/gempackagetask'
require 'cucumber/rake/task'
require 'diesel/tasks'
require 'rspec/core/rake_task'
require 'appraisal'

desc "Default: run the specs and cucumber features"
task :default => [:all]

desc 'Test the plugin under all supported Rails versions.'
task :all => ["appraisal:cleanup", "appraisal:install"] do |t|
exec('rake appraisal spec cucumber')
end

RSpec::Core::RakeTask.new do |t|
t.pattern = 'spec/**/*_spec.rb'
Expand All @@ -17,6 +26,3 @@ Cucumber::Rake::Task.new(:cucumber) do |t|
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'progress')]
end

desc "Default: run the specs and cucumber features"
task :default => [:spec, :cucumber]

18 changes: 18 additions & 0 deletions features/support/appraisal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
BUNDLE_ENV_VARS = %w(RUBYOPT BUNDLE_PATH BUNDLE_BIN_PATH BUNDLE_GEMFILE)
ORIGINAL_BUNDLE_VARS = Hash[ENV.select{ |key,value| BUNDLE_ENV_VARS.include?(key) }]

Before do
ENV['BUNDLE_GEMFILE'] = File.join(Dir.pwd, ENV['BUNDLE_GEMFILE'])
end

After do
ORIGINAL_BUNDLE_VARS.each_pair do |key, value|
ENV[key] = value
end
end

When /^I reset Bundler environment variable$/ do
BUNDLE_ENV_VARS.each do |key|
ENV[key] = nil
end
end
21 changes: 21 additions & 0 deletions gemfiles/3.0.9.rc3.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "aruba", "~> 0.3.6"
gem "rake"
gem "rails", "3.0.9.rc3"
gem "thin"
gem "shoulda-matchers", :git=>"git://github.com/thoughtbot/shoulda-matchers.git"
gem "sqlite3"
gem "factory_girl"
gem "diesel", :git=>"git://github.com/thoughtbot/diesel.git", :branch=>"rails-3-1"
gem "cucumber-rails", ">= 0.5.2"
gem "database_cleaner"
gem "capybara"
gem "factory_girl_rails"
gem "rspec-rails"
gem "launchy"
gem "mocha"
gem "appraisal", "~> 0.3.5"

176 changes: 176 additions & 0 deletions gemfiles/3.0.9.rc3.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
GIT
remote: git://github.com/thoughtbot/diesel.git
revision: 1abb5d0e7dfefa42c3f215b06971bb7345599136
branch: rails-3-1
specs:
diesel (0.1.4)
railties

GIT
remote: git://github.com/thoughtbot/shoulda-matchers.git
revision: 85d3e5ea000cf162ef672059ea5e5f77f3ca9f03
specs:
shoulda-matchers (1.0.0.beta3)

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.9.rc3)
actionpack (= 3.0.9.rc3)
mail (~> 2.2.19)
actionpack (3.0.9.rc3)
activemodel (= 3.0.9.rc3)
activesupport (= 3.0.9.rc3)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
rack (~> 1.2.1)
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.9.rc3)
activesupport (= 3.0.9.rc3)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.9.rc3)
activemodel (= 3.0.9.rc3)
activesupport (= 3.0.9.rc3)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.9.rc3)
activemodel (= 3.0.9.rc3)
activesupport (= 3.0.9.rc3)
activesupport (3.0.9.rc3)
appraisal (0.3.5)
aruba (~> 0.3.6)
bundler
rake
arel (2.0.10)
aruba (0.3.7)
childprocess (>= 0.1.9)
cucumber (>= 0.10.5)
rspec (>= 2.6.0)
builder (2.1.2)
capybara (1.0.0.rc1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 0.2.0)
xpath (~> 0.1.4)
childprocess (0.1.9)
ffi (~> 1.0.6)
configuration (1.2.0)
cucumber (0.10.6)
builder (>= 2.1.2)
diff-lcs (>= 1.1.2)
gherkin (~> 2.4.0)
json (>= 1.4.6)
term-ansicolor (>= 1.0.5)
cucumber-rails (0.5.2)
capybara (>= 1.0.0.rc1)
cucumber (>= 0.10.5)
nokogiri (>= 1.4.4)
rack-test (>= 0.5.7)
daemons (1.1.3)
database_cleaner (0.6.7)
diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
eventmachine (0.12.10)
factory_girl (1.3.3)
factory_girl_rails (1.0.1)
factory_girl (~> 1.3)
railties (>= 3.0.0)
ffi (1.0.9)
gherkin (2.4.0)
json (>= 1.4.6)
i18n (0.5.0)
json (1.5.1)
json_pure (1.5.1)
launchy (0.4.0)
configuration (>= 0.0.5)
rake (>= 0.8.1)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
mocha (0.9.12)
nokogiri (1.4.4)
polyglot (0.3.1)
rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.9.rc3)
actionmailer (= 3.0.9.rc3)
actionpack (= 3.0.9.rc3)
activerecord (= 3.0.9.rc3)
activeresource (= 3.0.9.rc3)
activesupport (= 3.0.9.rc3)
bundler (~> 1.0)
railties (= 3.0.9.rc3)
railties (3.0.9.rc3)
actionpack (= 3.0.9.rc3)
activesupport (= 3.0.9.rc3)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (0.9.2)
rdoc (3.6.1)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.6.0)
rubyzip (0.9.4)
selenium-webdriver (0.2.1)
childprocess (>= 0.1.7)
ffi (>= 1.0.7)
json_pure
rubyzip
sqlite3 (1.3.3)
term-ansicolor (1.0.5)
thin (1.2.11)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.27)
xpath (0.1.4)
nokogiri (~> 1.3)

PLATFORMS
ruby

DEPENDENCIES
appraisal (~> 0.3.5)
aruba (~> 0.3.6)
capybara
cucumber-rails (>= 0.5.2)
database_cleaner
diesel!
factory_girl
factory_girl_rails
launchy
mocha
rails (= 3.0.9.rc3)
rake
rspec-rails
shoulda-matchers!
sqlite3
thin
25 changes: 25 additions & 0 deletions gemfiles/3.1.0.rc4.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "aruba", "~> 0.3.6"
gem "rake"
gem "rails", "3.1.0.rc4"
gem "thin"
gem "shoulda-matchers", :git=>"git://github.com/thoughtbot/shoulda-matchers.git"
gem "sqlite3"
gem "factory_girl"
gem "diesel", :git=>"git://github.com/thoughtbot/diesel.git", :branch=>"rails-3-1"
gem "cucumber-rails", ">= 0.5.2"
gem "database_cleaner"
gem "capybara"
gem "factory_girl_rails"
gem "rspec-rails"
gem "launchy"
gem "mocha"
gem "appraisal", "~> 0.3.5"
gem "sass"
gem "coffee-script"
gem "uglifier"
gem "jquery-rails"

Loading

0 comments on commit 08e24fc

Please sign in to comment.