Skip to content

Commit 3d80604

Browse files
committed
Finish 0.2.0
2 parents 1cbd2c7 + c25becd commit 3d80604

File tree

6 files changed

+12
-15
lines changed

6 files changed

+12
-15
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
language: ruby
2-
bundler_args: --without debug
32
script: "bundle exec rspec spec"
4-
before_install:
5-
- 'gem update --system --conservative || (gem i "rubygems-update:~>2.7" --no-document && update_rubygems)'
6-
- 'gem update bundler --conservative'
73
env:
84
- CI=true
95
rvm:
10-
- 2.2.2
11-
- 2.3
126
- 2.4
137
- 2.5
148
- 2.6
9+
- 2.7
1510
- jruby
1611
- rbx-3
1712
cache: bundler

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ source "https://rubygems.org"
22
gemspec
33

44
group :development, :test do
5-
gem 'simplecov', require: false, platform: :mri
6-
gem 'coveralls', require: false, platform: :mri
5+
gem 'simplecov', platforms: :mri
6+
gem 'coveralls', '~> 0.8', platforms: :mri
77
gem 'benchmark-ips'
88
gem 'rake'
99
end

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ constraining JSON data to the<br>I-JSON [[RFC7493](https://tools.ietf.org/html//
2020
and through a platform independent property sorting scheme.
2121

2222
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
2424

2525
The JSON Canonicalization Scheme concept in a nutshell:
2626
- 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:
3030
### Sample Input:
3131
```code
3232
{
33-
"numbers": [333333333.33333329, 1E30, 4.50, 2e-3, 0.000000000000000000000000001],
33+
"numbers": [333333333.33333329, 1E30, 4.50,
34+
2e-3, 0.000000000000000000000000001],
3435
"string": "\u20ac$\u000F\u000aA'\u0042\u0022\u005c\\\"\/",
3536
"literals": [null, true, false]
3637
}
@@ -66,8 +67,8 @@ Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-canonica
6667
* {JSON::Canonicalization}
6768

6869
## 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)
7172

7273
## Author
7374
* [Gregg Kellogg](http://github.com/gkellogg) - <http://kellogg-assoc.com/>

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.2.0

json-canonicalization.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Gem::Specification.new do |gem|
1717
gem.files = %w(AUTHORS README.md LICENSE VERSION) + Dir.glob('lib/**/*.rb')
1818
gem.test_files = Dir.glob('spec/**/*.rb') + Dir.glob('spec/**/*.json')
1919

20-
gem.required_ruby_version = '>= 2.2.2'
20+
gem.required_ruby_version = '>= 2.4'
2121
gem.requirements = []
22-
gem.add_development_dependency 'rspec', '~> 3.8'
22+
gem.add_development_dependency 'rspec', '~> 3.9'
2323
gem.add_development_dependency 'yard' , '~> 0.9'
2424

2525
gem.post_install_message = nil

spec/number_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
9007199254740996 => '9007199254740996',
1717
999999999999999700000 => '999999999999999700000',
1818
999999999999999900000 => '999999999999999900000',
19+
333333333.33333329 => '333333333.3333333',
1920
# -5e-324 => '-5e-324', # Outside Ruby Range
2021
# 1.0000000000000001e+23 => '1.0000000000000001e+23', # Outside Ruby Range
2122
# 295147905179352830000 => '295147905179352830000', # Outside Ruby Range

0 commit comments

Comments
 (0)