named-parameters 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/RELEASENOTES CHANGED
@@ -1,3 +1,6 @@
1
+ 0.0.13 [Nov 28, 2010]
2
+ - [INTERNAL] instrument -> apply_method_spec, to make it compatible with Rails.
3
+
1
4
  0.0.12 [Nov 25, 2010]
2
5
  - [FEATURE] Added apply_filters method.
3
6
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 0.0.13
@@ -253,7 +253,7 @@ module NamedParameters
253
253
 
254
254
  # add instrumentation for class methods
255
255
  def singleton_method_added name # :nodoc:
256
- instrument :"self.#{name}" do
256
+ apply_method_spec :"self.#{name}" do
257
257
  method = self.eigenclass.instance_method name
258
258
  spec = specs[key_for :"self.#{name}"]
259
259
  owner = "#{self.name}::"
@@ -266,7 +266,7 @@ module NamedParameters
266
266
 
267
267
  # add instrumentation for instance methods
268
268
  def method_added name # :nodoc:
269
- instrument name do
269
+ apply_method_spec name do
270
270
  method = instance_method name
271
271
  spec = specs[key_for name]
272
272
  owner = "#{self.name}#"
@@ -277,7 +277,7 @@ module NamedParameters
277
277
 
278
278
  private
279
279
  # apply instrumentation to method
280
- def instrument method # :nodoc:
280
+ def apply_method_spec method # :nodoc:
281
281
  if specs.include? key_for(method) and !instrumenting?
282
282
  @instrumenting = true
283
283
  yield method
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{named-parameters}
8
- s.version = "0.0.12"
8
+ s.version = "0.0.13"
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"]
12
- s.date = %q{2010-11-25}
12
+ s.date = %q{2010-11-28}
13
13
  s.description = %q{This gem simulates named-parameters in Ruby.
14
14
  It's a complement to the common Ruby idiom of using Hash args to emulate
15
15
  the use of named parameters. }
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: 7
4
+ hash: 5
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 12
10
- version: 0.0.12
9
+ - 13
10
+ version: 0.0.13
11
11
  platform: ruby
12
12
  authors:
13
13
  - Juris Galang
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-25 00:00:00 -08:00
18
+ date: 2010-11-28 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency