Skip to content

Commit

Permalink
Remove support for Rails 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Feb 27, 2017
1 parent 5e2446e commit d3132ae
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 17 deletions.
5 changes: 1 addition & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,12 @@ Style/DoubleNegation:
Style/EmptyLines:
Exclude:
- 'lib/active_record_shards-3-2.rb'
- 'lib/active_record_shards-4-0.rb'
- 'lib/active_record_shards-4-1.rb'
- 'lib/active_record_shards-5-0.rb'

Style/FileName:
Exclude:
- 'lib/active_record_shards-3-2.rb'
- 'lib/active_record_shards-4-0.rb'
- 'lib/active_record_shards-4-1.rb'
- 'lib/active_record_shards-4-2.rb'
- 'lib/active_record_shards-5-0.rb'
- 'lib/active_record_shards/connection_switcher-4-0.rb'
- 'lib/active_record_shards/connection_switcher-5-0.rb'
Expand Down
5 changes: 0 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ rvm:
- 2.4.0
gemfile:
- gemfiles/rails3.2.gemfile
- gemfiles/rails4.1.gemfile
- gemfiles/rails4.2.gemfile
- gemfiles/rails5.0.gemfile
- gemfiles/rails5.1.gemfile
Expand All @@ -24,10 +23,6 @@ matrix:
exclude:
- rvm: 2.4.0
gemfile: gemfiles/rails3.2.gemfile
- rvm: 2.4.0
gemfile: gemfiles/rails4.0.gemfile
- rvm: 2.4.0
gemfile: gemfiles/rails4.1.gemfile
- rvm: 2.1.10
gemfile: gemfiles/rails5.0.gemfile
- rvm: 2.1.10
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ActiveRecord Shards is an extension for ActiveRecord that provides support for sharded database and slaves. Basically it is just a nice way to
switch between database connections. We've made the implementation very small, and have tried not to reinvent any wheels already present in ActiveRecord.

ActiveRecord Shards has been used and tested on Rails 3.2, 4.1, 4.2 and 5.0 and has in some form or another been used in production on a large Rails app for several years.
ActiveRecord Shards has been used and tested on Rails 3.2, 4.2 and 5.0 and has in some form or another been used in production on a large Rails app for several years.

## Installation

Expand Down
4 changes: 0 additions & 4 deletions gemfiles/rails4.1.gemfile

This file was deleted.

File renamed without changes.
4 changes: 2 additions & 2 deletions lib/active_record_shards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def self.rails_env
case "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"
when '3.2'
require 'active_record_shards-3-2'
when '4.1', '4.2'
require 'active_record_shards-4-1'
when '4.2'
require 'active_record_shards-4-2'
when '5.0', '5.1'
require 'active_record_shards-5-0'
else
Expand Down
2 changes: 1 addition & 1 deletion lib/active_record_shards/connection_switcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def method_missing(method, *args, &block) # rubocop:disable Style/MethodMissing
end

case "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"
when '3.2', '4.1', '4.2'
when '3.2', '4.2'
require 'active_record_shards/connection_switcher-4-0'
when '5.0'
require 'active_record_shards/connection_switcher-5-0'
Expand Down

0 comments on commit d3132ae

Please sign in to comment.