xml_tree_viewer 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79fecb9b886aa218267d341b33718deeb4e15a971c8cb7d9780969272c6a7b98
4
- data.tar.gz: 3c78c11b60b2f9dda8d2f694307edd738845cbc276dbe7bbec874d0842000b75
3
+ metadata.gz: b86fa40a27308e19b466c07a503e469f517fef057c45d1f23fa59ca71b3e03d3
4
+ data.tar.gz: 83e0487c56faaa99a9f8225a64d4683b5dc9439f9bab48e2dccfc528d46e6fe7
5
5
  SHA512:
6
- metadata.gz: 696e45e6d38e485815d0d091221076da30e1eee306d176fddb3c259c894e67ee1efdc02a8a2a4a129515557a466b868c3da097fe192ce1e2b8681b8dd8d07a25
7
- data.tar.gz: 2c0febb3baca7fd49b412c866525664cf38e9abc007ecc9f8317e37e8162757d208b96e5f5bb9c7a08dd8a0caba0504e6c8ded24b1db7acbda3576edac29e687
6
+ metadata.gz: 5b1245f63b5e2dd1e6c0435c77c137f6910d4aa0e0c28e99995c58d90c1ee7e43b6ec1a011975eb31a8576312ea73becb39777b663dae9f080f8719574f1e827
7
+ data.tar.gz: 4413c1cd882f8e17122ddd0ee2b8f0c4a32d591dc2c622300a30d878c67aea359de074278e52ace16a576db5784346f114385cc39877a60ac894f9dd45a6f80c
data/Gemfile.lock CHANGED
@@ -1,15 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xml_tree_viewer (0.1.0)
4
+ xml_tree_viewer (0.1.1)
5
+ nokogiri (~> 1.11)
5
6
 
6
7
  GEM
7
8
  remote: https://rubygems.org/
8
9
  specs:
10
+ activesupport (6.1.4.1)
11
+ concurrent-ruby (~> 1.0, >= 1.0.2)
12
+ i18n (>= 1.6, < 2)
13
+ minitest (>= 5.1)
14
+ tzinfo (~> 2.0)
15
+ zeitwerk (~> 2.3)
9
16
  ast (2.4.2)
17
+ concurrent-ruby (1.1.9)
18
+ i18n (1.8.10)
19
+ concurrent-ruby (~> 1.0)
20
+ minitest (5.14.4)
21
+ nokogiri (1.12.5-x86_64-darwin)
22
+ racc (~> 1.4)
10
23
  parallel (1.20.1)
11
24
  parser (3.0.1.1)
12
25
  ast (~> 2.4.1)
26
+ racc (1.5.2)
13
27
  rainbow (3.0.0)
14
28
  rake (13.0.3)
15
29
  regexp_parser (2.1.1)
@@ -26,12 +40,16 @@ GEM
26
40
  rubocop-ast (1.7.0)
27
41
  parser (>= 3.0.1.1)
28
42
  ruby-progressbar (1.11.0)
43
+ tzinfo (2.0.4)
44
+ concurrent-ruby (~> 1.0)
29
45
  unicode-display_width (2.0.0)
46
+ zeitwerk (2.4.2)
30
47
 
31
48
  PLATFORMS
32
49
  x86_64-darwin-20
33
50
 
34
51
  DEPENDENCIES
52
+ activesupport (~> 6.1)
35
53
  rake (~> 13.0)
36
54
  rubocop (~> 1.7)
37
55
  xml_tree_viewer!
data/README.md CHANGED
@@ -1,22 +1,23 @@
1
1
  <a href="#table-of-contents">
2
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/Headline.svg" height="55px" name="XML Tree Viewer" alt="# Xml Tree Viewer">
2
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/Headline.svg" height="45px" name="headline" alt="# Xml Tree Viewer">
3
3
  </a>
4
4
 
5
5
  A .xml string will do up to a easy readable tree strcuture for terminal output.
6
6
 
7
7
  <br>
8
- <br>
8
+
9
9
  <a href="#table-of-contents">
10
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/examples.svg" height="55px" name="examples" alt="Examples">
10
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/examples.svg" height="38px" name="examples" alt="Examples">
11
11
  </a>
12
12
 
13
13
 
14
14
  ### Detail
15
15
  **Code**
16
16
  ```ruby
17
- require 'xml_tree_viewer'
18
- xml = XmlTreeViewer.helper()
19
- XmlTreeViewer.generate( xml, :detail )
17
+ require 'xml_tree_viewer'
18
+
19
+ xml = XmlTreeViewer.helper()
20
+ XmlTreeViewer.generate( xml, :detail )
20
21
  ```
21
22
  **Output**
22
23
  ```txt
@@ -37,9 +38,10 @@ TREE OVERVIEW
37
38
  ### Short
38
39
  **Code**
39
40
  ```ruby
40
- require 'xml_tree_viewer'
41
- xml = XmlTreeViewer.helper()
42
- XmlTreeViewer.generate( xml, :short )
41
+ require 'xml_tree_viewer'
42
+
43
+ xml = XmlTreeViewer.helper()
44
+ XmlTreeViewer.generate( xml, :short )
43
45
  ```
44
46
 
45
47
  **Output**
@@ -53,25 +55,27 @@ TREE OVERVIEW
53
55
  ```
54
56
  <br>
55
57
  <br>
56
- <br>
57
- <a href="#table-of-contents">
58
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/table-of-contents.svg" height="55px" name="table-of-contents" alt="Table of Contents">
58
+ <a href="#headline">
59
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/table-of-contents.svg" height="38px" name="table-of-contents" alt="Table of Contents">
59
60
  </a>
61
+
60
62
  <br>
61
63
 
64
+ 1. [Examples](#examples)<br>
62
65
  1. [Quickstart](#quickstart)<br>
63
- 2. [Parameters](#parameters)<br>
64
- 3. [Contributing](#contributing)<br>
65
- 4. [Limitations](#limitations)<br>
66
- 5. [Credits](#credits)<br>
67
- 6. [License](#license)<br>
68
- 7. [Code of Conduct](#code-of-conduct)<br>
69
- 8. [Support my Work](#support-my-work)<br>
66
+ 2. [Setup](#setup)<br>
67
+ 3. [Methods](#methods)<br>
68
+ 4. [Contributing](#contributing)<br>
69
+ 5. [Limitations](#limitations)<br>
70
+ 6. [Credits](#credits)<br>
71
+ 7. [License](#license)<br>
72
+ 8. [Code of Conduct](#code-of-conduct)<br>
73
+ 9. [Support my Work](#support-my-work)<br>
70
74
 
71
75
  <br>
72
- <br>
76
+
73
77
  <a href="#table-of-contents">
74
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/quickstart.svg" height="55px" name="quickstart" alt="Quickstart">
78
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/quickstart.svg" height="38px" name="quickstart" alt="Quickstart">
75
79
  </a>
76
80
 
77
81
  ```ruby
@@ -80,10 +84,11 @@ require '../lib/xml_tree_viewer'
80
84
  xml = XmlTreeViewer.helper()
81
85
  XmlTreeViewer.generate( xml, :detail )
82
86
  ```
87
+
83
88
  <br>
84
- <br>
89
+
85
90
  <a href="#table-of-contents">
86
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/local-path-builder-for-ruby/readme/headlines/setup.svg" height="55px" name="setup" alt="Setup">
91
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/local-path-builder-for-ruby/readme/headlines/setup.svg" height="38px" name="setup" alt="Setup">
87
92
  </a>
88
93
 
89
94
  Add this line to your application's Gemfile:
@@ -106,22 +111,24 @@ On Rubygems:
106
111
  - Profile: https://rubygems.org/profiles/a6b8
107
112
 
108
113
  <br>
109
- <br>
114
+
110
115
  <a href="#table-of-contents">
111
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/methods.svg" height="55px" name="methods" alt="Methods">
116
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/methods.svg" height="38px" name="methods" alt="Methods">
112
117
  </a>
113
118
 
114
119
  ### .helper()
120
+ Output a sample xml string
115
121
  ```ruby
116
- xml = XmlTreeViewer.helper()
122
+ xml = XmlTreeViewer.helper()
117
123
  ```
118
124
 
119
125
  ### .generate()
126
+ Generate xml tree from string input
120
127
  ```ruby
121
- XmlTreeViewer.generate(
122
- xml,
123
- mode
124
- )
128
+ XmlTreeViewer.generate(
129
+ xml,
130
+ mode
131
+ )
125
132
  ```
126
133
 
127
134
 
@@ -135,54 +142,52 @@ On Rubygems:
135
142
  Boolean
136
143
 
137
144
  <br>
138
- <br>
145
+
139
146
  <a href="#table-of-contents">
140
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/contributing.svg" height="55px" name="contributing" alt="Contributing">
147
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/contributing.svg" height="38px" name="contributing" alt="Contributing">
141
148
  </a>
142
149
 
143
150
  Bug reports and pull requests are welcome on GitHub at https://github.com/a6b8/xml-tree-viewer-for-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/a6b8/xml-tree-viewer-for-ruby/blob/master/CODE_OF_CONDUCT.md).
151
+
144
152
  <br>
145
- <br>
146
- <br>
153
+
147
154
  <a href="#table-of-contents">
148
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/limitations.svg" height="55px" name="limitations" alt="Limitations">
155
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/limitations.svg" height="38px" name="limitations" alt="Limitations">
149
156
  </a>
157
+
150
158
  - Tested for Rss and Atom Feeds.
151
- <br>
159
+
152
160
  <br>
153
161
 
154
162
  <a href="#table-of-contents">
155
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/credits.svg" height="55px" name="credits" alt="Credits">
163
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/credits.svg" height="38px" name="credits" alt="Credits">
156
164
  </a>
157
165
 
158
166
  This gem depend on following gems:
159
167
 
160
- - nokogiri<br>
161
- https://rubygems.org/gems/nokogiri
168
+ - [nokogiri](https://rubygems.org/gems/nokogiri)<br>
169
+ - [active_support](https://rubygems.org/gems/activesupport)<br>
162
170
 
163
- - active_support<br>
164
- https://rubygems.org/gems/activesupport
165
-
166
- <br>
167
171
  <br>
172
+
168
173
  <a href="#table-of-contents">
169
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/license.svg" height="55px" name="license" alt="License">
174
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/license.svg" height="38px" name="license" alt="License">
170
175
  </a>
171
176
 
172
177
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
178
+
173
179
  <br>
174
- <br>
175
- <br>
180
+
176
181
  <a href="#table-of-contents">
177
- <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/code-of-conduct.svg" height="55px" name="code-of-conduct" alt="Code of Conduct">
182
+ <img src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/code-of-conduct.svg" height="38px" name="code-of-conduct" alt="Code of Conduct">
178
183
  </a>
179
184
 
180
185
  Everyone interacting in the xml-tree-viewer-for-ruby project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/a6b8/xml-tree-viewer-for-ruby/blob/master/CODE_OF_CONDUCT.md).
186
+
181
187
  <br>
182
- <br>
183
- <br>
188
+
184
189
  <a href="#table-of-contents">
185
- <img href="#table-of-contents" src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/support-my-work.svg" height="55px" name="support-my-work" alt="Support my Work">
190
+ <img href="#table-of-contents" src="https://raw.githubusercontent.com/a6b8/a6b8/main/docs/xml-tree-viewer-for-ruby/readme/headlines/support-my-work.svg" height="38px" name="support-my-work" alt="Support my Work">
186
191
  </a>
187
192
 
188
193
  Donate by [https://www.paypal.com](https://www.paypal.com/donate?hosted_button_id=XKYLQ9FBGC4RG)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XmlTreeViewer
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
  require 'nokogiri'
3
+ require 'active_support/core_ext/hash/indifferent_access'
3
4
 
4
5
  require_relative "xml_tree_viewer/version"
5
6
 
@@ -31,6 +31,7 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  # Uncomment to register a new dependency of your gem
33
33
  spec.add_dependency "nokogiri", "~> 1.11"
34
+ spec.add_dependency "activesupport", "~> 6.1"
34
35
 
35
36
  spec
36
37
  # For more information and examples about making a new gem, checkout our
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xml_tree_viewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - a6b8
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-06-27 00:00:00.000000000 Z
11
+ date: 2021-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '6.1'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '6.1'
27
41
  description: A .xml string will do up to a easy readable tree strcuture for terminal
28
42
  output.
29
43
  email:
@@ -45,7 +59,6 @@ files:
45
59
  - bin/setup
46
60
  - lib/xml_tree_viewer.rb
47
61
  - lib/xml_tree_viewer/version.rb
48
- - xml_tree_viewer-0.1.0.gem
49
62
  - xml_tree_viewer.gemspec
50
63
  homepage: https://github.com/a6b8/xml-tree-viewer-for-ruby
51
64
  licenses:
Binary file