mocha 0.11.2 → 0.11.3

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 (51) hide show
  1. data/RELEASE.rdoc +3 -0
  2. data/doc/Mocha.html +2 -2
  3. data/doc/Mocha/API.html +2 -2
  4. data/doc/Mocha/ClassMethods.html +2 -2
  5. data/doc/Mocha/Configuration.html +2 -2
  6. data/doc/Mocha/Expectation.html +2 -2
  7. data/doc/Mocha/Mock.html +2 -2
  8. data/doc/Mocha/ObjectMethods.html +2 -2
  9. data/doc/Mocha/ParameterMatchers.html +2 -2
  10. data/doc/Mocha/ParameterMatchers/AllOf.html +2 -2
  11. data/doc/Mocha/ParameterMatchers/AnyOf.html +2 -2
  12. data/doc/Mocha/ParameterMatchers/AnyParameters.html +2 -2
  13. data/doc/Mocha/ParameterMatchers/Anything.html +2 -2
  14. data/doc/Mocha/ParameterMatchers/Base.html +2 -2
  15. data/doc/Mocha/ParameterMatchers/Equals.html +2 -2
  16. data/doc/Mocha/ParameterMatchers/HasEntries.html +2 -2
  17. data/doc/Mocha/ParameterMatchers/HasEntry.html +2 -2
  18. data/doc/Mocha/ParameterMatchers/HasKey.html +2 -2
  19. data/doc/Mocha/ParameterMatchers/HasValue.html +2 -2
  20. data/doc/Mocha/ParameterMatchers/Includes.html +2 -2
  21. data/doc/Mocha/ParameterMatchers/InstanceOf.html +2 -2
  22. data/doc/Mocha/ParameterMatchers/IsA.html +2 -2
  23. data/doc/Mocha/ParameterMatchers/KindOf.html +2 -2
  24. data/doc/Mocha/ParameterMatchers/Not.html +2 -2
  25. data/doc/Mocha/ParameterMatchers/Optionally.html +2 -2
  26. data/doc/Mocha/ParameterMatchers/QueryStringMatches.html +2 -2
  27. data/doc/Mocha/ParameterMatchers/RegexpMatches.html +2 -2
  28. data/doc/Mocha/ParameterMatchers/RespondsWith.html +2 -2
  29. data/doc/Mocha/ParameterMatchers/YamlEquivalent.html +2 -2
  30. data/doc/Mocha/Sequence.html +2 -2
  31. data/doc/Mocha/StateMachine.html +2 -2
  32. data/doc/Mocha/StateMachine/State.html +2 -2
  33. data/doc/Mocha/StateMachine/StatePredicate.html +2 -2
  34. data/doc/Mocha/StubbingError.html +2 -2
  35. data/doc/Mocha/UnexpectedInvocation.html +2 -2
  36. data/doc/_index.html +3 -3
  37. data/doc/file.COPYING.html +2 -2
  38. data/doc/file.MIT-LICENSE.html +2 -2
  39. data/doc/file.README.html +2 -2
  40. data/doc/file.RELEASE.html +8 -2
  41. data/doc/file.misc.html +2 -2
  42. data/doc/file.mocha.html +2 -2
  43. data/doc/file.stubba.html +2 -2
  44. data/doc/frames.html +1 -1
  45. data/doc/index.html +2 -2
  46. data/doc/top-level-namespace.html +2 -2
  47. data/lib/mocha/class_method.rb +1 -1
  48. data/lib/mocha/object.rb +1 -1
  49. data/lib/mocha/version.rb +1 -1
  50. data/test/unit/object_test.rb +1 -1
  51. metadata +11 -11
@@ -1,3 +1,6 @@
1
+ = 0.11.3
2
+ * Fix for #78 i.e. alias Object#method as Object#_method, not Object#__method__ which already exists as another Ruby method.
3
+
1
4
  = 0.11.2
2
5
  * Rails has a Request class which defines its own #method method. This broke the new mechanism for stubbing a method. This release includes a slightly modified version of fix #77 provided by @sikachu. See https://github.com/rails/rails/pull/5907 for further info.
