nyaa.gemspec in nyaa-0.1.2 vs nyaa.gemspec in nyaa-0.3.0
- old
+ new
@@ -1,6 +1,7 @@
-require File.expand_path("../lib/nyaa/version", __FILE__)
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/nyaa/version', __FILE__)
Gem::Specification.new do |s|
s.name = 'nyaa'
s.version = Nyaa::VERSION
s.homepage = 'https://github.com/mistofvongola/nyaa'
@@ -8,14 +9,15 @@
s.description = 'Browse and download from NyaaTorrents from the command-line. Supports categories and filters.'
s.authors = ['David Palma']
s.email = 'requiem.der.seele@gmail.com'
- s.executables = ['nyaa']
s.files = `git ls-files`.split("\n")
- s.require_path = 'lib'
+ s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+ s.test_files = s.files.grep(%r{^(test|spec|features)/})
+ s.require_path = ['lib']
- s.add_runtime_dependency 'trollop', '>= 1.16.2'
- s.add_runtime_dependency 'formatador', '>= 0.2.3'
- s.add_runtime_dependency 'nokogiri', '>= 1.5.5'
- s.add_runtime_dependency 'rest-client', '>= 1.6.7'
+ s.add_runtime_dependency 'trollop', '~> 1.16.2'
+ s.add_runtime_dependency 'formatador', '~> 0.2.3'
+ s.add_runtime_dependency 'nokogiri', '~> 1.5.5'
+ s.add_runtime_dependency 'rest-client', '~> 1.6.7'
end