Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add Appraisals.

  • Loading branch information...
commit 260db1ac151bc08dca58e8d8c95d6cbda01df2cf 1 parent 334bb25
Christopher Meiklejohn authored July 29, 2011
11  Appraisals
... ...
@@ -0,0 +1,11 @@
  1
+appraise "3.1.0.rc5" do
  2
+  gem "rails", "3.1.0.rc5"
  3
+  gem 'sass-rails'
  4
+  gem 'coffee-script'
  5
+  gem 'uglifier'
  6
+  gem 'jquery-rails'
  7
+end
  8
+
  9
+appraise "3.0.9" do
  10
+  gem "rails", "3.0.9"
  11
+end
2  Gemfile
... ...
@@ -1,4 +1,4 @@
1 1
 source "http://rubygems.org"
2 2
 gemspec
3 3
 
4  
-gem "sqlite3"
  4
+gem "appraisal"
38  Gemfile.lock
@@ -2,7 +2,7 @@ PATH
2 2
   remote: .
3 3
   specs:
4 4
     paul_revere (0.1.5)
5  
-      rails (>= 3.0.0)
  5
+      rails (~> 3.0)
6 6
 
7 7
 GEM
8 8
   remote: http://rubygems.org/
@@ -34,13 +34,38 @@ GEM
34 34
       activemodel (= 3.0.9)
35 35
       activesupport (= 3.0.9)
36 36
     activesupport (3.0.9)
  37
+    appraisal (0.3.7)
  38
+      aruba (~> 0.4.2)
  39
+      bundler
  40
+      rake
37 41
     arel (2.0.10)
  42
+    aruba (0.4.5)
  43
+      bcat (>= 0.6.1)
  44
+      childprocess (>= 0.1.9)
  45
+      cucumber (>= 0.10.7)
  46
+      rdiscount (>= 1.6.8)
  47
+      rspec (>= 2.6.0)
  48
+    bcat (0.6.1)
  49
+      rack (~> 1.0)
38 50
     bourne (1.0)
39 51
       mocha (= 0.9.8)
40 52
     builder (2.1.2)
  53
+    childprocess (0.2.0)
  54
+      ffi (~> 1.0.6)
  55
+    cucumber (1.0.2)
  56
+      builder (>= 2.1.2)
  57
+      diff-lcs (>= 1.1.2)
  58
+      gherkin (~> 2.4.5)
  59
+      json (>= 1.4.6)
  60
+      term-ansicolor (>= 1.0.5)
  61
+    diff-lcs (1.1.2)
41 62
     erubis (2.6.6)
42 63
       abstract (>= 1.0.0)
  64
+    ffi (1.0.9)
  65
+    gherkin (2.4.5)
  66
+      json (>= 1.4.6)
43 67
     i18n (0.5.0)
  68
+    json (1.5.3)
44 69
     mail (2.2.19)
45 70
       activesupport (>= 2.3.6)
46 71
       i18n (>= 0.4.0)
@@ -70,9 +95,19 @@ GEM
70 95
       rdoc (~> 3.4)
71 96
       thor (~> 0.14.4)
72 97
     rake (0.9.2)
  98
+    rdiscount (1.6.8)
73 99
     rdoc (3.8)
  100
+    rspec (2.6.0)
  101
+      rspec-core (~> 2.6.0)
  102
+      rspec-expectations (~> 2.6.0)
  103
+      rspec-mocks (~> 2.6.0)
  104
+    rspec-core (2.6.4)
  105
+    rspec-expectations (2.6.0)
  106
+      diff-lcs (~> 1.1.2)
  107
+    rspec-mocks (2.6.0)
74 108
     shoulda (2.11.3)
75 109
     sqlite3 (1.3.4)
  110
+    term-ansicolor (1.0.6)
76 111
     thor (0.14.6)
77 112
     treetop (1.4.10)
78 113
       polyglot
@@ -83,6 +118,7 @@ PLATFORMS
83 118
   ruby
84 119
 
85 120
 DEPENDENCIES
  121
+  appraisal
86 122
   bourne
87 123
   paul_revere!
88 124
   shoulda
19  Rakefile
... ...
@@ -1,7 +1,16 @@
1 1
 require 'rake'
2 2
 require 'rake/testtask'
3  
-require 'rake/rdoctask'
4  
-require "rake/gempackagetask"
  3
+require 'rdoc/task'
  4
+require "rubygems/package_task"
  5
+require 'appraisal'
  6
+
  7
+desc "Default: run the unit tests."
  8
+task :default => [:all]
  9
+
  10
+desc 'Test the plugin under all supported Rails versions.'
  11
+task :all => ["appraisal:install"] do |t|
  12
+  exec('rake appraisal test')
  13
+end
5 14
 
6 15
 desc 'Default: run unit tests.'
7 16
 task :default => :test
@@ -15,7 +24,7 @@ Rake::TestTask.new(:test) do |t|
15 24
 end
16 25
 
17 26
 desc 'Generate documentation for the paul revere plugin.'
18  
-Rake::RDocTask.new(:rdoc) do |rdoc|
  27
+RDoc::Task.new(:rdoc) do |rdoc|
19 28
   rdoc.rdoc_dir = 'rdoc'
20 29
   rdoc.title    = 'PaulRevere'
21 30
   rdoc.options << '--line-numbers' << '--inline-source'
@@ -43,10 +52,6 @@ spec = Gem::Specification.new do |s|
43 52
   s.add_development_dependency("redgreen")
44 53
 end
45 54
 
46  
-Rake::GemPackageTask.new(spec) do |pkg|
47  
-  pkg.gem_spec = spec
48  
-end
49  
-
50 55
 desc "Build the gemspec file #{spec.name}.gemspec"
51 56
 task :gemspec do
52 57
   file = File.dirname(__FILE__) + "/#{spec.name}.gemspec"
4  paul_revere.gemspec
@@ -24,14 +24,16 @@ Gem::Specification.new do |s|
24 24
       s.add_runtime_dependency(%q<rails>, [">= 3.0.0"])
25 25
       s.add_development_dependency(%q<bourne>, [">= 0"])
26 26
       s.add_development_dependency(%q<shoulda>, [">= 0"])
  27
+      s.add_development_dependency(%q<sqlite3>, [">= 0"])
27 28
     else
28 29
       s.add_dependency(%q<rails>, [">= 3.0.0"])
29 30
       s.add_dependency(%q<bourne>, [">= 0"])
30 31
       s.add_dependency(%q<shoulda>, [">= 0"])
  32
+      s.add_dependency(%q<sqlite3>, [">= 0"])
31 33
     end
32 34
   else
33 35
     s.add_dependency(%q<rails>, [">= 3.0.0"])
34 36
     s.add_dependency(%q<bourne>, [">= 0"])
35  
-    s.add_dependency(%q<shoulda>, [">= 0"])
  37
+    s.add_dependency(%q<sqlite3>, [">= 0"])
36 38
   end
37 39
 end

0 notes on commit 260db1a

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