mocha 1.7.0 → 1.8.0

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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/CONTRIBUTING.md +4 -9
  3. data/README.md +17 -16
  4. data/RELEASE.md +10 -0
  5. data/Rakefile +6 -13
  6. data/bin/build-matrix +16 -2
  7. data/docs/CNAME +1 -0
  8. data/docs/Mocha.html +127 -0
  9. data/docs/Mocha/API.html +1056 -0
  10. data/docs/Mocha/ClassMethods.html +267 -0
  11. data/docs/Mocha/Configuration.html +626 -0
  12. data/docs/Mocha/Expectation.html +2709 -0
  13. data/docs/Mocha/ExpectationError.html +157 -0
  14. data/docs/Mocha/ExpectationErrorFactory.html +269 -0
  15. data/docs/Mocha/Hooks.html +385 -0
  16. data/docs/Mocha/Integration.html +125 -0
  17. data/docs/Mocha/Integration/MiniTest.html +123 -0
  18. data/docs/Mocha/Integration/MiniTest/Adapter.html +165 -0
  19. data/docs/Mocha/Integration/TestUnit.html +123 -0
  20. data/docs/Mocha/Integration/TestUnit/Adapter.html +165 -0
  21. data/docs/Mocha/Mock.html +1197 -0
  22. data/docs/Mocha/ObjectMethods.html +712 -0
  23. data/docs/Mocha/ParameterMatchers.html +3049 -0
  24. data/docs/Mocha/ParameterMatchers/AllOf.html +154 -0
  25. data/docs/Mocha/ParameterMatchers/AnyOf.html +154 -0
  26. data/docs/Mocha/ParameterMatchers/AnyParameters.html +153 -0
  27. data/docs/Mocha/ParameterMatchers/Anything.html +153 -0
  28. data/docs/Mocha/ParameterMatchers/Base.html +448 -0
  29. data/docs/Mocha/ParameterMatchers/Equals.html +154 -0
  30. data/docs/Mocha/ParameterMatchers/EquivalentUri.html +153 -0
  31. data/docs/Mocha/ParameterMatchers/HasEntries.html +154 -0
  32. data/docs/Mocha/ParameterMatchers/HasEntry.html +154 -0
  33. data/docs/Mocha/ParameterMatchers/HasKey.html +154 -0
  34. data/docs/Mocha/ParameterMatchers/HasValue.html +154 -0
  35. data/docs/Mocha/ParameterMatchers/Includes.html +154 -0
  36. data/docs/Mocha/ParameterMatchers/InstanceOf.html +154 -0
  37. data/docs/Mocha/ParameterMatchers/IsA.html +153 -0
  38. data/docs/Mocha/ParameterMatchers/KindOf.html +154 -0
  39. data/docs/Mocha/ParameterMatchers/Not.html +154 -0
  40. data/docs/Mocha/ParameterMatchers/Optionally.html +153 -0
  41. data/docs/Mocha/ParameterMatchers/RegexpMatches.html +154 -0
  42. data/docs/Mocha/ParameterMatchers/RespondsWith.html +154 -0
  43. data/docs/Mocha/ParameterMatchers/YamlEquivalent.html +154 -0
  44. data/docs/Mocha/Sequence.html +149 -0
  45. data/docs/Mocha/StateMachine.html +539 -0
  46. data/docs/Mocha/StateMachine/State.html +141 -0
  47. data/docs/Mocha/StateMachine/StatePredicate.html +141 -0
  48. data/docs/Mocha/StubbingError.html +150 -0
  49. data/docs/Mocha/UnexpectedInvocation.html +140 -0
  50. data/docs/_index.html +537 -0
  51. data/docs/class_list.html +51 -0
  52. data/docs/css/common.css +1 -0
  53. data/docs/css/full_list.css +58 -0
  54. data/docs/css/style.css +496 -0
  55. data/docs/file.COPYING.html +81 -0
  56. data/docs/file.MIT-LICENSE.html +85 -0
  57. data/docs/file.README.html +418 -0
  58. data/docs/file.RELEASE.html +875 -0
  59. data/docs/file_list.html +71 -0
  60. data/docs/frames.html +17 -0
  61. data/docs/index.html +418 -0
  62. data/docs/js/app.js +292 -0
  63. data/docs/js/full_list.js +216 -0
  64. data/docs/js/jquery.js +4 -0
  65. data/docs/method_list.html +571 -0
  66. data/docs/top-level-namespace.html +118 -0
  67. data/lib/mocha/inspect.rb +1 -1
  68. data/lib/mocha/version.rb +1 -1
  69. data/mocha.gemspec +2 -3
  70. data/test/unit/object_inspect_test.rb +10 -0
  71. data/yard-templates/default/layout/html/google_analytics.erb +6 -9
  72. metadata +68 -36
@@ -0,0 +1,118 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Top Level Namespace
8
+
9
+ &mdash; Mocha 1.8.0
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index</a> &raquo;
40
+
41
+
42
+ <span class="title">Top Level Namespace</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Top Level Namespace
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+ </div>
80
+
81
+ <h2>Defined Under Namespace</h2>
82
+ <p class="children">
83
+
84
+
85
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Mocha.html" title="Mocha (module)">Mocha</a></span>
86
+
87
+
88
+
89
+
90
+ </p>
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <script async src="https://www.googletagmanager.com/gtag/js?id=UA-625523-7"></script>
101
+ <script>
102
+ window.dataLayer = window.dataLayer || [];
103
+ function gtag(){dataLayer.push(arguments);}
104
+ gtag('js', new Date());
105
+
106
+ gtag('config', 'UA-625523-7');
107
+ </script>
108
+ </div>
109
+
110
+ <div id="footer">
111
+ Generated on Tue Jan 15 17:13:05 2019 by
112
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
113
+ 0.9.16 (ruby-2.5.3).
114
+ </div>
115
+
116
+ </div>
117
+ </body>
118
+ </html>
@@ -5,7 +5,7 @@ module Mocha
5
5
  def mocha_inspect
6
6
  address = __id__ * 2
7
7
  address += 0x100000000 if address < 0
8
- inspect =~ /#</ ? "#<#{self.class}:0x#{format('%x', address)}>" : inspect
8
+ inspect =~ /#</ ? "#<#{self.class}:0x#{Kernel.format('%x', address)}>" : inspect
9
9
  end
10
10
  end
11
11
 
@@ -1,3 +1,3 @@
1
1
  module Mocha
2
- VERSION = '1.7.0'.freeze
2
+ VERSION = '1.8.0'.freeze
3
3
  end
@@ -16,10 +16,9 @@ Gem::Specification.new do |s|
16
16
  s.files.delete('.travis.yml')
17
17
  s.files.delete('.gitignore')
18
18
 
19
- s.homepage = 'http://gofreerange.com/mocha/docs'
19
+ s.homepage = 'https://mocha.jamesmead.org'
20
20
  s.require_paths = ['lib']
21
21
  s.summary = 'Mocking and stubbing library'
22
- s.has_rdoc = 'yard'
23
22
 
24
23
  s.add_dependency('metaclass', '~> 0.0.1')
25
24
 
@@ -43,7 +42,7 @@ Gem::Specification.new do |s|
43
42
  s.add_development_dependency('minitest')
44
43
  end
45
44
  if RUBY_VERSION >= '1.9.2'
46
- s.add_development_dependency('rubocop')
45
+ s.add_development_dependency('rubocop', '<= 0.58.2')
47
46
  end
48
47
  if ENV['MOCHA_GENERATE_DOCS']
49
48
  s.add_development_dependency('redcarpet')
@@ -45,4 +45,14 @@ class ObjectInspectTest < Mocha::TestCase
45
45
 
46
46
  assert_equal [:__id__], calls.uniq
47
47
  end
48
+
49
+ def test_should_not_call_object_instance_format_method
50
+ object = Object.new
51
+ class << object
52
+ def format(*)
53
+ 'internal_format'
54
+ end
55
+ end
56
+ assert_no_match(/internal_format/, object.mocha_inspect)
57
+ end
48
58
  end
@@ -1,11 +1,8 @@
1
- <script src="/javascripts/app.js" type="text/javascript" charset="utf-8"></script>
2
-
1
+ <script async src="https://www.googletagmanager.com/gtag/js?id=<%= ENV['GOOGLE_ANALYTICS_WEB_PROPERTY_ID'] %>"></script>
3
2
  <script>
4
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
5
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
6
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
7
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
3
+ window.dataLayer = window.dataLayer || [];
4
+ function gtag(){dataLayer.push(arguments);}
5
+ gtag('js', new Date());
8
6
 
9
- ga('create', '<%= ENV['GOOGLE_ANALYTICS_WEB_PROPERTY_ID'] %>', 'gofreerange.com');
10
- ga('send', 'pageview');
11
- </script>
7
+ gtag('config', '<%= ENV['GOOGLE_ANALYTICS_WEB_PROPERTY_ID'] %>');
8
+ </script>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mocha
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Mead
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: metaclass
@@ -70,44 +70,16 @@ dependencies:
70
70
  name: rubocop
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
- - !ruby/object:Gem::Dependency
84
- name: redcarpet
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - ">="
88
- - !ruby/object:Gem::Version
89
- version: '0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
73
+ - - "<="
95
74
  - !ruby/object:Gem::Version
96
- version: '0'
97
- - !ruby/object:Gem::Dependency
98
- name: yard
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
75
+ version: 0.58.2
104
76
  type: :development
105
77
  prerelease: false
106
78
  version_requirements: !ruby/object:Gem::Requirement
107
79
  requirements:
