maccman/supermodel — Issue #18: gem version pins are preventing use in Rails 3.2
Author: ijcd
Created: 2012-02-24 01:03:51+00:00
State: open

These are making the gem hard to install (I have a gem that depends on SuperModel). I think it should work if we upgrade, but it seems there are a lot of tests that need to be written to confirm this, eh?

if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
s.specification_version = 3

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
s.add_runtime_dependency(%q, [">= 3.0.0"])
else
s.add_dependency(%q, ["~> 3.0.0"])
end
else
s.add_dependency(%q, ["~> 3.0.0"])
end