3
6
 
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -103,7 +103,7 @@
103
103
  </div>
104
104
 
105
105
  <div id="footer">
106
- Generated on Tue Apr 24 11:15:45 2012 by
106
+ Generated on Wed Apr 25 16:51:30 2012 by
107
107
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
108
108
  0.7.5 (ruby-1.9.3).
109
109
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::API
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -889,7 +889,7 @@ alternative way to setup stubbed methods.</p>
889
889
  </div>
890
890
 
891
891
  <div id="footer">
892
- Generated on Tue Apr 24 11:15:45 2012 by
892
+ Generated on Wed Apr 25 16:51:30 2012 by
893
893
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
894
894
  0.7.5 (ruby-1.9.3).
895
895
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ClassMethods
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -237,7 +237,7 @@ non-mock) objects.</p>
237
237
  </div>
238
238
 
239
239
  <div id="footer">
240
- Generated on Tue Apr 24 11:15:45 2012 by
240
+ Generated on Wed Apr 25 16:51:30 2012 by
241
241
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
242
242
  0.7.5 (ruby-1.9.3).
243
243
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Configuration
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -462,7 +462,7 @@ being returned to its original value at the end of the block.</p>
462
462
  </div>
463
463
 
464
464
  <div id="footer">
465
- Generated on Tue Apr 24 11:15:45 2012 by
465
+ Generated on Wed Apr 25 16:51:31 2012 by
466
466
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
467
467
  0.7.5 (ruby-1.9.3).
468
468
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Expectation
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -2561,7 +2561,7 @@ methods to be chained.</p>
2561
2561
  </div>
2562
2562
 
2563
2563
  <div id="footer">
2564
- Generated on Tue Apr 24 11:15:45 2012 by
2564
+ Generated on Wed Apr 25 16:51:31 2012 by
2565
2565
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2566
2566
  0.7.5 (ruby-1.9.3).
2567
2567
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Mock
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -821,7 +821,7 @@ object.stubbed_method # =&gt; unexpected invocation: #&lt;Mock:mock&gt;.stubbed_
821
821
  </div>
822
822
 
823
823
  <div id="footer">
824
- Generated on Tue Apr 24 11:15:45 2012 by
824
+ Generated on Wed Apr 25 16:51:30 2012 by
825
825
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
826
826
  0.7.5 (ruby-1.9.3).
827
827
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ObjectMethods
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -659,7 +659,7 @@ satisfied. Use <span class='object_link'><a href="#unstub-instance_method" title
659
659
  </div>
660
660
 
661
661
  <div id="footer">
662
- Generated on Tue Apr 24 11:15:45 2012 by
662
+ Generated on Wed Apr 25 16:51:30 2012 by
663
663
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
664
664
  0.7.5 (ruby-1.9.3).
665
665
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Module: Mocha::ParameterMatchers
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -2706,7 +2706,7 @@ To put it another way, it tests the quack, not the duck.</p>
2706
2706
  </div>
2707
2707
 
2708
2708
  <div id="footer">
2709
- Generated on Tue Apr 24 11:15:45 2012 by
2709
+ Generated on Wed Apr 25 16:51:31 2012 by
2710
2710
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
2711
2711
  0.7.5 (ruby-1.9.3).
2712
2712
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::AllOf
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ AND.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::AnyOf
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ OR.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::AnyParameters
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -127,7 +127,7 @@
127
127
  </div>
128
128
 
129
129
  <div id="footer">
130
- Generated on Tue Apr 24 11:15:45 2012 by
130
+ Generated on Wed Apr 25 16:51:31 2012 by
131
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
132
  0.7.5 (ruby-1.9.3).
133
133
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::Anything
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -127,7 +127,7 @@
127
127
  </div>
128
128
 
129
129
  <div id="footer">
130
- Generated on Tue Apr 24 11:15:45 2012 by
130
+ Generated on Wed Apr 25 16:51:31 2012 by
131
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
132
  0.7.5 (ruby-1.9.3).
133
133
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::Base
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -410,7 +410,7 @@ explicit <span class='object_link'><a href="Equals.html" title="Mocha::Parameter
410
410
  </div>
