lorj.gemspec in lorj-0.2.0 vs lorj.gemspec in lorj-1.0.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 'lorj/version'
+require 'rbconfig'
+ruby_conf = defined?(RbConfig) ? RbConfig::CONFIG : Config::CONFIG
+less_than_one_nine = ruby_conf['MAJOR'].to_i == 1 && ruby_conf['MINOR'].to_i < 9
+less_than_two = ruby_conf['MAJOR'].to_i < 2
+
Gem::Specification.new do |spec|
spec.name = 'lorj'
spec.version = Lorj::VERSION
spec.authors = ['forj team']
spec.email = ['forj@forj.io']
@@ -22,9 +27,10 @@
spec.require_paths = ['lib']
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.1.0'
+ spec.add_development_dependency 'byebug' unless less_than_two
spec.rdoc_options << \
'--title Lorj - The Process Controllers framework system' << \
'--main README.md'
# spec.add_runtime_dependency 'thor', '~>0.16.0'