Skip to content

Commit 3a7cda2

Browse files
committed
Finish 0.3.2
2 parents 6ba3203 + 82def34 commit 3a7cda2

File tree

6 files changed

+11
-15
lines changed

6 files changed

+11
-15
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,10 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
ruby:
23-
- 2.6
24-
- 2.7
25-
- "3.0"
26-
- 3.1
27-
- ruby-head
28-
- jruby
22+
ruby: [2.6, 2.7, '3.0', 3.1, 3.2, ruby-head, jruby]
2923
steps:
3024
- name: Clone repository
31-
uses: actions/checkout@v2
25+
uses: actions/checkout@v3
3226
- name: Set up Ruby
3327
uses: ruby/setup-ruby@v1
3428
with:
@@ -38,7 +32,7 @@ jobs:
3832
- name: Run tests
3933
run: ruby --version; bundle exec rspec spec || $ALLOW_FAILURES
4034
- name: Coveralls GitHub Action
41-
uses: coverallsapp/github-action@v1.1.2
35+
uses: coverallsapp/github-action@master
4236
if: "matrix.ruby == '3.0'"
4337
with:
4438
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/generate-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Update gh-pages with docs
1111
steps:
1212
- name: Clone repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: Set up Ruby
1515
uses: ruby/setup-ruby@v1
1616
with:

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ group :development, :test do
66
gem 'simplecov-lcov', '~> 0.8', platforms: :mri
77
gem 'benchmark-ips'
88
gem 'rake'
9+
gem 'activesupport'
910
end
1011

1112
group :debug do

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.1
1+
0.3.2

lib/json/canonicalization.rb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Object
1515
# Default canonicalization output for Ruby objects
1616
# @return [String]
1717
def to_json_c14n
18-
self.to_json
18+
::JSON.generate(self)
1919
end
2020
end
2121

@@ -86,15 +86,14 @@ class String
8686
# Output JSON with control characters escaped
8787
# @return [String]
8888
def to_json_c14n
89-
self.to_json
89+
::JSON.generate(self)
9090
end
9191
end
9292

9393
class Symbol
9494
# Output JSON with control characters escaped
9595
# @return [String]
9696
def to_json_c14n
97-
self.to_json
97+
::JSON.generate(self)
9898
end
9999
end
100-

spec/spec_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
require "bundler/setup"
44
require 'rspec'
5+
require 'active_support'
6+
require 'active_support/core_ext'
57

68
begin
79
require 'simplecov'

0 commit comments

Comments
 (0)