Skip to content
Browse files

fix rails 2 build

  • Loading branch information...
1 parent 4f44eee commit aff504b8d6135f2242d3b2f4dae68e1065ffb57b @grosser committed
Showing with 101 additions and 3 deletions.
  1. +4 −0 .travis.yml
  2. +2 −3 Appraisals
  3. +16 −0 gemfiles/rails23.gemfile
  4. +73 −0 gemfiles/rails23.gemfile.lock
  5. +6 −0 spec/spec_helper.rb
View
4 .travis.yml
@@ -5,6 +5,10 @@ gemfile:
- gemfiles/rails30.gemfile
- gemfiles/rails31.gemfile
- gemfiles/rails32.gemfile
+matrix:
+ exclude:
+ - rvm: 2.0
+ gemfile: gemfiles/rails23.gemfile
rvm:
- ree
- 1.9.3
View
5 Appraisals
@@ -1,7 +1,6 @@
-versions = ['3.0', '3.1', '3.2']
-versions.unshift '2.3' if RUBY_VERSION =~ /^1/
-versions.each do |version|
+['2.3', '3.0', '3.1', '3.2'].each do |version|
appraise "rails#{version.sub(".", "")}" do
gem "rails", "~>#{version}.0"
+ gem "haml", "~> 3.0" if version == "2.3"
end
end
View
16 gemfiles/rails23.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "http://rubygems.org"
+
+gem "appraisal"
+gem "bump"
+gem "gettext"
+gem "rake"
+gem "ruby_parser", ">= 3"
+gem "rspec"
+gem "slim"
+gem "sqlite3"
+gem "rails", "~>2.3.0"
+gem "haml", "~> 3.0"
+
+gemspec :path=>"../"
View
73 gemfiles/rails23.gemfile.lock
@@ -0,0 +1,73 @@
+PATH
+ remote: /Users/mgrosser/code/tools/gettext_i18n_rails
+ specs:
+ gettext_i18n_rails (0.10.0)
+ fast_gettext (>= 0.4.8)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (2.3.18)
+ actionpack (= 2.3.18)
+ actionpack (2.3.18)
+ activesupport (= 2.3.18)
+ rack (~> 1.1.0)
+ activerecord (2.3.18)
+ activesupport (= 2.3.18)
+ activeresource (2.3.18)
+ activesupport (= 2.3.18)
+ activesupport (2.3.18)
+ appraisal (0.5.2)
+ bundler
+ rake
+ bump (0.4.2)
+ diff-lcs (1.2.4)
+ fast_gettext (0.7.1)
+ gettext (2.3.9)
+ locale
+ text
+ haml (3.1.7)
+ locale (2.0.8)
+ rack (1.1.6)
+ rails (2.3.18)
+ actionmailer (= 2.3.18)
+ actionpack (= 2.3.18)
+ activerecord (= 2.3.18)
+ activeresource (= 2.3.18)
+ activesupport (= 2.3.18)
+ rake (>= 0.8.3)
+ rake (10.1.0)
+ rspec (2.14.1)
+ rspec-core (~> 2.14.0)
+ rspec-expectations (~> 2.14.0)
+ rspec-mocks (~> 2.14.0)
+ rspec-core (2.14.4)
+ rspec-expectations (2.14.0)
+ diff-lcs (>= 1.1.3, < 2.0)
+ rspec-mocks (2.14.2)
+ ruby_parser (3.2.2)
+ sexp_processor (~> 4.1)
+ sexp_processor (4.2.1)
+ slim (2.0.1)
+ temple (~> 0.6.6)
+ tilt (>= 1.3.3, < 2.1)
+ sqlite3 (1.3.7)
+ temple (0.6.6)
+ text (1.2.1)
+ tilt (1.4.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ appraisal
+ bump
+ gettext
+ gettext_i18n_rails!
+ haml (~> 3.0)
+ rails (~> 2.3.0)
+ rake
+ rspec
+ ruby_parser (>= 3)
+ slim
+ sqlite3
View
6 spec/spec_helper.rb
@@ -2,6 +2,12 @@
$LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
+require 'active_support/version'
+if RUBY_VERSION > "2" && ActiveSupport::VERSION::MAJOR == 2
+ warn "Not running ruby 2 vs rails 2 tests"
+ exit 0
+end
+
require 'tempfile'
require 'active_support'
require 'active_record'

0 comments on commit aff504b

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