options 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/gemspec.rb +1 -1
  2. data/lib/options.rb +3 -3
  3. data/options.gemspec +2 -2
  4. metadata +1 -1
data/gemspec.rb CHANGED
@@ -19,7 +19,7 @@ puts "### gemspec: #{ lib }-#{ version }"
19
19
 
20
20
  $VERBOSE = nil
21
21
 
22
- shiteless = lambda{|list| list.delete_if{|file| file =~ %r/\.(git|svn|tmp|sw.|bak)$/}}
22
+ shiteless = lambda{|list| list.delete_if{|file| file =~ %r/\.(git|svn|tmp|sw.|bak|gem)$/}}
23
23
 
24
24
  files = shiteless[Dir::glob("**/**")]
25
25
  executables = shiteless[Dir::glob("bin/*")].map{|exe| File.basename(exe)}
data/lib/options.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Options
2
- VERSION = '1.0.0'
2
+ VERSION = '2.0.0'
3
3
 
4
4
  class << Options
5
5
  def version
@@ -47,7 +47,7 @@ module Options
47
47
 
48
48
  def parse(args)
49
49
  args.extend(Arguments) unless args.is_a?(Arguments)
50
- [args, args.options.pop]
50
+ args.options.pop
51
51
  end
52
52
  end
53
53
 
@@ -179,7 +179,7 @@ module Arguments
179
179
  end
180
180
 
181
181
  def parse(args)
182
- Options.parse(args)
182
+ [args, Options.parse(args)]
183
183
  end
184
184
  end
185
185
  end
data/options.gemspec CHANGED
@@ -1,8 +1,8 @@
1
- ### gemspec: options-1.0.0
1
+ ### gemspec: options-2.0.0
2
2
 
3
3
  Gem::Specification::new do |spec|
4
4
  spec.name = "options"
5
- spec.version = "1.0.0"
5
+ spec.version = "2.0.0"
6
6
  spec.platform = Gem::Platform::RUBY
7
7
  spec.summary = "options"
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: options
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard