named-parameters 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/RELEASENOTES CHANGED
@@ -1,3 +1,7 @@
1
+ 0.0.5 [Nov 11, 2010]
2
+ --------------------
3
+ - [BUGFIX] Same as 0.0.4 - except this time it's really fixed :-)
4
+
1
5
  0.0.4 [Nov 11, 2010]
2
6
  --------------------
3
7
  - [BUGFIX] Reported method name when ArgumentError is raised was ugly.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -123,9 +123,9 @@ module NamedParameters
123
123
  # insert parameter validation prior to executing the instrumented method
124
124
  def intercept method, owner, name, spec # :nodoc:
125
125
  define_method name do |*args, &block|
126
- params = args.find{ |arg| arg.instance_of? Hash }
127
- name = "#{owner}#{name}"
128
- NamedParameters::validate name, params || {}, spec
126
+ params = args.find{ |arg| arg.instance_of? Hash }
127
+ fullname = "#{owner}#{name}"
128
+ NamedParameters::validate fullname, params || {}, spec
129
129
  method.bind(self).call(*args, &block)
130
130
  end
131
131
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{named-parameters}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Juris Galang"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: named-parameters
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Juris Galang