json-canonicalization 0.3.3 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/json/canonicalization.rb +3 -3
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7dcd0b16682dd76c8a043dc88fbab1c09cd40ef1a95852444febb0ede1735c9
|
4
|
+
data.tar.gz: 94f5049188158f93c4eab4ed4526a23ed19f88b8ed6e6d842a08ca0bc47ebeef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f0d7c61fd4ffc88c3d8822a549ae10d2c2b9c60215ccc756ae95228ace64f9629b046b460e3f3f05ce487961df264c7648c829010af88de1dd549e2782a29d
|
7
|
+
data.tar.gz: 020a1135b3d7dba6d10d39ebd545c7dd266efda4bd0ae75066ca76a51fe73de0fcd7ea914434f783d16d73bd9a2d1070ef0f425f3c910435dfc86bc85a6f2295
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
@@ -15,7 +15,7 @@ class Object
|
|
15
15
|
# Default canonicalization output for Ruby objects
|
16
16
|
# @return [String]
|
17
17
|
def to_json_c14n
|
18
|
-
self
|
18
|
+
::JSON.generate(self)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
@@ -86,7 +86,7 @@ class String
|
|
86
86
|
# Output JSON with control characters escaped
|
87
87
|
# @return [String]
|
88
88
|
def to_json_c14n
|
89
|
-
self
|
89
|
+
::JSON.generate(self)
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
@@ -94,6 +94,6 @@ class Symbol
|
|
94
94
|
# Output JSON with control characters escaped
|
95
95
|
# @return [String]
|
96
96
|
def to_json_c14n
|
97
|
-
self
|
97
|
+
::JSON.generate(self)
|
98
98
|
end
|
99
99
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-canonicalization
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregg Kellogg
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|