Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add Appraisals.

  • Loading branch information...
commit 260db1ac151bc08dca58e8d8c95d6cbda01df2cf 1 parent 334bb25
@cmeiklejohn cmeiklejohn authored
View
11 Appraisals
@@ -0,0 +1,11 @@
+appraise "3.1.0.rc5" do
+ gem "rails", "3.1.0.rc5"
+ gem 'sass-rails'
+ gem 'coffee-script'
+ gem 'uglifier'
+ gem 'jquery-rails'
+end
+
+appraise "3.0.9" do
+ gem "rails", "3.0.9"
+end
View
2  Gemfile
@@ -1,4 +1,4 @@
source "http://rubygems.org"
gemspec
-gem "sqlite3"
+gem "appraisal"
View
38 Gemfile.lock
@@ -2,7 +2,7 @@ PATH
remote: .
specs:
paul_revere (0.1.5)
- rails (>= 3.0.0)
+ rails (~> 3.0)
GEM
remote: http://rubygems.org/
@@ -34,13 +34,38 @@ GEM
activemodel (= 3.0.9)
activesupport (= 3.0.9)
activesupport (3.0.9)
+ appraisal (0.3.7)
+ aruba (~> 0.4.2)
+ bundler
+ rake
arel (2.0.10)
+ aruba (0.4.5)
+ bcat (>= 0.6.1)
+ childprocess (>= 0.1.9)
+ cucumber (>= 0.10.7)
+ rdiscount (>= 1.6.8)
+ rspec (>= 2.6.0)
+ bcat (0.6.1)
+ rack (~> 1.0)
bourne (1.0)
mocha (= 0.9.8)
builder (2.1.2)
+ childprocess (0.2.0)
+ ffi (~> 1.0.6)
+ cucumber (1.0.2)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.4.5)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.5)
+ diff-lcs (1.1.2)
erubis (2.6.6)
abstract (>= 1.0.0)
+ ffi (1.0.9)
+ gherkin (2.4.5)
+ json (>= 1.4.6)
i18n (0.5.0)
+ json (1.5.3)
mail (2.2.19)
activesupport (>= 2.3.6)
i18n (>= 0.4.0)
@@ -70,9 +95,19 @@ GEM
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (0.9.2)
+ rdiscount (1.6.8)
rdoc (3.8)
+ 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)
shoulda (2.11.3)
sqlite3 (1.3.4)
+ term-ansicolor (1.0.6)
thor (0.14.6)
treetop (1.4.10)
polyglot
@@ -83,6 +118,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ appraisal
bourne
paul_revere!
shoulda
View
19 Rakefile
@@ -1,7 +1,16 @@
require 'rake'
require 'rake/testtask'
-require 'rake/rdoctask'
-require "rake/gempackagetask"
+require 'rdoc/task'
+require "rubygems/package_task"
+require 'appraisal'
+
+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 test')
+end
desc 'Default: run unit tests.'
task :default => :test
@@ -15,7 +24,7 @@ Rake::TestTask.new(:test) do |t|
end
desc 'Generate documentation for the paul revere plugin.'
-Rake::RDocTask.new(:rdoc) do |rdoc|
+RDoc::Task.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'PaulRevere'
rdoc.options << '--line-numbers' << '--inline-source'
@@ -43,10 +52,6 @@ spec = Gem::Specification.new do |s|
s.add_development_dependency("redgreen")
end
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.gem_spec = spec
-end
-
desc "Build the gemspec file #{spec.name}.gemspec"
task :gemspec do
file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
View
4 paul_revere.gemspec
@@ -24,14 +24,16 @@ Gem::Specification.new do |s|
s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
s.add_development_dependency(%q<bourne>, [">= 0"])
s.add_development_dependency(%q<shoulda>, [">= 0"])
+ s.add_development_dependency(%q<sqlite3>, [">= 0"])
else
s.add_dependency(%q<rails>, [">= 3.0.0"])
s.add_dependency(%q<bourne>, [">= 0"])
s.add_dependency(%q<shoulda>, [">= 0"])
+ s.add_dependency(%q<sqlite3>, [">= 0"])
end
else
s.add_dependency(%q<rails>, [">= 3.0.0"])
s.add_dependency(%q<bourne>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
+ s.add_dependency(%q<sqlite3>, [">= 0"])
end
end

0 comments on commit 260db1a

Please sign in to comment.
Something went wrong with that request. Please try again.