Skip to content

Commit

Permalink
use appraisal to test against both rails 3.1.0 and 3.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski committed Sep 4, 2011
1 parent a689718 commit 4dd575d
Show file tree
Hide file tree
Showing 9 changed files with 321 additions and 45 deletions.
11 changes: 11 additions & 0 deletions Appraisals
@@ -0,0 +1,11 @@
appraise "rails-3.1.0" do
gem "rails", "3.1.0"
# gem 'sass-rails'
# gem 'coffee-script'
# gem 'uglifier'
# gem 'jquery-rails'
end

appraise "rails-3.0.10" do
gem "rails", "3.0.10"
end
10 changes: 3 additions & 7 deletions Gemfile
@@ -1,11 +1,7 @@
source "http://rubygems.org"
gemspec

gem "rails", "3.0.10"
gem "appraisal"
gem "rspec-rails"
gem "capybara", ">= 0.4.0"
gem "sqlite3"

gem "rspec-rails", ">= 2.0.0.beta"

# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19'
50 changes: 15 additions & 35 deletions Gemfile.lock
@@ -1,10 +1,12 @@
PATH
remote: .
specs:
high_voltage (1.0.0)

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.10)
actionpack (= 3.0.10)
mail (~> 2.2.19)
actionpack (3.0.10)
activemodel (= 3.0.10)
activesupport (= 3.0.10)
Expand All @@ -19,23 +21,17 @@ GEM
activesupport (= 3.0.10)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.10)
activemodel (= 3.0.10)
activesupport (= 3.0.10)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.10)
activemodel (= 3.0.10)
activesupport (= 3.0.10)
activesupport (3.0.10)
arel (2.0.10)
appraisal (0.3.8)
bundler
rake
builder (2.1.2)
capybara (1.0.0)
capybara (1.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 0.2.0)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
childprocess (0.2.2)
ffi (~> 1.0.6)
Expand All @@ -46,27 +42,13 @@ GEM
i18n (0.5.0)
json_pure (1.5.4)
spruz (~> 0.2.8)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
nokogiri (1.5.0)
polyglot (0.3.2)
rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.10)
actionmailer (= 3.0.10)
actionpack (= 3.0.10)
activerecord (= 3.0.10)
activeresource (= 3.0.10)
activesupport (= 3.0.10)
bundler (~> 1.0)
railties (= 3.0.10)
railties (3.0.10)
actionpack (= 3.0.10)
activesupport (= 3.0.10)
Expand All @@ -89,17 +71,14 @@ GEM
railties (~> 3.0)
rspec (~> 2.6.0)
rubyzip (0.9.4)
selenium-webdriver (0.2.2)
childprocess (>= 0.1.9)
selenium-webdriver (2.5.0)
childprocess (>= 0.2.1)
ffi (>= 1.0.7)
json_pure
rubyzip
spruz (0.2.13)
sqlite3 (1.3.4)
thor (0.14.6)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.29)
xpath (0.1.4)
nokogiri (~> 1.3)
Expand All @@ -108,7 +87,8 @@ PLATFORMS
ruby

DEPENDENCIES
appraisal
capybara (>= 0.4.0)
rails (= 3.0.10)
rspec-rails (>= 2.0.0.beta)
high_voltage!
rspec-rails
sqlite3
10 changes: 8 additions & 2 deletions Rakefile
Expand Up @@ -8,13 +8,19 @@ end

require 'rake'
require 'rdoc/task'
require 'appraisal'

require 'rspec/core'
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec
desc "Default: run the unit tests."
task :default => [:all]

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

Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
Expand Down
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,3 +1,3 @@
Rails.application.routes.draw do
match '/pages/*id' => 'high_voltage/pages#show', :as => :page
match '/pages/*id' => 'high_voltage/pages#show', :as => :page, :format => false
end
11 changes: 11 additions & 0 deletions gemfiles/rails-3.0.10.gemfile
@@ -0,0 +1,11 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal"
gem "rspec-rails"
gem "capybara", ">= 0.4.0"
gem "sqlite3"
gem "rails", "3.0.10"

gemspec :path=>"../"
124 changes: 124 additions & 0 deletions gemfiles/rails-3.0.10.gemfile.lock
@@ -0,0 +1,124 @@
PATH
remote: /Users/mjankowski/Development/opensource/high_voltage
specs:
high_voltage (1.0.0)

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.10)
actionpack (= 3.0.10)
mail (~> 2.2.19)
actionpack (3.0.10)
activemodel (= 3.0.10)
activesupport (= 3.0.10)
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.10)
activesupport (= 3.0.10)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.10)
activemodel (= 3.0.10)
activesupport (= 3.0.10)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.10)
activemodel (= 3.0.10)
activesupport (= 3.0.10)
activesupport (3.0.10)
appraisal (0.3.8)
bundler
rake
arel (2.0.10)
builder (2.1.2)
capybara (1.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
selenium-webdriver (~> 2.0)
xpath (~> 0.1.4)
childprocess (0.2.2)
ffi (~> 1.0.6)
diff-lcs (1.1.3)
erubis (2.6.6)
abstract (>= 1.0.0)
ffi (1.0.9)
i18n (0.5.0)
json_pure (1.5.4)
spruz (~> 0.2.8)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.16)
nokogiri (1.5.0)
polyglot (0.3.2)
rack (1.2.3)
rack-mount (0.6.14)
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.10)
actionmailer (= 3.0.10)
actionpack (= 3.0.10)
activerecord (= 3.0.10)
activeresource (= 3.0.10)
activesupport (= 3.0.10)
bundler (~> 1.0)
railties (= 3.0.10)
railties (3.0.10)
actionpack (= 3.0.10)
activesupport (= 3.0.10)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (0.9.2)
rdoc (3.9.4)
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 (2.5.0)
childprocess (>= 0.2.1)
ffi (>= 1.0.7)
json_pure
rubyzip
spruz (0.2.13)
sqlite3 (1.3.4)
thor (0.14.6)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.29)
xpath (0.1.4)
nokogiri (~> 1.3)

PLATFORMS
ruby

DEPENDENCIES
appraisal
capybara (>= 0.4.0)
high_voltage!
rails (= 3.0.10)
rspec-rails
sqlite3
11 changes: 11 additions & 0 deletions gemfiles/rails-3.1.0.gemfile
@@ -0,0 +1,11 @@
# This file was generated by Appraisal

source "http://rubygems.org"

gem "appraisal"
gem "rspec-rails"
gem "capybara", ">= 0.4.0"
gem "sqlite3"
gem "rails", "3.1.0"

gemspec :path=>"../"

0 comments on commit 4dd575d

Please sign in to comment.