rally-jasmine-core 1.2.0.2 → 1.2.0.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.
@@ -167,6 +167,20 @@ jasmine.isA_ = function(typeName, value) {
167
167
  return Object.prototype.toString.apply(value) === '[object ' + typeName + ']';
168
168
  };
169
169
 
170
+ jasmine.StringifyPrinter = function() {
171
+ };
172
+
173
+ jasmine.StringifyPrinter.prototype = {
174
+ format: function(value) {
175
+ try {
176
+ this.string = JSON.stringify(value);
177
+ } catch(e) {
178
+ this.string = toString.call(value);
179
+ }
180
+ }
181
+ };
182
+
183
+
170
184
  /**
171
185
  * Pretty printer for expecations. Takes any object and turns it into a human-readable string.
172
186
  *
@@ -174,9 +188,10 @@ jasmine.isA_ = function(typeName, value) {
174
188
  * @returns {String}
175
189
  */
176
190
  jasmine.pp = function(value) {
177
- var stringPrettyPrinter = new jasmine.StringPrettyPrinter();
178
- stringPrettyPrinter.format(value);
179
- return stringPrettyPrinter.string;
191
+ var stringifyPrinter = new jasmine.StringifyPrinter();
192
+ stringifyPrinter.format(value);
193
+
194
+ return stringifyPrinter.string;
180
195
  };
181
196
 
182
197
  /**
@@ -1,6 +1,6 @@
1
1
  module Jasmine
2
2
  module Core
3
- VERSION = "1.2.0.2"
3
+ VERSION = "1.2.0.3"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rally-jasmine-core
3
3
  version: !ruby/object:Gem::Version
4
- hash: 75
4
+ hash: 73
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
9
  - 0
10
- - 2
11
- version: 1.2.0.2
10
+ - 3
11
+ version: 1.2.0.3
12
12
  platform: ruby
13
13
  authors:
14
14
  - Matt Parrish
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2013-01-24 00:00:00 Z
22
+ date: 2013-07-17 00:00:00 Z
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
25
25
  version_requirements: &id001 !ruby/object:Gem::Requirement