411
411
 
412
412
  <div id="footer">
413
- Generated on Tue Apr 24 11:15:45 2012 by
413
+ Generated on Wed Apr 25 16:51:31 2012 by
414
414
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
415
415
  0.7.5 (ruby-1.9.3).
416
416
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::Equals
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ value.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::HasEntries
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::HasEntry
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::HasKey
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::HasValue
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::Includes
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ value.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::InstanceOf
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ specified class.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::IsA
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -127,7 +127,7 @@
127
127
  </div>
128
128
 
129
129
  <div id="footer">
130
- Generated on Tue Apr 24 11:15:45 2012 by
130
+ Generated on Wed Apr 25 16:51:31 2012 by
131
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
132
  0.7.5 (ruby-1.9.3).
133
133
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::KindOf
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ specified class.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::Not
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ logical NOT operation.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::Optionally
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -127,7 +127,7 @@
127
127
  </div>
128
128
 
129
129
  <div id="footer">
130
- Generated on Tue Apr 24 11:15:45 2012 by
130
+ Generated on Wed Apr 25 16:51:31 2012 by
131
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
132
  0.7.5 (ruby-1.9.3).
133
133
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::QueryStringMatches
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -127,7 +127,7 @@
127
127
  </div>
128
128
 
129
129
  <div id="footer">
130
- Generated on Tue Apr 24 11:15:45 2012 by
130
+ Generated on Wed Apr 25 16:51:31 2012 by
131
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
132
  0.7.5 (ruby-1.9.3).
133
133
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::RegexpMatches
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ actual paramter.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::RespondsWith
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ when specified method is invoked.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::ParameterMatchers::YamlEquivalent
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -128,7 +128,7 @@ specified object.</p>
128
128
  </div>
129
129
 
130
130
  <div id="footer">
131
- Generated on Tue Apr 24 11:15:45 2012 by
131
+ Generated on Wed Apr 25 16:51:31 2012 by
132
132
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
133
133
  0.7.5 (ruby-1.9.3).
134
134
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::Sequence
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -124,7 +124,7 @@
124
124
  </div>
125
125
 
126
126
  <div id="footer">
127
- Generated on Tue Apr 24 11:15:45 2012 by
127
+ Generated on Wed Apr 25 16:51:30 2012 by
128
128
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
129
129
  0.7.5 (ruby-1.9.3).
130
130
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StateMachine
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -501,7 +501,7 @@ to be chained.</p>
501
501
  </div>
502
502
 
503
503
  <div id="footer">
504
- Generated on Tue Apr 24 11:15:45 2012 by
504
+ Generated on Wed Apr 25 16:51:31 2012 by
505
505
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
506
506
  0.7.5 (ruby-1.9.3).
507
507
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StateMachine::State
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -116,7 +116,7 @@ in the future.</p>
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Tue Apr 24 11:15:45 2012 by
119
+ Generated on Wed Apr 25 16:51:31 2012 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.7.5 (ruby-1.9.3).
122
122
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::StateMachine::StatePredicate
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -116,7 +116,7 @@ specified state at some point in the future.</p>
116
116
  </div>
117
117
 
118
118
  <div id="footer">
119
- Generated on Tue Apr 24 11:15:45 2012 by
119
+ Generated on Wed Apr 25 16:51:31 2012 by
120
120
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
121
121
  0.7.5 (ruby-1.9.3).
122
122
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Exception: Mocha::StubbingError
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -125,7 +125,7 @@
125
125
  </div>
126
126
 
127
127
  <div id="footer">
128
- Generated on Tue Apr 24 11:15:45 2012 by
128
+ Generated on Wed Apr 25 16:51:31 2012 by
129
129
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
130
  0.7.5 (ruby-1.9.3).
131
131
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: Mocha::UnexpectedInvocation
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -115,7 +115,7 @@
115
115
  </div>
116
116
 
117
117
  <div id="footer">
118
- Generated on Tue Apr 24 11:15:45 2012 by
118
+ Generated on Wed Apr 25 16:51:31 2012 by
119
119
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
120
120
  0.7.5 (ruby-1.9.3).
