Skip to content

Commit 39e6064

Browse files
committed
Finish 0.3.0
2 parents 411bf06 + db9f9d0 commit 39e6064

File tree

6 files changed

+26
-16
lines changed

6 files changed

+26
-16
lines changed

.github/workflows/ci.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
runs-on: ubuntu-latest
1616
env:
1717
CI: true
18+
ALLOW_FAILURES: ${{ endsWith(matrix.ruby, 'head') }}
1819
strategy:
1920
fail-fast: false
2021
matrix:
2122
ruby:
22-
- 2.4
23-
- 2.5
2423
- 2.6
2524
- 2.7
25+
- 3.0
2626
- ruby-head
2727
- jruby
2828
steps:
@@ -35,5 +35,9 @@ jobs:
3535
- name: Install dependencies
3636
run: bundle install --jobs 4 --retry 3
3737
- name: Run tests
38-
run: bundle exec rspec spec
39-
38+
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
39+
- name: Coveralls GitHub Action
40+
uses: coverallsapp/[email protected]
41+
if: "matrix.ruby == '3.0'"
42+
with:
43+
github-token: ${{ secrets.GITHUB_TOKEN }}

Gemfile

+2-2
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', platforms: :mri
6-
gem 'coveralls', '~> 0.8', platforms: :mri
5+
gem 'simplecov', '~> 0.21', platforms: :mri
6+
gem 'simplecov-lcov', '~> 0.8', platforms: :mri
77
gem 'benchmark-ips'
88
gem 'rake'
99
end

README.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# json-canonicalization
22
An implementation of the JSON Canonicalization Scheme for Ruby
33

4-
Implements version 5 of [draft-rundgren-json-canonicalization-scheme-05](https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-05#page-5).
4+
Implements [RFC8785](https://datatracker.ietf.org/doc/html/rfc8785) (JSON Canonicalization Scheme) in Ruby.
55

66
[![Gem Version](https://badge.fury.io/rb/json-canonicalization.png)](http://badge.fury.io/rb/json-canonicalization)
77
[![Build Status](https://github.com/dryruby/json-canonicalization/workflows/CI/badge.svg?branch=develop)](https://github.com/dryruby/json-canonicalization/actions?query=workflow%3ACI)
@@ -19,8 +19,7 @@ primitives as defined by ECMAScript [[ES6](https://www.ecma-international.org/ec
1919
constraining JSON data to the<br>I-JSON [[RFC7493](https://tools.ietf.org/html//rfc7493)] subset,
2020
and through a platform independent property sorting scheme.
2121

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-16
22+
RFC: https://datatracker.ietf.org/doc/html/rfc8785
2423

2524
The JSON Canonicalization Scheme concept in a nutshell:
2625
- Serialization of primitive JSON data types using methods compatible with ECMAScript's `JSON.stringify()`
@@ -67,8 +66,8 @@ Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-canonica
6766
* {JSON::Canonicalization}
6867

6968
## Dependencies
70-
* [Ruby](http://ruby-lang.org/) (>= 2.4)
71-
* [JSON](https://rubygems.org/gems/json) (>= 2.3)
69+
* [Ruby](http://ruby-lang.org/) (>= 2.6)
70+
* [JSON](https://rubygems.org/gems/json) (>= 2.6)
7271

7372
## Author
7473
* [Gregg Kellogg](http://github.com/gkellogg) - <http://kellogg-assoc.com/>
@@ -90,7 +89,7 @@ Full documentation available on [RubyDoc](http://rubydoc.info/gems/json-canonica
9089
## License
9190

9291
This is free and unencumbered public domain software. For more information,
93-
see <http://unlicense.org/> or the accompanying {file:UNLICENSE} file.
92+
see <https://unlicense.org/> or the accompanying {file:UNLICENSE} file.
9493

9594
[YARD]: https://yardoc.org/
9695
[YARD-GS]: https://rubydoc.info/docs/yard/file/docs/GettingStarted.md

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.2.1
1+
0.3.0

json-canonicalization.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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.4'
20+
gem.required_ruby_version = '>= 2.6'
2121
gem.requirements = []
2222
gem.add_development_dependency 'rspec', '~> 3.10'
2323
gem.add_development_dependency 'yard' , '~> 0.9'

spec/spec_helper.rb

+9-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55

66
begin
77
require 'simplecov'
8-
require 'coveralls' unless ENV['NOCOVERALLS']
8+
require 'simplecov-lcov'
9+
10+
SimpleCov::Formatter::LcovFormatter.config do |config|
11+
#Coveralls is coverage by default/lcov. Send info results
12+
config.report_with_single_file = true
13+
config.single_report_path = 'coverage/lcov.info'
14+
end
15+
916
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([
1017
SimpleCov::Formatter::HTMLFormatter,
11-
(Coveralls::SimpleCov::Formatter unless ENV['NOCOVERALLS'])
18+
SimpleCov::Formatter::LcovFormatter
1219
])
1320
SimpleCov.start do
1421
add_filter "/spec/"

0 commit comments

Comments
 (0)