diff --git a/Gemfile b/Gemfile index 55f4efb..b6cd53d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,11 @@ source 'https://rubygems.org' +gemspec + # To test on latest Rails release, use the following: -gem 'rails' gem 'minitest' +gem 'actionpack' +gem 'rails-dom-testing' # To test on Rails 4.0.x release, use the following e.g. for 4.0.1: # gem 'rails', '= 4.0.1' diff --git a/rails_autolink.gemspec b/rails_autolink.gemspec index 10d10b5..7583bad 100644 --- a/rails_autolink.gemspec +++ b/rails_autolink.gemspec @@ -10,7 +10,10 @@ Gem::Specification.new do |s| s.summary = 'Automatic generation of html links in texts' s.description = 'This is an extraction of the `auto_link` method from rails. The `auto_link` method was removed from Rails in version Rails 3.1. This gem is meant to bridge the gap for people migrating.' - s.add_dependency 'rails', '> 3.1' + s.add_dependency "activesupport", ">= 3.1" + s.add_dependency "actionview", ">= 3.1" + s.add_dependency "railties", ">= 3.1" + s.required_ruby_version = '>= 1.9.3' s.license = 'MIT'