Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store_base_sti_class_for_4_1 #5

Merged
merged 2 commits into from
Aug 3, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ gem 'appraisal', :group => :development

gem "jeweler", :group => :development
gem "bundler", :group => :development

gem "minitest", "~> 4.0"
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,5 @@ DEPENDENCIES
appraisal
bundler
jeweler
minitest (~> 4.0)
sqlite3
Binary file modified db/storebasestiname_unittest.sql
Binary file not shown.
10 changes: 10 additions & 0 deletions gemfiles/rails_4.1.0.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "sqlite3", :group=>:development
gem "appraisal", :group=>:development
gem "jeweler", :group=>:development
gem "bundler", :group=>:development
gem "activerecord", "4.1.0"

81 changes: 81 additions & 0 deletions gemfiles/rails_4.1.0.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
GEM
remote: https://rubygems.org/
specs:
activemodel (4.0.1)
activesupport (= 4.0.1)
builder (~> 3.1.0)
activerecord (4.0.1)
activemodel (= 4.0.1)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.1)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.1)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
addressable (2.3.5)
appraisal (0.5.2)
bundler
rake
arel (4.0.1)
atomic (1.1.14)
builder (3.1.4)
faraday (0.8.8)
multipart-post (~> 1.2.0)
git (1.2.6)
github_api (0.10.1)
addressable
faraday (~> 0.8.1)
hashie (>= 1.2)
multi_json (~> 1.4)
nokogiri (~> 1.5.2)
oauth2
hashie (2.0.5)
highline (1.6.20)
httpauth (0.2.0)
i18n (0.6.5)
jeweler (1.8.8)
builder
bundler (~> 1.0)
git (>= 1.2.5)
github_api (= 0.10.1)
highline (>= 1.6.15)
nokogiri (= 1.5.10)
rake
rdoc
json (1.8.1)
jwt (0.1.8)
multi_json (>= 1.5)
minitest (4.7.5)
multi_json (1.8.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
nokogiri (1.5.10)
oauth2 (0.9.2)
faraday (~> 0.8)
httpauth (~> 0.2)
jwt (~> 0.1.4)
multi_json (~> 1.0)
multi_xml (~> 0.5)
rack (~> 1.2)
rack (1.5.2)
rake (10.1.0)
rdoc (4.0.1)
json (~> 1.4)
sqlite3 (1.3.8)
thread_safe (0.1.3)
atomic
tzinfo (0.3.38)

PLATFORMS
ruby

DEPENDENCIES
activerecord (= 4.0.1)
appraisal
bundler
jeweler
sqlite3
4 changes: 3 additions & 1 deletion lib/store_base_sti_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
require 'store_base_sti_class_for_3_0'
elsif ActiveRecord::VERSION::STRING =~ /^3\.(1|2)/
require 'store_base_sti_class_for_3_1_and_above'
elsif ActiveRecord::VERSION::STRING =~ /^4/
elsif ActiveRecord::VERSION::STRING =~ /^4\.0/
require 'store_base_sti_class_for_4_0'
elsif ActiveRecord::VERSION::STRING =~ /^4\.1/
require 'store_base_sti_class_for_4_1'
end
2 changes: 1 addition & 1 deletion lib/store_base_sti_class_for_4_0.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require 'active_record'

if ActiveRecord::VERSION::STRING =~ /^4/
if ActiveRecord::VERSION::STRING =~ /^4\.0/
module ActiveRecord

class Base
Expand Down
Loading