markevans-method_call_recorder 0.1.1 → 0.1.2

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
- 0.1.1
1
+ 0.1.2
@@ -50,8 +50,8 @@ class MethodCallRecorder
50
50
 
51
51
  private
52
52
 
53
- def method_missing(meth, *args)
54
- _method_chain << MethodCall.new(meth, *args)
53
+ def method_missing(meth, *args, &blk)
54
+ _method_chain << MethodCall.new(meth, *args, &blk)
55
55
  self
56
56
  end
57
57
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{method_call_recorder}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mark Evans"]
9
- s.date = %q{2009-07-04}
9
+ s.date = %q{2009-07-29}
10
10
  s.email = %q{mark@new-bamboo.co.uk}
11
11
  s.extra_rdoc_files = [
12
12
  "LICENSE",
@@ -119,5 +119,12 @@ describe MethodCallRecorder do
119
119
  end
120
120
 
121
121
  end
122
+
123
+ describe "blocks" do
124
+ it "should save the block for a method call in the method call" do
125
+ @rec.hello{|t| t + 4 }
126
+ @rec._method_chain.first.block.should be_a(Proc)
127
+ end
128
+ end
122
129
 
123
130
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markevans-method_call_recorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Evans
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-04 00:00:00 -07:00
12
+ date: 2009-07-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -38,6 +38,7 @@ files:
38
38
  - spec/spec_helper.rb
39
39
  has_rdoc: true
40
40
  homepage: http://github.com/markevans/method_call_recorder
41
+ licenses:
41
42
  post_install_message:
42
43
  rdoc_options:
43
44
  - --charset=UTF-8
@@ -58,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
59
  requirements: []
59
60
 
60
61
  rubyforge_project:
61
- rubygems_version: 1.2.0
62
+ rubygems_version: 1.3.5
62
63
  signing_key:
63
64
  specification_version: 2
64
65
  summary: An object on which you can call anything, where nothing happens, but the whole method chain is recorded