tidy_json 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3074ee12d1a54599a8c9160fc353c5b7969655296769ddf8c43a6ed0a731af77
4
- data.tar.gz: 8c5b373ec10867f9b2b3c66c8ee1e14e7973cdd7e21fc0c1de6e832affebf600
3
+ metadata.gz: c7fde217f795c9f1609a4932d2db196bf7015d059a90174334ed003e6927c03b
4
+ data.tar.gz: 648caf097fde3915de3646d201a8af60e30f35499582513830acfade258bd1b6
5
5
  SHA512:
6
- metadata.gz: fe1e81b90fb55da164698cb56b45232b64d1fcea274beb64f0ea1762e5eea0728904a3c487172d6bf266755b9f962126277d54b185ea6baf81b7029769bcc894
7
- data.tar.gz: 0a84a04ba5440f12df61b45cbdc86cef16ce5c3dd2b866eacf5249999873e0c204344c20488c3857fd0aa288fedb388e5c195d2aed8b4c1aa53e52f105df362a
6
+ metadata.gz: b9cc4a47f7f4934c56ea76d4a8965c61b7a523bec6900a9c7e686381c3fea780de2daa0d1e3556e7d3cf7eb44c40962bd9b8b03735ed34b0b8fcb1e8fe55a6f4
7
+ data.tar.gz: cc133df7e527c61b46054adaafa02f857a197c3f9572c339fbcd2ed6c64931d21df772c8fb222e0aaa146680d5a6496be05d15ea8f81e18c0c9749ecef7f544d
data/Gemfile CHANGED
@@ -6,6 +6,8 @@ gemspec
6
6
 
7
7
  group :test do
8
8
  gem 'rake'
9
+ gem 'test-unit', '~> 3.4'
10
+ gem 'yard', '~> 0.9'
9
11
  end
10
12
 
11
13
  group :development do
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # tidy_json
2
2
 
3
- ![Gem Version][gem_version_badge] ![Downloads][gem_downloads] [![Travis CI][travis_build_status_badge]][travis_build_status] [![codecov][codecov_badge]][codecov_status]
3
+ ![Gem Version][gem_version_badge] ![Downloads][gem_downloads] [![GH Actions][build_status_badge]][build_status] [![codecov][codecov_badge]][codecov_status]
4
4
 
5
5
  A mixin providing (recursive) JSON serialization and pretty printing.
6
6
 
@@ -136,8 +136,8 @@ More information is available [here](https://raw.githubusercontent.com/jtidy/jti
136
136
  Distributed under the terms of the [MIT License][].
137
137
 
138
138
 
139
- [travis_build_status]: https://app.travis-ci.com/github/rdipardo/tidy_json
140
- [travis_build_status_badge]: https://app.travis-ci.com/rdipardo/tidy_json.svg?branch=master
139
+ [build_status]: https://github.com/rdipardo/tidy_json/actions/workflows/tests.yml
140
+ [build_status_badge]: https://github.com/rdipardo/tidy_json/actions/workflows/tests.yml/badge.svg
141
141
  [codecov_status]: https://codecov.io/gh/rdipardo/tidy_json/branch/master
142
142
  [codecov_badge]: https://codecov.io/gh/rdipardo/tidy_json/branch/master/graph/badge.svg
143
143
  [gem_version_badge]: https://img.shields.io/gem/v/tidy_json?color=%234ec820&label=gem%20version&logo=ruby&logoColor=%23e9573f
@@ -146,5 +146,5 @@ Distributed under the terms of the [MIT License][].
146
146
  [installing the gem]: https://github.com/rdipardo/tidy_json#installation
147
147
  <!-- API spec -->
148
148
  [`JSON.generate`]: https://github.com/flori/json/blob/d49c5de49e54a5ad3f6fcf587f98d63266ef9439/lib/json/pure/generator.rb#L111
149
- [the docs]: https://rubydoc.org/github/rdipardo/tidy_json/TidyJson/Formatter#initialize-instance_method
149
+ [the docs]: https://rubydoc.info/github/rdipardo/tidy_json/TidyJson/Formatter#initialize-instance_method
150
150
  [0.3.0]: https://github.com/rdipardo/tidy_json/releases/tag/v0.3.0
data/bin/jtidy CHANGED
@@ -69,7 +69,7 @@ class Jtidy # :nodoc:
69
69
 
70
70
  opts.on_tail('-V', '--version', 'Show version') do
71
71
  show_unused format_options
72
- puts ::JtidyInfo.new.to_s
72
+ puts ::JtidyInfo.new
73
73
  exit 0
74
74
  end
75
75
 
data/bin/jtidy_info.rb CHANGED
@@ -19,7 +19,6 @@ module TidyJson
19
19
  @meta = {
20
20
  name: "# jtidy #{gem.version}",
21
21
  license: "# License: #{gem.license}",
22
- bugs: "# Bugs: #{gem.metadata['bug_tracker_uri']}",
23
22
  notice: NOTICE
24
23
  }
25
24
  end
@@ -203,7 +203,7 @@ module TidyJson
203
203
 
204
204
  elsif !node.instance_of?(String) then graft << node.to_s
205
205
 
206
- else graft << "\"#{node.gsub(/"/, '\\"')}\""
206
+ else graft << "\"#{node.gsub('"', '\\"')}\""
207
207
  end
