bagit.gemspec in bagit-0.3.1 vs bagit.gemspec in bagit-0.3.2.pre

- old
+ new

@@ -1,16 +1,27 @@ +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'bagit/version' -BAGIT_SPEC = Gem::Specification.new do |spec| +Gem::Specification.new do |spec| spec.name = "bagit" - spec.version = '0.3.1' + spec.version = BagIt::VERSION spec.summary = "BagIt package generation and validation" spec.description = "Ruby Library and Command Line tools for bagit" spec.email = "johnson.tom@gmail.com" spec.homepage = 'http://github.com/tipr/bagit' spec.authors = ["Tom Johnson, Francesco Lazzarino"] + spec.license = "MIT" spec.add_dependency 'validatable', '~> 1.6' spec.add_dependency 'docopt', '~> 0.5.0' - spec.files = %w(Rakefile README.md LICENSE.txt bagit.gemspec) + Dir["lib/**/*.rb"] - spec.executables << 'bagit' + spec.add_development_dependency "bundler", "~> 1.3" + spec.add_development_dependency 'rake' + spec.add_development_dependency 'rspec' + + spec.files = `git ls-files`.split($/) + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ["lib"] end