rspreadsheet.gemspec in rspreadsheet-0.3 vs rspreadsheet.gemspec in rspreadsheet-0.4.1

- old
+ new

@@ -28,22 +28,20 @@ end spec.add_runtime_dependency 'rubyzip', '~>1.1' # opening zip files spec.add_runtime_dependency 'andand', '~>1.3' # development dependencies - spec.add_development_dependency "bundler", "~> 1.5" + spec.add_development_dependency "bundler", '~> 1.5' spec.add_development_dependency "rake", '~>0.9' # testig - see http://bit.ly/1n5yM51 - spec.add_development_dependency "rspec", '~>2' # testing - spec.add_development_dependency 'pry-nav', '~>0' # enables pry 'next', 'step' commands + spec.add_development_dependency "rspec", '~>2.0' # running tests + spec.add_development_dependency 'pry-nav', '~>0.0' # enables pry 'next', 'step' commands + spec.add_development_dependency "coveralls", '~>0.7' # inspecting coverage of tests # optional and testing - spec.add_development_dependency "coveralls", '~>0.7' - - if RUBY_VERSION.split('.')[0] != "1" - # ruby_dep starts to require ruby 2.2.5 which raises errors with ruby 1.9.3 -# spec.add_development_dependency "guard", '~>2.13' -# spec.add_development_dependency "guard-rspec", '~>4.6' + if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.2.5') + spec.add_development_dependency "guard", '~>2.13' + spec.add_development_dependency "guard-rspec", '~>4.6' end # spec.add_development_dependency 'equivalent-xml' # implementing xml diff end