208
208
 
209
209
  graft.strip
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TidyJson
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.3'
5
5
  end
data/tidy_json.gemspec CHANGED
@@ -7,13 +7,11 @@ Gem::Specification.new do |spec|
7
7
  spec.version = TidyJson::VERSION
8
8
  spec.summary = 'Serialize any Ruby object as readable JSON'
9
9
  spec.description = 'A mixin providing (recursive) JSON serialization and pretty printing.'
10
- spec.authors = ['Robert Di Pardo']
11
- spec.email = 'dipardo.r@gmail.com'
10
+ spec.authors = [' ']
12
11
  spec.homepage = 'https://github.com/rdipardo/tidy_json'
13
12
  spec.license = 'MIT'
14
13
  spec.metadata = {
15
- 'documentation_uri' => 'https://rubydoc.org/github/rdipardo/tidy_json',
16
- 'bug_tracker_uri' => 'https://github.com/rdipardo/tidy_json/issues'
14
+ 'documentation_uri' => 'https://rubydoc.info/github/rdipardo/tidy_json'
17
15
  }
18
16
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
19
17
  ['.yardopts'].concat(`git ls-files -z`.split("\x0").reject { |f| f.match(/^(\.[\w+.]+|test|spec|features|codecov)/) })
@@ -22,8 +20,19 @@ Gem::Specification.new do |spec|
22
20
  spec.require_paths = ['lib']
23
21
  spec.executables = ['jtidy']
24
22
  spec.required_ruby_version = Gem::Requirement.new('>= 2.3')
25
- spec.add_runtime_dependency 'json', '~> 2.5'
26
- spec.add_development_dependency 'test-unit', '~> 3.4'
27
- spec.add_development_dependency 'yard', '~> 0.9'
23
+ spec.add_runtime_dependency 'json', '~> 2.7'
28
24
  spec.rdoc_options = ['-x test/*']
25
+ spec.post_install_message = '
26
+ #
27
+ # * * * * * * * * * * * * * * * * * * * * * * * * * *
28
+ # さよなら!
29
+ # * * * * * * * * * * * * * * * * * * * * * * * * * *
30
+ # tidy_json is no longer maintained.
31
+ # Please consider using one of these gems instead:
32
+ # alba <https://rubygems.org/gems/alba>
33
+ # shale <https://rubygems.org/gems/shale>
34
+ # mutils <https://rubygems.org/gems/mutils>
35
+ # * * * * * * * * * * * * * * * * * * * * * * * * * *
36
+ #
37
+ '
29
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tidy_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
- - Robert Di Pardo
8
- autorequire:
7
+ - " "
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2023-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -16,44 +16,16 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.5'
19
+ version: '2.7'
20
20
  type: :runtime
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: '2.5'
27
- - !ruby/object:Gem::Dependency
28
- name: test-unit
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '3.4'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '3.4'
41
- - !ruby/object:Gem::Dependency
42
- name: yard
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.9'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.9'
26
+ version: '2.7'
55
27
  description: A mixin providing (recursive) JSON serialization and pretty printing.
56
- email: dipardo.r@gmail.com
28
+ email:
57
29
  executables:
58
30
  - jtidy
59
31
  extensions: []
@@ -77,9 +49,20 @@ homepage: https://github.com/rdipardo/tidy_json
77
49
  licenses:
78
50
  - MIT
79
51
  metadata:
80
- documentation_uri: https://rubydoc.org/github/rdipardo/tidy_json
81
- bug_tracker_uri: https://github.com/rdipardo/tidy_json/issues
82
- post_install_message:
52
+ documentation_uri: https://rubydoc.info/github/rdipardo/tidy_json
53
+ post_install_message: |2
54
+
55
+ #
56
+ # * * * * * * * * * * * * * * * * * * * * * * * * * *
57
+ # さよなら!
58
+ # * * * * * * * * * * * * * * * * * * * * * * * * * *
59
+ # tidy_json is no longer maintained.
60
+ # Please consider using one of these gems instead:
61
+ # alba <https://rubygems.org/gems/alba>
62
+ # shale <https://rubygems.org/gems/shale>
63
+ # mutils <https://rubygems.org/gems/mutils>
64
+ # * * * * * * * * * * * * * * * * * * * * * * * * * *
65
+ #
83
66
  rdoc_options:
84
67
  - "-x test/*"
85
68
  require_paths:
@@ -95,8 +78,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
78
  - !ruby/object:Gem::Version
96
79
  version: '0'
97
80
  requirements: []
98
- rubygems_version: 3.3.19
99
- signing_key:
81
+ rubygems_version: 3.3.15
82
+ signing_key:
100
83
  specification_version: 4
101
84
  summary: Serialize any Ruby object as readable JSON
102
85
  test_files: