json-canonicalization 0.3.0 → 0.4.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.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/VERSION +1 -1
- data/lib/json/canonicalization.rb +3 -4
- data/spec/spec_helper.rb +2 -0
- metadata +10 -6
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/README.md
CHANGED
@@ -3,7 +3,7 @@ An implementation of the JSON Canonicalization Scheme for Ruby
|
|
3
3
|
|
4
4
|
Implements [RFC8785](https://datatracker.ietf.org/doc/html/rfc8785) (JSON Canonicalization Scheme) in Ruby.
|
5
5
|
|
6
|
-
[](http://badge.fury.io/rb/json-canonicalization)
|
7
7
|
[](https://github.com/dryruby/json-canonicalization/actions?query=workflow%3ACI)
|
8
8
|
[](https://coveralls.io/r/dryruby/json-canonicalization)
|
9
9
|
|
@@ -60,17 +60,17 @@ puts data.to_json_c14n
|
|
60
60
|
```
|
61
61
|
|
62
62
|
## Documentation
|
63
|
-
Full documentation available on [
|
63
|
+
Full documentation available on [GitHub](https://dryruby.github.io/json-canonicalization/)
|
64
64
|
|
65
65
|
### Principal Classes
|
66
66
|
* {JSON::Canonicalization}
|
67
67
|
|
68
68
|
## Dependencies
|
69
|
-
* [Ruby](http://ruby-lang.org/) (>=
|
69
|
+
* [Ruby](http://ruby-lang.org/) (>= 3.0)
|
70
70
|
* [JSON](https://rubygems.org/gems/json) (>= 2.6)
|
71
71
|
|
72
72
|
## Author
|
73
|
-
* [Gregg Kellogg](
|
73
|
+
* [Gregg Kellogg](https://github.com/gkellogg) - <https://greggkellogg.net/>
|
74
74
|
|
75
75
|
## Contributing
|
76
76
|
* Do your best to adhere to the existing coding conventions and idioms.
|
@@ -89,7 +89,7 @@ Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-canonica
|
|
89
89
|
## License
|
90
90
|
|
91
91
|
This is free and unencumbered public domain software. For more information,
|
92
|
-
see <https://unlicense.org/> or the accompanying {file:
|
92
|
+
see <https://unlicense.org/> or the accompanying {file:LICENSE} file.
|
93
93
|
|
94
94
|
[YARD]: https://yardoc.org/
|
95
95
|
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md
|
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,7 +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
|
100
|
-
|
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:
|
11
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.12'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.12'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: yard
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,7 +68,11 @@ files:
|
|
68
68
|
homepage: http://github.com/dryruby/json-canonicalization
|
69
69
|
licenses:
|
70
70
|
- Unlicense
|
71
|
-
metadata:
|
71
|
+
metadata:
|
72
|
+
documentation_uri: https://dryruby.github.io/json-canonicalization
|
73
|
+
bug_tracker_uri: https://github.com/dryruby/json-canonicalization/issues
|
74
|
+
homepage_uri: https://github.com/dryruby/json-canonicalization
|
75
|
+
source_code_uri: https://github.com/dryruby/json-canonicalization
|
72
76
|
post_install_message:
|
73
77
|
rdoc_options: []
|
74
78
|
require_paths:
|
@@ -84,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: '0'
|
86
90
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
91
|
+
rubygems_version: 3.4.19
|
88
92
|
signing_key:
|
89
93
|
specification_version: 4
|
90
94
|
summary: JSON Canonicalization for Ruby.
|