whysoslow.gemspec in whysoslow-0.0.2 vs whysoslow.gemspec in whysoslow-1.0.0

- old
+ new

@@ -1,23 +1,25 @@ # -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "whysoslow/version" -Gem::Specification.new do |s| - s.name = "whysoslow" - s.version = Whysoslow::VERSION - s.platform = Gem::Platform::RUBY - s.authors = ["Kelly Redding"] - s.email = ["kelly@kellyredding.com"] - s.homepage = "http://github.com/kellyredding/whysoslow" - s.summary = %q{A little runner/printer to benchmark Ruby code blocks} - s.description = %q{A little runner/printer to benchmark Ruby code blocks} +Gem::Specification.new do |gem| + gem.name = "whysoslow" + gem.version = Whysoslow::VERSION + gem.authors = ["Kelly Redding"] + gem.email = ["kelly@kellyredding.com"] + gem.description = %q{A little runner/printer to benchmark Ruby code blocks} + gem.summary = %q{A little runner/printer to benchmark Ruby code blocks} + gem.homepage = "http://github.com/kellyredding/whysoslow" + gem.license = 'MIT' - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - s.require_paths = ["lib"] + 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"] - s.add_development_dependency("bundler") - s.add_development_dependency("assert") - s.add_dependency("ansi", "~> 1.4") + gem.add_development_dependency("assert", ["~> 2.0"]) + + gem.add_dependency("ansi", ["~> 1.4"]) + end