Permalink
Browse files

Gemspec allows for higher versions of method_source as for example th…

…e latest pry gem requires this higher version; VERSION constant in M module is only defined unless it already exists (running test with bundler gives already defined constant error otherwise)
  • Loading branch information...
1 parent 2c0de2e commit a5cc99ba9ce8ad58807ad10e067c5904d9fced07 @klevo klevo committed Jul 11, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/m.rb
  2. +1 −1 m.gemspec
View
@@ -98,7 +98,7 @@
### M, your metal test runner
# Maybe this gem should have a longer name? Metal?
module M
- VERSION = "1.1.0"
+ VERSION = "1.1.0" unless defined?(VERSION)
# Accept arguments coming from bin/m and run tests.
def self.run(argv)
View
@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
gem.require_paths = ["lib"]
gem.version = M::VERSION
- gem.add_runtime_dependency "method_source", "~> 0.6.7"
+ gem.add_runtime_dependency "method_source", ">= 0.6.7"
gem.add_runtime_dependency "rake", ">= 0.9.2.2", "< 1.0.0"
gem.add_development_dependency "activesupport"
gem.add_development_dependency "rdiscount"

0 comments on commit a5cc99b

Please sign in to comment.