applix.gemspec in applix-0.4.9 vs applix.gemspec in applix-0.4.10

- old
+ new

@@ -10,12 +10,12 @@ s.email = ['dirk.luesebrink@artcom.de'] s.homepage = 'http://github.com/crux/applix' s.summary = 'extracting typed option hashes from command line arguments' s.description = %q{ ApplixHash#from_argv builds hashes from ARGV like argument vectors - according to following examples: - + according to following examples: + '-f' --> { :f => true } '--flag' --> { :flag => true } '--flag:false' --> { :flag => false } '--flag=false' --> { :flag => 'false' } '--option=value' --> { :option => "value" } @@ -24,15 +24,15 @@ '--float:2.3' --> { :float => 2.3 } '--txt="foo bar"' --> { :txt => "foo bar" } '--txt:'"foo bar"'' --> { :txt => "foo bar" } '--txt:%w{foo bar}' --> { :txt => ["foo", "bar"] } '--now:Time.now' --> { :now => #<Date: 3588595/2,0,2299161> } - + remaining arguments(non flag/options) are inserted as [:arguments, args], eg: Hash.from_argv %w(--foo --bar=loo 123 now) - becomes + becomes { :foo => true, :bar => 'loo', :arguments => ["123", "now"] } } s.add_dependency 'daemons' @@ -49,12 +49,13 @@ #s.add_development_dependency 'ruby-debug19' #s.add_development_dependency 'ruby-debug-base19' s.add_development_dependency 'debugger' end + # version class is read from 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 do |f| + s.executables = `git ls-files -- bin/*`.split("\n").map do |f| File.basename(f) end s.require_paths = ["lib"] end