lib/cany/specification/dsl.rb in cany-0.5.1 vs lib/cany/specification/dsl.rb in cany-0.5.2

- old
+ new

@@ -24,10 +24,10 @@ # This directive ensures that Cany is used in a specific version. It will pass if the version # match or raise an exception if it is an unsupported version. # @param version [String] The version constrain the must be satisfied by Cany. # @raise Cany::UnsupportedVersion on version mismatch def require_cany(version) - unless Gem::Requirement.create(version).satisfied_by? Gem::Version.new(Cany::VERSION) + unless Gem::Requirement.create(version).satisfied_by? Gem::Version.new(Cany::VERSION.to_s) raise UnsupportedVersion.new version end @specification.cany_version_constraint = version end