json-canonicalization 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/VERSION +1 -1
  4. data/spec/number_spec.rb +1 -0
  5. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75fbded244fc0096ae6a46a90730fbf8a3fe1913d9a58fe60ec9fc91fb238522
4
- data.tar.gz: 817b4072f362414762a9cb19eec0551dab9c4290bc8720640faedb050ff64b75
3
+ metadata.gz: 66915275dc8d722863b8a3e5a3badc5a0cf22647067d45cc63c808d6be899416
4
+ data.tar.gz: cd986da5df2e6a77117f58649f7f1feda74086fc39023feccd076bdeb4bb9289
5
5
  SHA512:
6
- metadata.gz: 5b8cf4b810ce1ca14b30232cd172d9bb3350b9d0aaaefd7c02cacad1fdb47c87ec7f88091b51c86621319bbeb59df53be34dcb81743b8a70307a90678a19862e
7
- data.tar.gz: fc41d6154f7fb136396028f6c03ca3bfbb6e0ce65a676990773ad3361eef48c868990196b63ba790a57e537e12096ac8997036eefc7a7ab1773a94f4672fafcc
6
+ metadata.gz: 8d4159400a56fd4694425f0146b1b49ffe9e8852f1d3e65326cec02182021c35cedff2ef7700858b308928809fa227850a2a4e9066d25215f13406975a4e3072
7
+ data.tar.gz: 8a7f3e5a1571d9cb4637cfdfa82ae8c3133a7476c5c5923b963d23578c534a384269b8f81ea5916037d422bc702bfc68d62dc534d3dce84192ce603bf20219d7
data/README.md CHANGED
@@ -20,7 +20,7 @@ constraining JSON data to the<br>I-JSON [[RFC7493](https://tools.ietf.org/html//
20
20
  and through a platform independent property sorting scheme.
21
21
 
22
22
  Working document: https://cyberphone.github.io/ietf-json-canon<br>
23
- Published IETF Draft: https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-05
23
+ Published IETF Draft: https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-16
24
24
 
25
25
  The JSON Canonicalization Scheme concept in a nutshell:
26
26
  - Serialization of primitive JSON data types using methods compatible with ECMAScript's `JSON.stringify()`
@@ -30,7 +30,8 @@ The JSON Canonicalization Scheme concept in a nutshell:
30
30
  ### Sample Input:
31
31
  ```code
32
32
  {
33
- "numbers": [333333333.33333329, 1E30, 4.50, 2e-3, 0.000000000000000000000000001],
33
+ "numbers": [333333333.33333329, 1E30, 4.50,
34
+ 2e-3, 0.000000000000000000000000001],
34
35
  "string": "\u20ac$\u000F\u000aA'\u0042\u0022\u005c\\\"\/",
35
36
  "literals": [null, true, false]
36
37
  }
@@ -66,8 +67,8 @@ Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-canonica
66
67
  * {JSON::Canonicalization}
67
68
 
68
69
  ## Dependencies
69
- * [Ruby](http://ruby-lang.org/) (>= 2.2.2)
70
- * [JSON](https://rubygems.org/gems/json) (>= 2.1)
70
+ * [Ruby](http://ruby-lang.org/) (>= 2.4)
71
+ * [JSON](https://rubygems.org/gems/json) (>= 2.3)
71
72
 
72
73
  ## Author
73
74
  * [Gregg Kellogg](http://github.com/gkellogg) - <http://kellogg-assoc.com/>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.2.0
@@ -16,6 +16,7 @@ describe "conversions" do
16
16
  9007199254740996 => '9007199254740996',
17
17
  999999999999999700000 => '999999999999999700000',
18
18
  999999999999999900000 => '999999999999999900000',
19
+ 333333333.33333329 => '333333333.3333333',
19
20
  # -5e-324 => '-5e-324', # Outside Ruby Range
20
21
  # 1.0000000000000001e+23 => '1.0000000000000001e+23', # Outside Ruby Range
21
22
  # 295147905179352830000 => '295147905179352830000', # Outside Ruby Range
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.1.0
4
+ version: 0.2.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: 2019-03-19 00:00:00.000000000 Z
11
+ date: 2019-12-19 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.8'
19
+ version: '3.9'
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.8'
26
+ version: '3.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: yard
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -77,14 +77,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - ">="
79
79
  - !ruby/object:Gem::Version
80
- version: 2.2.2
80
+ version: '2.4'
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.0.2
87
+ rubygems_version: 3.0.6
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: JSON Canonicalization for Ruby.