Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add Appraisal configuration file

  • Loading branch information...
commit 08e24fcd6137863f1b6cf7d2238b85d958e9918d 1 parent 0b4326b
@sikachu sikachu authored
View
11 Appraisals
@@ -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
View
12 Rakefile
@@ -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'
@@ -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]
-
View
18 features/support/appraisal.rb
@@ -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
View
21 gemfiles/3.0.9.rc3.gemfile
@@ -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"
+
View
176 gemfiles/3.0.9.rc3.gemfile.lock
@@ -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
View
25 gemfiles/3.1.0.rc4.gemfile
@@ -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"
+
View
207 gemfiles/3.1.0.rc4.gemfile.lock
@@ -0,0 +1,207 @@
+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:
+ actionmailer (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ mail (~> 2.3.0)
+ actionpack (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.0)
+ rack-cache (~> 1.0.1)
+ rack-mount (~> 0.8.1)
+ rack-test (~> 0.6.0)
+ sprockets (~> 2.0.0.beta.10)
+ tzinfo (~> 0.3.27)
+ activemodel (3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bcrypt-ruby (~> 2.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ arel (~> 2.1.1)
+ tzinfo (~> 0.3.27)
+ activeresource (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ activesupport (3.1.0.rc4)
+ multi_json (~> 1.0)
+ appraisal (0.3.5)
+ aruba (~> 0.3.6)
+ bundler
+ rake
+ arel (2.1.1)
+ aruba (0.3.7)
+ childprocess (>= 0.1.9)
+ cucumber (>= 0.10.5)
+ rspec (>= 2.6.0)
+ bcrypt-ruby (2.1.4)
+ builder (3.0.0)
+ 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)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.1)
+ 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.7.0)
+ eventmachine (0.12.10)
+ execjs (1.1.2)
+ multi_json (~> 1.0)
+ 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)
+ hike (1.0.0)
+ i18n (0.6.0)
+ jquery-rails (1.0.9)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.5.1)
+ json_pure (1.5.1)
+ launchy (0.4.0)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ mocha (0.9.12)
+ multi_json (1.0.3)
+ nokogiri (1.4.4)
+ polyglot (0.3.1)
+ rack (1.3.0)
+ rack-cache (1.0.2)
+ rack (>= 0.4)
+ rack-mount (0.8.1)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.0)
+ rack (>= 1.0)
+ rails (3.1.0.rc4)
+ actionmailer (= 3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activerecord (= 3.1.0.rc4)
+ activeresource (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bundler (~> 1.0)
+ railties (= 3.1.0.rc4)
+ railties (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ 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)
+ sass (3.1.2)
+ selenium-webdriver (0.2.1)
+ childprocess (>= 0.1.7)
+ ffi (>= 1.0.7)
+ json_pure
+ rubyzip
+ sprockets (2.0.0.beta.10)
+ hike (~> 1.0)
+ rack (~> 1.0)
+ tilt (!= 1.3.0, ~> 1.1)
+ 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)
+ tilt (1.3.2)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.27)
+ uglifier (0.5.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ appraisal (~> 0.3.5)
+ aruba (~> 0.3.6)
+ capybara
+ coffee-script
+ cucumber-rails (>= 0.5.2)
+ database_cleaner
+ diesel!
+ factory_girl
+ factory_girl_rails
+ jquery-rails
+ launchy
+ mocha
+ rails (= 3.1.0.rc4)
+ rake
+ rspec-rails
+ sass
+ shoulda-matchers!
+ sqlite3
+ thin
+ uglifier
Please sign in to comment.
Something went wrong with that request. Please try again.