Permalink
Browse files

bring back rails 3.0 support

  • Loading branch information...
1 parent e9ff0fe commit ec8b0fbf502ab61f2901962279e7b27ab2dc2539 @grosser grosser committed Mar 23, 2013
View
@@ -1,3 +1,7 @@
+appraise "rails3-0" do
+ gem "rails", "~> 3.0.20"
+end
+
appraise "rails3-1" do
gem "rails", "~> 3.1.11"
end
@@ -18,7 +18,7 @@ class FeaturesController < ApplicationController
before_filter :require_permission
before_filter :load_feature, :only => [ :show, :edit, :update, :destroy ]
- if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR < 1
+ if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0
def arturo_engine
self
end
View
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
gem.require_paths = [".", "lib"]
gem.has_rdoc = 'false'
gem.specification_version = 2
- gem.add_runtime_dependency 'rails', '> 3.1', '< 5.0'
+ gem.add_runtime_dependency 'rails', '> 3.0', '< 5.0'
gem.add_development_dependency 'mocha'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'minitest-rg'
View
@@ -1,7 +1,9 @@
-if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR < 1
+if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0
Rails.application.routes.draw do
- resources :features, :controller => 'arturo/features'
- put 'features', :to => 'arturo/features#update_all', :as => 'features'
+ scope "/arturo" do
+ resources :features, :controller => "arturo/features"
+ put 'features', :to => 'arturo/features#update_all', :as => 'features'
+ end
end
else
Arturo::Engine.routes.draw do
@@ -0,0 +1,7 @@
+# This file was generated by Appraisal
+
+source "https://bundler-api.herokuapp.com"
+
+gem "rails", "~> 3.0.20"
+
+gemspec :path=>"../"
@@ -1,5 +1,7 @@
DummyApp::Application.routes.draw do
- mount Arturo::Engine => "/arturo"
+ unless Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0
+ mount Arturo::Engine => "/arturo"
+ end
resources :books, :only => 'show' do
post :holds, :on => :member

0 comments on commit ec8b0fb

Please sign in to comment.