Skip to content

Commit

Permalink
Rails 5 support
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne authored and LeFnord committed Jan 21, 2021
1 parent bd05e36 commit 82a9484
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ language: ruby
rvm:
- 2.2.5
- 2.3.1
env:
matrix:
- "RAILS_VERSION=4.2.7.1"
- "RAILS_VERSION=5.0.0.1"
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source "http://rubygems.org"

# Specify your gem's dependencies in acts_as_follower.gemspec
gemspec

gem 'activesupport', ENV['RAILS_VERSION'] if ENV['RAILS_VERSION']
4 changes: 3 additions & 1 deletion acts_as_follower.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ Gem::Specification.new do |s|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

s.add_dependency 'activerecord', '>= 4.0'

s.add_development_dependency "sqlite3"
s.add_development_dependency "shoulda_create"
s.add_development_dependency "shoulda", ">= 3.5.0"
s.add_development_dependency "factory_girl", ">= 4.2.0"
s.add_development_dependency "rails", "~> 4.0.0"
s.add_development_dependency "rails", ">= 4.0"
end
1 change: 0 additions & 1 deletion lib/acts_as_follower/railtie.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require 'acts_as_follower'
require 'rails'

module ActsAsFollower
Expand Down

0 comments on commit 82a9484

Please sign in to comment.