loaf.gemspec in loaf-0.8.0 vs loaf.gemspec in loaf-0.8.1

- old
+ new

@@ -10,19 +10,26 @@ spec.email = [""] spec.homepage = 'https://github.com/piotrmurach/loaf' spec.summary = %q{Loaf manages and displays breadcrumb trails in your Rails application.} spec.description = %q{Loaf manages and displays breadcrumb trails in your Rails app. It aims to handle breadcrumb data through easy dsl and expose it through view helpers without any assumptions about markup.} - spec.files = `git ls-files`.split("\n") - spec.test_files = `git ls-files -- {spec,features}/*`.split("\n") - spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } + spec.files = Dir['{lib,spec,config}/**/*'].reject { |f| + File.directory?(f) || f.include?('.sqlite3') || f.include?('.log') + } + spec.files += Dir['{bin,tasks}/*', 'loaf.gemspec'] + spec.files += Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'Rakefile', 'Appraisals'] spec.require_paths = ["lib"] - spec.metadata['allowed_push_host'] = 'https://rubygems.org' - spec.metadata['source_code_uri'] = 'https://github.com/piotrmurach/loaf' - spec.metadata['changelog_uri'] = 'https://github.com/piotrmurach/loaf/blob/master/CHANGELOG.md' + if spec.respond_to?(:metadata=) + spec.metadata = { + 'allowed_push_host' => 'https://rubygems.org', + 'bug_tracker_uri' => 'https://github.com/piotrmurach/loaf/issues', + 'source_code_uri' => 'https://github.com/piotrmurach/loaf', + 'changelog_uri' => 'https://github.com/piotrmurach/loaf/blob/master/CHANGELOG.md' + } + end spec.add_dependency 'rails', '>= 3.2' - spec.add_development_dependency 'bundler', '~> 1.5' + spec.add_development_dependency 'bundler', '>= 1.5' spec.add_development_dependency 'rake' end