121
121
  </div>
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
6
  <title>
7
- Mocha 0.11.2
7
+ Mocha 0.11.3
8
8
 
9
9
  </title>
10
10
 
@@ -52,7 +52,7 @@
52
52
 
53
53
  <iframe id="search_frame"></iframe>
54
54
 
55
- <div id="content"><h1 class="noborder title">Mocha 0.11.2</h1>
55
+ <div id="content"><h1 class="noborder title">Mocha 0.11.3</h1>
56
56
  <div id="listing">
57
57
  <h1 class="alphaindex">Alphabetic Index</h1>
58
58
 
@@ -472,7 +472,7 @@
472
472
  </div>
473
473
 
474
474
  <div id="footer">
475
- Generated on Tue Apr 24 11:15:44 2012 by
475
+ Generated on Wed Apr 25 16:51:30 2012 by
476
476
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
477
477
  0.7.5 (ruby-1.9.3).
478
478
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: COPYING
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -63,7 +63,7 @@ href="http://www.ruby-lang.org/en/LICENSE.txt">Ruby itself</a> or under the
63
63
  </div></div>
64
64
 
65
65
  <div id="footer">
66
- Generated on Tue Apr 24 11:15:45 2012 by
66
+ Generated on Wed Apr 25 16:51:30 2012 by
67
67
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
68
68
  0.7.5 (ruby-1.9.3).
69
69
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: MIT-LICENSE
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -77,7 +77,7 @@ DEALINGS IN THE SOFTWARE.</p>
77
77
  </div></div>
78
78
 
79
79
  <div id="footer">
80
- Generated on Tue Apr 24 11:15:45 2012 by
80
+ Generated on Wed Apr 25 16:51:30 2012 by
81
81
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
82
82
  0.7.5 (ruby-1.9.3).
83
83
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -144,7 +144,7 @@ href="http://www.ruby-lang.org/en/LICENSE.txt">Ruby itself</a> or under the
144
144
  </div></div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Tue Apr 24 11:15:44 2012 by
147
+ Generated on Wed Apr 25 16:51:30 2012 by
148
148
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.7.5 (ruby-1.9.3).
150
150
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: RELEASE
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -55,6 +55,12 @@
55
55
  <iframe id="search_frame"></iframe>
56
56
 
57
57
  <div id="content"><div id='filecontents'>
58
+ <h1>0.11.3</h1>
59
+ <ul><li>
60
+ <p>Fix for #78 i.e. alias Object#method as Object#_method, not
61
+ Object#__method__ which already exists as another Ruby method.</p>
62
+ </li></ul>
63
+
58
64
  <h1>0.11.2</h1>
59
65
  <ul><li>
60
66
  <p>Rails has a Request class which defines its own #method method. This broke
@@ -939,7 +945,7 @@ a mock will automatically get verified.</p>
939
945
  </div></div>
940
946
 
941
947
  <div id="footer">
942
- Generated on Tue Apr 24 11:15:45 2012 by
948
+ Generated on Wed Apr 25 16:51:30 2012 by
943
949
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
944
950
  0.7.5 (ruby-1.9.3).
945
951
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: misc
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -99,7 +99,7 @@
99
99
  <span class='kw'>end</span></pre></div></div>
100
100
 
101
101
  <div id="footer">
102
- Generated on Tue Apr 24 11:15:45 2012 by
102
+ Generated on Wed Apr 25 16:51:30 2012 by
103
103
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
104
104
  0.7.5 (ruby-1.9.3).
105
105
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: mocha
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -81,7 +81,7 @@
81
81
  <span class='kw'>end</span></pre></div></div>
82
82
 
83
83
  <div id="footer">
84
- Generated on Tue Apr 24 11:15:45 2012 by
84
+ Generated on Wed Apr 25 16:51:30 2012 by
85
85
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
86
86
  0.7.5 (ruby-1.9.3).
87
87
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: stubba
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -120,7 +120,7 @@
120
120
  <span class='kw'>end</span></pre></div></div>
121
121
 
122
122
  <div id="footer">
