Skip to content

Commit

Permalink
Update to version 16 of the spec (no functional changes).
Browse files Browse the repository at this point in the history
Change minimum ruby version to 2.4.
Version 0.2.0.
  • Loading branch information
gkellogg committed Dec 19, 2019
1 parent 7bd884e commit c25becd
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 15 deletions.
7 changes: 1 addition & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
language: ruby
bundler_args: --without debug
script: "bundle exec rspec spec"
before_install:
- 'gem update --system --conservative || (gem i "rubygems-update:~>2.7" --no-document && update_rubygems)'
- 'gem update bundler --conservative'
env:
- CI=true
rvm:
- 2.2.2
- 2.3
- 2.4
- 2.5
- 2.6
- 2.7
- jruby
- rbx-3
cache: bundler
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ source "https://rubygems.org"
gemspec

group :development, :test do
gem 'simplecov', require: false, platform: :mri
gem 'coveralls', require: false, platform: :mri
gem 'simplecov', platforms: :mri
gem 'coveralls', '~> 0.8', platforms: :mri
gem 'benchmark-ips'
gem 'rake'
end
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ constraining JSON data to the<br>I-JSON [[RFC7493](https://tools.ietf.org/html//
and through a platform independent property sorting scheme.

Working document: https://cyberphone.github.io/ietf-json-canon<br>
Published IETF Draft: https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-05
Published IETF Draft: https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-16

The JSON Canonicalization Scheme concept in a nutshell:
- Serialization of primitive JSON data types using methods compatible with ECMAScript's `JSON.stringify()`
Expand All @@ -30,7 +30,8 @@ The JSON Canonicalization Scheme concept in a nutshell:
### Sample Input:
```code
{
"numbers": [333333333.33333329, 1E30, 4.50, 2e-3, 0.000000000000000000000000001],
"numbers": [333333333.33333329, 1E30, 4.50,
2e-3, 0.000000000000000000000000001],
"string": "\u20ac$\u000F\u000aA'\u0042\u0022\u005c\\\"\/",
"literals": [null, true, false]
}
Expand Down Expand Up @@ -66,8 +67,8 @@ Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-canonica
* {JSON::Canonicalization}

## Dependencies
* [Ruby](http://ruby-lang.org/) (>= 2.2.2)
* [JSON](https://rubygems.org/gems/json) (>= 2.1)
* [Ruby](http://ruby-lang.org/) (>= 2.4)
* [JSON](https://rubygems.org/gems/json) (>= 2.3)

## Author
* [Gregg Kellogg](http://github.com/gkellogg) - <http://kellogg-assoc.com/>
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0
4 changes: 2 additions & 2 deletions json-canonicalization.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Gem::Specification.new do |gem|
gem.files = %w(AUTHORS README.md LICENSE VERSION) + Dir.glob('lib/**/*.rb')
gem.test_files = Dir.glob('spec/**/*.rb') + Dir.glob('spec/**/*.json')

gem.required_ruby_version = '>= 2.2.2'
gem.required_ruby_version = '>= 2.4'
gem.requirements = []
gem.add_development_dependency 'rspec', '~> 3.8'
gem.add_development_dependency 'rspec', '~> 3.9'
gem.add_development_dependency 'yard' , '~> 0.9'

gem.post_install_message = nil
Expand Down
1 change: 1 addition & 0 deletions spec/number_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
9007199254740996 => '9007199254740996',
999999999999999700000 => '999999999999999700000',
999999999999999900000 => '999999999999999900000',
333333333.33333329 => '333333333.3333333',
# -5e-324 => '-5e-324', # Outside Ruby Range
# 1.0000000000000001e+23 => '1.0000000000000001e+23', # Outside Ruby Range
# 295147905179352830000 => '295147905179352830000', # Outside Ruby Range
Expand Down

0 comments on commit c25becd

Please sign in to comment.