json-canonicalization 0.3.0 → 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: 32dd1e70c30f500a37924e9f9d5aa3504b6216dd538932d29433eda89d7bba47
4
- data.tar.gz: 61edf1fdea0e9f6cab3a1d31f6a8456c0b9aeb952a2237736d3b112c6f4cf4c3
3
+ metadata.gz: c7dcd0b16682dd76c8a043dc88fbab1c09cd40ef1a95852444febb0ede1735c9
4
+ data.tar.gz: 94f5049188158f93c4eab4ed4526a23ed19f88b8ed6e6d842a08ca0bc47ebeef
5
5
  SHA512:
6
- metadata.gz: 5784359f766c10bd2067d77f2ff2f20e8cde8e33a1176c508364fce09af2c61fddc48d97152700f04bf0469d3aac6ce530fc6729a5ae9ec04a4402868a052b96
7
- data.tar.gz: 0d91294d4df5f3531107e133682b48fe16911f7a6c2fad27ba74f8adc1bda811080b5f1724fcaed02e7714849bad8a80c8df5aeb83cc940ce1ed557df9efb122
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
- [![Gem Version](https://badge.fury.io/rb/json-canonicalization.png)](http://badge.fury.io/rb/json-canonicalization)
6
+ [![Gem Version](https://badge.fury.io/rb/json-canonicalization.svg)](http://badge.fury.io/rb/json-canonicalization)
7
7
  [![Build Status](https://github.com/dryruby/json-canonicalization/workflows/CI/badge.svg?branch=develop)](https://github.com/dryruby/json-canonicalization/actions?query=workflow%3ACI)
8
8
  [![Coverage Status](https://coveralls.io/repos/dryruby/json-canonicalization/badge.svg)](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 [RubyDoc](http://rubydoc.info/gems/json-canonicalization/file/README.md)
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/) (>= 2.6)
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](http://github.com/gkellogg) - <http://kellogg-assoc.com/>
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:UNLICENSE} 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.3.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.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,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.to_json
97
+ ::JSON.generate(self)
98
98
  end
99
99
  end
100
-
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.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: 2021-12-12 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
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.10'
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.10'
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.2.22
91
+ rubygems_version: 3.4.19
88
92
  signing_key:
89
93
  specification_version: 4
90
94
  summary: JSON Canonicalization for Ruby.