ns-options.gemspec in ns-options-1.1.1 vs ns-options.gemspec in ns-options-1.1.2
- old
+ new
@@ -1,19 +1,22 @@
# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/ns-options/version', __FILE__)
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require "ns-options/version"
Gem::Specification.new do |gem|
+ gem.name = "ns-options"
+ gem.version = NsOptions::VERSION
gem.authors = ["Collin Redding", "Kelly Redding"]
gem.email = ["collin.redding@me.com", "kelly@kellyredding.com"]
gem.description = %q{A DSL for defining, organizing and accessing options.}
gem.summary = %q{A DSL for defining, organizing and accessing options.}
gem.homepage = "https://github.com/redding/ns-options"
- gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
- gem.files = `git ls-files`.split("\n")
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
- gem.name = "ns-options"
+ gem.files = `git ls-files`.split($/)
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.require_paths = ["lib"]
- gem.version = NsOptions::VERSION
- gem.add_development_dependency("assert", ["~>1.0"])
+ gem.add_dependency("assert", ["~> 2.0"])
+
end