awesome_print_json 0.8.0 → 0.9.0
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 +5 -5
- data/Gemfile +0 -2
- data/README.md +10 -2
- data/awesome_print_json.gemspec +3 -1
- data/lib/awesome_print_json/version.rb +1 -1
- data/terminal-output.png +0 -0
- metadata +36 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 95e59e34cf250cd1bebcccb1e3bad1770b5b2cade62288f808a54619c1373d98
|
4
|
+
data.tar.gz: 27e318950e837e4bde12c741a5085f7962d3d6f273e9a8d09bc3c52cd5dc8e41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1fb9f1ef2572d94877a2b9e359e2c9bf957d5c0f0923208f0cb3914d8e8a6eef3aa1b8880edc36a69391b8572b4544b2a92c8e1784499164b84e9082fd12423
|
7
|
+
data.tar.gz: 3cc14e24bc1fd93a366fbf041be3e62fe40d62052586ffaf127aabeb6db6a657f3c76c06311f829b79fd28356d9b28e0a2c17cf89955f85f47c6deda450e7c8b
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# awesome_print_json
|
1
|
+
# awesome_print_json [](https://semaphoreci.com/wnuqui/awesome_print_json) <a href="https://codeclimate.com/github/wnuqui/awesome_print_json"><img src="https://codeclimate.com/github/wnuqui/awesome_print_json/badges/gpa.svg" /></a> <a href="https://codeclimate.com/github/wnuqui/awesome_print_json"><img src="https://codeclimate.com/github/wnuqui/awesome_print_json/badges/issue_count.svg" /></a> <a href="https://codeclimate.com/github/wnuqui/awesome_print_json/coverage"><img src="https://codeclimate.com/github/wnuqui/awesome_print_json/badges/coverage.svg" /></a>
|
2
2
|
|
3
3
|
This gem is an [awesome_print](https://github.com/awesome-print/awesome_print) CLI wrapper that pretty-prints JSON data in terminal.
|
4
4
|
|
@@ -10,9 +10,17 @@ gem install awesome_print_json
|
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
13
|
-
$ curl -
|
13
|
+
$ curl https://hacker-news.firebaseio.com/v0/item/192327.json --no-progress-meter | print_json
|
14
14
|
$ echo "{\"data\":{\"title\":\"Test\"}}" | print_json
|
15
15
|
|
16
|
+
## Screenshot
|
17
|
+
|
18
|
+
Here is a sample output piping the `curl` output to `print_json`. `print_json` is the function that you can invoke in terminal once `awesome_print_json` gem is installed.
|
19
|
+
|
20
|
+
<p align="center">
|
21
|
+
<img src="terminal-output.png">
|
22
|
+
</p>
|
23
|
+
|
16
24
|
## Development
|
17
25
|
|
18
26
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/awesome_print_json.gemspec
CHANGED
@@ -23,6 +23,8 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.require_paths = ['lib']
|
24
24
|
|
25
25
|
spec.add_development_dependency 'bundler', '~> 1.14'
|
26
|
-
spec.add_development_dependency 'rake', '
|
26
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
27
27
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
28
|
+
spec.add_development_dependency 'simplecov'
|
29
|
+
spec.add_runtime_dependency 'awesome_print'
|
28
30
|
end
|
data/terminal-output.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awesome_print_json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilfrido Nuqui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,16 +28,16 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +52,34 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: awesome_print
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
55
83
|
description: Using awesome_print gem, pretty-print JSON in terminal.
|
56
84
|
email:
|
57
85
|
- dofreewill22@gmail.com
|
@@ -75,6 +103,7 @@ files:
|
|
75
103
|
- lib/awesome_print_json.rb
|
76
104
|
- lib/awesome_print_json/cli.rb
|
77
105
|
- lib/awesome_print_json/version.rb
|
106
|
+
- terminal-output.png
|
78
107
|
homepage: http://github.com/wnuqui/awesome_print_json
|
79
108
|
licenses:
|
80
109
|
- MIT
|
@@ -94,8 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
123
|
- !ruby/object:Gem::Version
|
95
124
|
version: '0'
|
96
125
|
requirements: []
|
97
|
-
|
98
|
-
rubygems_version: 2.6.8
|
126
|
+
rubygems_version: 3.0.3
|
99
127
|
signing_key:
|
100
128
|
specification_version: 4
|
101
129
|
summary: CLI to pretty-print JSON in terminal.
|