get_args 1.1.0 → 1.1.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{get_args}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["maiha", "Yehuda Katz"]
@@ -4,8 +4,8 @@ module GetArgs
4
4
  @arguments = args_array.map { |arg| Argument.new(arg) }
5
5
  end
6
6
 
7
- def method_missing(*args)
8
- @arguments.send(*args)
7
+ def method_missing(*args, &block)
8
+ @arguments.send(*args, &block)
9
9
  end
10
10
  end
11
11
 
@@ -24,5 +24,9 @@ module GetArgs
24
24
  def multiple?
25
25
  name.to_s.slice(0,1) == '*'
26
26
  end
27
+
28
+ def to_s
29
+ name
30
+ end
27
31
  end
28
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get_args
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - maiha