Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Gemfiles and start using Appraisal

  • Loading branch information...
commit ffe66096d7c0611f4d224a027f50df0b9bf5b3d1 1 parent 35cdaa5
@jyurek jyurek authored
View
8 Appraisals
@@ -0,0 +1,8 @@
+appraise "rails2" do
+ gem "rails", "~>2.3.0"
+end
+
+appraise "rails3" do
+ gem "rails", "~>3.0.0"
+end
+
View
7 Gemfile
@@ -0,0 +1,7 @@
+source "http://rubygems.org"
+gem "shoulda"
+gem "mocha"
+gem "rake"
+gem "ruby-debug"
+gem "aws-s3", :require => "aws/s3"
+gem "sqlite3-ruby", "~>1.3.0"
View
33 Gemfile.lock
@@ -0,0 +1,33 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ aws-s3 (0.6.2)
+ builder
+ mime-types
+ xml-simple
+ builder (3.0.0)
+ columnize (0.3.2)
+ linecache (0.43)
+ mime-types (1.16)
+ mocha (0.9.9)
+ rake
+ rake (0.8.7)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
+ shoulda (2.11.3)
+ sqlite3-ruby (1.3.2)
+ xml-simple (1.0.12)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ aws-s3
+ mocha
+ rake
+ ruby-debug
+ shoulda
+ sqlite3-ruby (~> 1.3.0)
View
4 Rakefile
@@ -1,3 +1,7 @@
+require 'rubygems'
+require 'appraisal'
+require 'bundler/setup'
+
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
View
10 gemfiles/rails2.gemfile
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+gem "ruby-debug"
+gem "rails", "~>2.3.0"
+gem "rake"
+gem "sqlite3-ruby", "~>1.3.0"
+gem "shoulda"
+gem "mocha"
+gem "aws-s3", {:require=>"aws/s3"}
View
52 gemfiles/rails2.gemfile.lock
@@ -0,0 +1,52 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (2.3.10)
+ actionpack (= 2.3.10)
+ actionpack (2.3.10)
+ activesupport (= 2.3.10)
+ rack (~> 1.1.0)
+ activerecord (2.3.10)
+ activesupport (= 2.3.10)
+ activeresource (2.3.10)
+ activesupport (= 2.3.10)
+ activesupport (2.3.10)
+ aws-s3 (0.6.2)
+ builder
+ mime-types
+ xml-simple
+ builder (3.0.0)
+ columnize (0.3.2)
+ linecache (0.43)
+ mime-types (1.16)
+ mocha (0.9.9)
+ rake
+ rack (1.1.0)
+ rails (2.3.10)
+ actionmailer (= 2.3.10)
+ actionpack (= 2.3.10)
+ activerecord (= 2.3.10)
+ activeresource (= 2.3.10)
+ activesupport (= 2.3.10)
+ rake (>= 0.8.3)
+ rake (0.8.7)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
+ shoulda (2.11.3)
+ sqlite3-ruby (1.3.2)
+ xml-simple (1.0.12)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ aws-s3
+ mocha
+ rails (~> 2.3.0)
+ rake
+ ruby-debug
+ shoulda
+ sqlite3-ruby (~> 1.3.0)
View
10 gemfiles/rails3.gemfile
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+gem "ruby-debug"
+gem "rails", "~>3.0.0"
+gem "rake"
+gem "sqlite3-ruby", "~>1.3.0"
+gem "shoulda"
+gem "mocha"
+gem "aws-s3", {:require=>"aws/s3"}
View
93 gemfiles/rails3.gemfile.lock
@@ -0,0 +1,93 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ abstract (1.0.0)
+ actionmailer (3.0.3)
+ actionpack (= 3.0.3)
+ mail (~> 2.2.9)
+ actionpack (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ erubis (~> 2.6.6)
+ i18n (~> 0.4)
+ rack (~> 1.2.1)
+ rack-mount (~> 0.6.13)
+ rack-test (~> 0.5.6)
+ tzinfo (~> 0.3.23)
+ activemodel (3.0.3)
+ activesupport (= 3.0.3)
+ builder (~> 2.1.2)
+ i18n (~> 0.4)
+ activerecord (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ arel (~> 2.0.2)
+ tzinfo (~> 0.3.23)
+ activeresource (3.0.3)
+ activemodel (= 3.0.3)
+ activesupport (= 3.0.3)
+ activesupport (3.0.3)
+ arel (2.0.4)
+ aws-s3 (0.6.2)
+ builder
+ mime-types
+ xml-simple
+ builder (2.1.2)
+ columnize (0.3.2)
+ erubis (2.6.6)
+ abstract (>= 1.0.0)
+ i18n (0.4.2)
+ linecache (0.43)
+ mail (2.2.10)
+ activesupport (>= 2.3.6)
+ i18n (~> 0.4.1)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ mocha (0.9.9)
+ rake
+ polyglot (0.3.1)
+ rack (1.2.1)
+ rack-mount (0.6.13)
+ rack (>= 1.0.0)
+ rack-test (0.5.6)
+ rack (>= 1.0)
+ rails (3.0.3)
+ actionmailer (= 3.0.3)
+ actionpack (= 3.0.3)
+ activerecord (= 3.0.3)
+ activeresource (= 3.0.3)
+ activesupport (= 3.0.3)
+ bundler (~> 1.0)
+ railties (= 3.0.3)
+ railties (3.0.3)
+ actionpack (= 3.0.3)
+ activesupport (= 3.0.3)
+ rake (>= 0.8.7)
+ thor (~> 0.14.4)
+ rake (0.8.7)
+ ruby-debug (0.10.4)
+ columnize (>= 0.1)
+ ruby-debug-base (~> 0.10.4.0)
+ ruby-debug-base (0.10.4)
+ linecache (>= 0.3)
+ shoulda (2.11.3)
+ sqlite3-ruby (1.3.2)
+ thor (0.14.6)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.23)
+ xml-simple (1.0.12)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ aws-s3
+ mocha
+ rails (~> 3.0.0)
+ rake
+ ruby-debug
+ shoulda
+ sqlite3-ruby (~> 1.3.0)
View
1  paperclip.gemspec
@@ -28,6 +28,7 @@ spec = Gem::Specification.new do |s|
s.add_dependency 'activerecord'
s.add_dependency 'activesupport'
s.add_development_dependency 'shoulda'
+ s.add_development_dependency 'appraisal'
s.add_development_dependency 'mocha'
s.add_development_dependency 'aws-s3'
s.add_development_dependency 'sqlite3-ruby'
View
12 test/helper.rb
@@ -5,18 +5,6 @@
require 'shoulda'
require 'mocha'
-case ENV['RAILS_VERSION']
-when '2.1' then
- gem 'activerecord', '~>2.1.0'
- gem 'activesupport', '~>2.1.0'
-when '3.0' then
- gem 'activerecord', '~>3.0.0'
- gem 'activesupport', '~>3.0.0'
-else
- gem 'activerecord', '~>2.3.0'
- gem 'activesupport', '~>2.3.0'
-end
-
require 'active_record'
require 'active_record/version'
require 'active_support'
Please sign in to comment.
Something went wrong with that request. Please try again.