108
- - - ">="
80
+ - - "<="
109
81
  - !ruby/object:Gem::Version
110
- version: '0'
82
+ version: 0.58.2
111
83
  description: Mocking and stubbing library with JMock/SchMock syntax, which allows
112
84
  mocking and stubbing of methods on real (non-mock) classes.
113
85
  email: mocha-developer@googlegroups.com
@@ -127,6 +99,66 @@ files:
127
99
  - RELEASE.md
128
100
  - Rakefile
129
101
  - bin/build-matrix
102
+ - docs/CNAME
103
+ - docs/Mocha.html
104
+ - docs/Mocha/API.html
105
+ - docs/Mocha/ClassMethods.html
106
+ - docs/Mocha/Configuration.html
107
+ - docs/Mocha/Expectation.html
108
+ - docs/Mocha/ExpectationError.html
109
+ - docs/Mocha/ExpectationErrorFactory.html
110
+ - docs/Mocha/Hooks.html
111
+ - docs/Mocha/Integration.html
112
+ - docs/Mocha/Integration/MiniTest.html
113
+ - docs/Mocha/Integration/MiniTest/Adapter.html
114
+ - docs/Mocha/Integration/TestUnit.html
115
+ - docs/Mocha/Integration/TestUnit/Adapter.html
116
+ - docs/Mocha/Mock.html
117
+ - docs/Mocha/ObjectMethods.html
118
+ - docs/Mocha/ParameterMatchers.html
119
+ - docs/Mocha/ParameterMatchers/AllOf.html
120
+ - docs/Mocha/ParameterMatchers/AnyOf.html
121
+ - docs/Mocha/ParameterMatchers/AnyParameters.html
122
+ - docs/Mocha/ParameterMatchers/Anything.html
123
+ - docs/Mocha/ParameterMatchers/Base.html
124
+ - docs/Mocha/ParameterMatchers/Equals.html
125
+ - docs/Mocha/ParameterMatchers/EquivalentUri.html
126
+ - docs/Mocha/ParameterMatchers/HasEntries.html
127
+ - docs/Mocha/ParameterMatchers/HasEntry.html
128
+ - docs/Mocha/ParameterMatchers/HasKey.html
129
+ - docs/Mocha/ParameterMatchers/HasValue.html
130
+ - docs/Mocha/ParameterMatchers/Includes.html
131
+ - docs/Mocha/ParameterMatchers/InstanceOf.html
132
+ - docs/Mocha/ParameterMatchers/IsA.html
133
+ - docs/Mocha/ParameterMatchers/KindOf.html
134
+ - docs/Mocha/ParameterMatchers/Not.html
135
+ - docs/Mocha/ParameterMatchers/Optionally.html
136
+ - docs/Mocha/ParameterMatchers/RegexpMatches.html
137
+ - docs/Mocha/ParameterMatchers/RespondsWith.html
138
+ - docs/Mocha/ParameterMatchers/YamlEquivalent.html
139
+ - docs/Mocha/Sequence.html
140
+ - docs/Mocha/StateMachine.html
141
+ - docs/Mocha/StateMachine/State.html
142
+ - docs/Mocha/StateMachine/StatePredicate.html
143
+ - docs/Mocha/StubbingError.html
144
+ - docs/Mocha/UnexpectedInvocation.html
145
+ - docs/_index.html
146
+ - docs/class_list.html
147
+ - docs/css/common.css
148
+ - docs/css/full_list.css
149
+ - docs/css/style.css
150
+ - docs/file.COPYING.html
151
+ - docs/file.MIT-LICENSE.html
152
+ - docs/file.README.html
153
+ - docs/file.RELEASE.html
154
+ - docs/file_list.html
155
+ - docs/frames.html
156
+ - docs/index.html
157
+ - docs/js/app.js
158
+ - docs/js/full_list.js
159
+ - docs/js/jquery.js
160
+ - docs/method_list.html
161
+ - docs/top-level-namespace.html
130
162
  - gemfiles/Gemfile.minitest.1.3.0
131
163
  - gemfiles/Gemfile.minitest.1.4.0
132
164
  - gemfiles/Gemfile.minitest.1.4.1
@@ -376,7 +408,7 @@ files:
376
408
  - test/unit/yield_parameters_test.rb
377
409
  - yard-templates/default/layout/html/google_analytics.erb
378
410
  - yard-templates/default/layout/html/setup.rb
379
- homepage: http://gofreerange.com/mocha/docs
411
+ homepage: https://mocha.jamesmead.org
380
412
  licenses:
381
413
  - MIT
382
414
  - BSD-2-Clause
@@ -397,7 +429,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
397
429
  version: '0'
398
430
  requirements: []
399
431
  rubyforge_project:
400
- rubygems_version: 2.7.3
432
+ rubygems_version: 2.7.6
401
433
  signing_key:
402
434
  specification_version: 4
403
435
  summary: Mocking and stubbing library