123
- Generated on Tue Apr 24 11:15:45 2012 by
123
+ Generated on Wed Apr 25 16:51:30 2012 by
124
124
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
125
125
  0.7.5 (ruby-1.9.3).
126
126
  </div>
@@ -4,7 +4,7 @@
4
4
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
5
  <head>
6
6
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
7
- <title>Mocha 0.11.2</title>
7
+ <title>Mocha 0.11.3</title>
8
8
  </head>
9
9
  <frameset cols="20%,*">
10
10
  <frame name="list" src="class_list.html" />
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  File: README
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -144,7 +144,7 @@ href="http://www.ruby-lang.org/en/LICENSE.txt">Ruby itself</a> or under the
144
144
  </div></div>
145
145
 
146
146
  <div id="footer">
147
- Generated on Tue Apr 24 11:15:44 2012 by
147
+ Generated on Wed Apr 25 16:51:30 2012 by
148
148
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
149
149
  0.7.5 (ruby-1.9.3).
150
150
  </div>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Top Level Namespace
8
8
 
9
- &mdash; Mocha 0.11.2
9
+ &mdash; Mocha 0.11.3
10
10
 
11
11
  </title>
12
12
 
@@ -96,7 +96,7 @@
96
96
  </div>
97
97
 
98
98
  <div id="footer">
99
- Generated on Tue Apr 24 11:15:45 2012 by
99
+ Generated on Wed Apr 25 16:51:31 2012 by
100
100
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
101
101
  0.7.5 (ruby-1.9.3).
102
102
  </div>
@@ -36,7 +36,7 @@ module Mocha
36
36
  def hide_original_method
37
37
  if method_exists?(method)
38
38
  begin
39
- @original_method = stubbee.__method__(method)
39
+ @original_method = stubbee._method(method)
40
40
  if @original_method && @original_method.owner == stubbee.__metaclass__
41
41
  @original_visibility = :public
42
42
  if stubbee.__metaclass__.protected_instance_methods.include?(method)
@@ -13,7 +13,7 @@ module Mocha
13
13
  module ObjectMethods
14
14
 
15
15
  # @private
16
- alias_method :__method__, :method
16
+ alias_method :_method, :method
17
17
 
18
18
  # @private
19
19
  def mocha
@@ -1,3 +1,3 @@
1
1
  module Mocha
2
- VERSION = "0.11.2"
2
+ VERSION = "0.11.3"
3
3
  end
@@ -86,7 +86,7 @@ class ObjectTest < Test::Unit::TestCase
86
86
 
87
87
  def test_should_alias_object_method
88
88
  klass = Class.new { def self.method_x; end }
89
- assert_equal klass.__method__(:method_x), klass.method(:method_x)
89
+ assert_equal klass._method(:method_x), klass.method(:method_x)
90
90
  end
91
91
 
92
92
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.2
4
+ version: 0.11.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-24 00:00:00.000000000 Z
12
+ date: 2012-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: metaclass
16
- requirement: &70329822526040 !ruby/object:Gem::Requirement
16
+ requirement: &70206627822160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70329822526040
24
+ version_requirements: *70206627822160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70329822524720 !ruby/object:Gem::Requirement
27
+ requirement: &70206627820840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70329822524720
35
+ version_requirements: *70206627820840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: introspection
38
- requirement: &70329822524260 !ruby/object:Gem::Requirement
38
+ requirement: &70206627820380 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.1
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70329822524260
46
+ version_requirements: *70206627820380
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yard
49
- requirement: &70329822523880 !ruby/object:Gem::Requirement
49
+ requirement: &70206627820000 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70329822523880
57
+ version_requirements: *70206627820000
58
58
  description: Mocking and stubbing library with JMock/SchMock syntax, which allows
59
59
  mocking and stubbing of methods on real (non-mock) classes.
60
60
  email: mocha-developer@googlegroups.com
@@ -361,7 +361,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
361
361
  version: '0'
362
362
  segments:
363
363
  - 0
364
- hash: 1567730914725211734
364
+ hash: 2513741886646304235
365
365
  required_rubygems_version: !ruby/object:Gem::Requirement
366
366
  none: false
367
367
  requirements: