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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87ab2bd4065353464b8aaeaf6301bfdb7f0c878b2aaaaa201302d8d1357dba76
4
- data.tar.gz: c6b2e24f88048fbe03feffe429436eeccc2adaa9902d80a38ab2e0986029ddfe
3
+ metadata.gz: c7dcd0b16682dd76c8a043dc88fbab1c09cd40ef1a95852444febb0ede1735c9
4
+ data.tar.gz: 94f5049188158f93c4eab4ed4526a23ed19f88b8ed6e6d842a08ca0bc47ebeef
5
5
  SHA512:
6
- metadata.gz: e79a3a9ac34be60b6eec7cd3e8eb51168584f500d8f5f361d548bcc46e6449ac28baf302af4310d15e8a5c08f18e247defd522d34cadf7083996079040c7b9f1
7
- data.tar.gz: f12a83f2a0ab038eb69d94f66271fe82ea84c3ba04e3feb83541271e88c03d82a9603805368c063474ac2284e5711e15568b62a9ed8eec766910024dbf9ea4fa
6
+ metadata.gz: 83f0d7c61fd4ffc88c3d8822a549ae10d2c2b9c60215ccc756ae95228ace64f9629b046b460e3f3f05ce487961df264c7648c829010af88de1dd549e2782a29d
7
+ data.tar.gz: 020a1135b3d7dba6d10d39ebd545c7dd266efda4bd0ae75066ca76a51fe73de0fcd7ea914434f783d16d73bd9a2d1070ef0f425f3c910435dfc86bc85a6f2295
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
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.to_json
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.to_json
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.to_json
97
+ ::JSON.generate(self)
98
98
  end
99
99
  end
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,8 @@ $:.unshift(File.join("../../lib", __FILE__))
2
2
 
3
3
  require "bundler/setup"
4
4
  require 'rspec'
5
+ require 'active_support'
6
+ require 'active_support/core_ext'
5
7
 
6
8
  begin
7
9
  require 'simplecov'
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.3.3
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-07 00:00:00.000000000 Z
11
+ date: 2023-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec