paperclip-globalize3.gemspec in paperclip-globalize3-1.0.0 vs paperclip-globalize3.gemspec in paperclip-globalize3-1.1.0

- old
+ new

@@ -1,10 +1,15 @@ # coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'paperclip/globalize3/version' +paperclip_version = '~> 3.3' +unless ENV['PAPERCLIP_VERSION'].to_s.empty? + paperclip_version = Gem::Requirement.new(ENV['PAPERCLIP_VERSION']) +end + Gem::Specification.new do |spec| spec.name = "paperclip-globalize3" spec.version = Paperclip::Globalize3::VERSION spec.authors = ["Maximilian Herold"] spec.email = ["herold@emjot.de"] @@ -16,10 +21,10 @@ spec.files = `git ls-files`.split($/) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_runtime_dependency "paperclip", "~> 3.3" + spec.add_runtime_dependency "paperclip", paperclip_version spec.add_runtime_dependency "globalize3", "~> 0.3" spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "appraisal", "~> 0.5.1" spec.add_development_dependency "rspec-rails", "~> 2.8.0"