tidy_json 0.3.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +0 -1
- data/Gemfile +7 -0
- data/LICENSE +1 -1
- data/README.md +38 -8
- data/bin/jtidy +143 -0
- data/bin/jtidy_info.rb +31 -0
- data/lib/tidy_json/formatter.rb +26 -32
- data/lib/tidy_json/serializer.rb +88 -19
- data/lib/tidy_json/version.rb +1 -1
- data/test/codecov_runner.rb +2 -2
- data/test/test_tidy_json.rb +19 -15
- data/tidy_json.gemspec +7 -8
- metadata +11 -56
- data/lib/tidy_json/dedication.rb +0 -20
- data/test/JsonableObject.json +0 -1
data/tidy_json.gemspec
CHANGED
@@ -1,30 +1,29 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative 'lib/tidy_json/version'
|
4
|
-
require_relative 'lib/tidy_json/dedication'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = 'tidy_json'
|
8
7
|
spec.version = TidyJson::VERSION
|
9
|
-
spec.date = Time.now.to_s[0..9]
|
10
8
|
spec.summary = 'Serialize any Ruby object as readable JSON'
|
11
9
|
spec.description = 'A mixin providing (recursive) JSON serialization and pretty printing.'
|
12
10
|
spec.authors = ['Robert Di Pardo']
|
13
11
|
spec.email = 'dipardo.r@gmail.com'
|
14
12
|
spec.homepage = 'https://github.com/rdipardo/tidy_json'
|
15
|
-
spec.metadata = { 'documentation_uri' => 'https://rubydoc.org/github/rdipardo/tidy_json' }
|
16
13
|
spec.license = 'MIT'
|
14
|
+
spec.metadata = {
|
15
|
+
'documentation_uri' => 'https://rubydoc.org/github/rdipardo/tidy_json',
|
16
|
+
'bug_tracker_uri' => 'https://github.com/rdipardo/tidy_json/issues'
|
17
|
+
}
|
17
18
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
18
|
-
['.yardopts'].concat(`git ls-files -z`.split("\x0").reject { |f| f.match(/^(\.[\w
|
19
|
+
['.yardopts'].concat(`git ls-files -z`.split("\x0").reject { |f| f.match(/^(\.[\w+.]+|test|spec|features|codecov)/) })
|
19
20
|
end
|
20
21
|
spec.test_files = Dir['test/*']
|
21
22
|
spec.require_paths = ['lib']
|
23
|
+
spec.executables = ['jtidy']
|
22
24
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.3')
|
23
25
|
spec.add_runtime_dependency 'json', '~> 2.5'
|
24
|
-
spec.add_development_dependency '
|
25
|
-
spec.add_development_dependency 'simplecov', '~> 0.17'
|
26
|
-
spec.add_development_dependency 'test-unit', '~> 3.3'
|
26
|
+
spec.add_development_dependency 'test-unit', '~> 3.4'
|
27
27
|
spec.add_development_dependency 'yard', '~> 0.9'
|
28
28
|
spec.rdoc_options = ['-x test/*']
|
29
|
-
spec.post_install_message = TidyJson::DEDICATION
|
30
29
|
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.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Di Pardo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|
@@ -24,48 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.5'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: codecov
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - '='
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.2.5
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - '='
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.2.5
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: simplecov
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0.17'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0.17'
|
55
27
|
- !ruby/object:Gem::Dependency
|
56
28
|
name: test-unit
|
57
29
|
requirement: !ruby/object:Gem::Requirement
|
58
30
|
requirements:
|
59
31
|
- - "~>"
|
60
32
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
33
|
+
version: '3.4'
|
62
34
|
type: :development
|
63
35
|
prerelease: false
|
64
36
|
version_requirements: !ruby/object:Gem::Requirement
|
65
37
|
requirements:
|
66
38
|
- - "~>"
|
67
39
|
- !ruby/object:Gem::Version
|
68
|
-
version: '3.
|
40
|
+
version: '3.4'
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: yard
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -82,7 +54,8 @@ dependencies:
|
|
82
54
|
version: '0.9'
|
83
55
|
description: A mixin providing (recursive) JSON serialization and pretty printing.
|
84
56
|
email: dipardo.r@gmail.com
|
85
|
-
executables:
|
57
|
+
executables:
|
58
|
+
- jtidy
|
86
59
|
extensions: []
|
87
60
|
extra_rdoc_files: []
|
88
61
|
files:
|
@@ -91,12 +64,12 @@ files:
|
|
91
64
|
- LICENSE
|
92
65
|
- README.md
|
93
66
|
- Rakefile
|
67
|
+
- bin/jtidy
|
68
|
+
- bin/jtidy_info.rb
|
94
69
|
- lib/tidy_json.rb
|
95
|
-
- lib/tidy_json/dedication.rb
|
96
70
|
- lib/tidy_json/formatter.rb
|
97
71
|
- lib/tidy_json/serializer.rb
|
98
72
|
- lib/tidy_json/version.rb
|
99
|
-
- test/JsonableObject.json
|
100
73
|
- test/codecov_runner.rb
|
101
74
|
- test/test_tidy_json.rb
|
102
75
|
- tidy_json.gemspec
|
@@ -105,25 +78,8 @@ licenses:
|
|
105
78
|
- MIT
|
106
79
|
metadata:
|
107
80
|
documentation_uri: https://rubydoc.org/github/rdipardo/tidy_json
|
108
|
-
|
109
|
-
|
110
|
-
....................................................
|
111
|
-
.............. This gem is dedicated ...............
|
112
|
-
................. to the memory of .................
|
113
|
-
....................................................
|
114
|
-
................. MICHAEL DI PARDO .................
|
115
|
-
....................................................
|
116
|
-
............ Please consider supporting ............
|
117
|
-
........... multiple sclerosis research: ...........
|
118
|
-
....................................................
|
119
|
-
....................... (US) .......................
|
120
|
-
..... https://www.nationalmssociety.org/Donate .....
|
121
|
-
..................... (Canada) .....................
|
122
|
-
........ https://mssociety.ca/get-involved .........
|
123
|
-
....................... (UK) .......................
|
124
|
-
.... https://www.mssociety.org.uk/get-involved .....
|
125
|
-
....................................................
|
126
|
-
|
81
|
+
bug_tracker_uri: https://github.com/rdipardo/tidy_json/issues
|
82
|
+
post_install_message:
|
127
83
|
rdoc_options:
|
128
84
|
- "-x test/*"
|
129
85
|
require_paths:
|
@@ -139,11 +95,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
95
|
- !ruby/object:Gem::Version
|
140
96
|
version: '0'
|
141
97
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.3.19
|
143
99
|
signing_key:
|
144
100
|
specification_version: 4
|
145
101
|
summary: Serialize any Ruby object as readable JSON
|
146
102
|
test_files:
|
147
103
|
- test/codecov_runner.rb
|
148
|
-
- test/JsonableObject.json
|
149
104
|
- test/test_tidy_json.rb
|
data/lib/tidy_json/dedication.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module TidyJson # :nodoc:
|
4
|
-
DEDICATION = "\n#{'.' * 52}\n" \
|
5
|
-
"#{'.' * 14} This gem is dedicated " \
|
6
|
-
"#{'.' * 15}\n" \
|
7
|
-
"#{'.' * 17} to the memory of #{'.' * 17}\n#{'.' * 52}\n" \
|
8
|
-
"#{'.' * 17} MICHAEL DI PARDO #{'.' * 17}\n#{'.' * 52}\n" \
|
9
|
-
"#{'.' * 12} Please consider supporting #{'.' * 12}\n" \
|
10
|
-
"#{'.' * 11} multiple sclerosis research: #{'.' * 11}\n" \
|
11
|
-
"#{'.' * 52}\n" \
|
12
|
-
"#{'.' * 23} (US) #{'.' * 23}\n" \
|
13
|
-
"#{'.' * 5} https://www.nationalmssociety.org/Donate " \
|
14
|
-
"#{'.' * 5}\n" \
|
15
|
-
"#{'.' * 21} (Canada) #{'.' * 21}\n" \
|
16
|
-
"#{'.' * 8} https://mssociety.ca/get-involved #{'.' * 9}\n" \
|
17
|
-
"#{'.' * 23} (UK) #{'.' * 23}\n" \
|
18
|
-
"#{'.' * 4} https://www.mssociety.org.uk/get-involved "\
|
19
|
-
"#{'.' * 5}\n#{'.' * 52}\n\n"
|
20
|
-
end
|