Skip to content

Commit c3bf50b

Browse files
wwahammyLeFnord
authored andcommitted
Loosens ActiveSupport to 3 (#300)
* Loosens ActiveSupport to >= 3.0.0. Fixes #289 * Works around ActiveSupport<4 hash extensions not being auto-required for tests * Readd FIXME in gemspec
1 parent acef1f6 commit c3bf50b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

grape-entity.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
1818

1919
s.rubyforge_project = 'grape-entity'
2020

21-
s.add_runtime_dependency 'activesupport', '>=4.0'
21+
s.add_runtime_dependency 'activesupport', '>= 3.0.0'
2222
# FIXME: remove dependecy
2323
s.add_runtime_dependency 'multi_json', '>= 1.3.2'
2424

spec/spec_helper.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
require 'simplecov'
44
require 'coveralls'
55

6+
# This works around the hash extensions not being automatically included in ActiveSupport < 4
7+
require 'active_support/version'
8+
require 'active_support/core_ext/hash' if ActiveSupport::VERSION &&
9+
ActiveSupport::VERSION::MAJOR &&
10+
ActiveSupport::VERSION::MAJOR < 4
11+
612
SimpleCov.start do
713
add_filter 'spec/'
814
end

0 commit comments

Comments
 (0)