tonkachi 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 350af5ea3fa1ccdcd9dbca2223192063791f4974ef37bba355b9cd3cb71c6363
4
+ data.tar.gz: 2cb8353dea566e4c5946cf13c14b6ccb5a95de2b77eef75dcb1d57a493463372
5
+ SHA512:
6
+ metadata.gz: 37aac227553849189574b3be3c582f9605b7ca8ccc85011c99066dd61ba7336462897c699674e075ba59c8707eb2281ef2075fada6f1c62239fd61c95ee9d8a2
7
+ data.tar.gz: eb31c4d71019ec7702b30a9b7dac715eb661738b42c726c512475bcad36428f421d252c7ab9c5163d65143921c722f29d2553fb5b717d86a7042cbcad4d419b1
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.2
7
+ before_install: gem install bundler -v 2.0.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at yusuque.swallows@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in tonkachi.gemspec
4
+ gemspec
@@ -0,0 +1,39 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ tonkachi (0.1.0)
5
+ nokogiri (~> 1.10)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.3)
11
+ mini_portile2 (2.4.0)
12
+ nokogiri (1.10.4)
13
+ mini_portile2 (~> 2.4.0)
14
+ rake (10.5.0)
15
+ rspec (3.8.0)
16
+ rspec-core (~> 3.8.0)
17
+ rspec-expectations (~> 3.8.0)
18
+ rspec-mocks (~> 3.8.0)
19
+ rspec-core (3.8.2)
20
+ rspec-support (~> 3.8.0)
21
+ rspec-expectations (3.8.4)
22
+ diff-lcs (>= 1.2.0, < 2.0)
23
+ rspec-support (~> 3.8.0)
24
+ rspec-mocks (3.8.1)
25
+ diff-lcs (>= 1.2.0, < 2.0)
26
+ rspec-support (~> 3.8.0)
27
+ rspec-support (3.8.2)
28
+
29
+ PLATFORMS
30
+ ruby
31
+
32
+ DEPENDENCIES
33
+ bundler (~> 2.0)
34
+ rake (~> 10.0)
35
+ rspec (~> 3.0)
36
+ tonkachi!
37
+
38
+ BUNDLED WITH
39
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Yusuke Arao
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ # Tonkachi
2
+
3
+ Tonkachi is nokogiri expansion. Tonkachi provides useful methods for tables and html hierarchy.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'tonkachi'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install tonkachi
20
+
21
+ ## Usage
22
+
23
+ ```
24
+ require 'tonkachi'
25
+ ```
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/tonkachi. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Tonkachi project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/tonkachi/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "tonkachi"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,194 @@
1
+ require "tonkachi/version"
2
+ require "nokogiri"
3
+
4
+ module Tonkachi
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+ @nodes = Array.new
8
+
9
+ def self.free_rowspan_colspan(table_node)
10
+ # free colspan
11
+ table_node.css('tr').each{|tr|
12
+ tr.css('th, td').each{|td|
13
+ if td.has_attribute?('colspan') then
14
+ colspan_count = td.attr('colspan').to_i
15
+ td.delete('colspan')
16
+ (colspan_count - 1).times{
17
+ td.next = td.dup
18
+ }
19
+ end
20
+ }
21
+ }
22
+
23
+ # fill td
24
+ col_count_max = 0
25
+ rowspan_count_array = Array.new
26
+ table_node.css('tr').each{|tr|
27
+ col_count = tr.css('th, td').length + rowspan_count_array.length
28
+ if col_count_max < col_count then
29
+ col_count_max = col_count
30
+ end
31
+ rowspan_count_array.map!{|rowspan_count|
32
+ rowspan_count - 1
33
+ }
34
+ rowspan_count_array.delete(0)
35
+ tr.css('th, td').each{|td|
36
+ if td.has_attribute?('rowspan') then
37
+ rowspan_count = td.attr('rowspan').to_i - 1
38
+ unless rowspan_count == 0 then
39
+ rowspan_count_array.push(rowspan_count)
40
+ end
41
+ end
42
+ }
43
+ }
44
+ rowspan_count_array = Array.new
45
+ table_node.css('tr').each{|tr|
46
+ col_count = tr.css('th, td').length + rowspan_count_array.length
47
+ lack_td_count = col_count_max - col_count
48
+ lack_td_count.times{
49
+ tr.add_child('<td> </td>')
50
+ }
51
+ rowspan_count_array.map!{|rowspan_count|
52
+ rowspan_count - 1
53
+ }
54
+ rowspan_count_array.delete(0)
55
+ tr.css('th, td').each{|td|
56
+ if td.has_attribute?('rowspan') then
57
+ rowspan_count = td.attr('rowspan').to_i - 1
58
+ unless rowspan_count == 0 then
59
+ rowspan_count_array.push(rowspan_count)
60
+ end
61
+ end
62
+ }
63
+ }
64
+
65
+ # free rowspan
66
+ col_max_idx = table_node.at_css('tr').css('th, td').length - 1
67
+ (0..col_max_idx).each{|col_idx|
68
+ rowspan = Hash.new
69
+ if col_idx == col_max_idx then
70
+ table_node.css('tr').each{|tr|
71
+ if rowspan.has_key?(:count) then
72
+ tr.css('th, td')[col_idx - 1].next = rowspan[:td].dup
73
+ rowspan[:count] -= 1
74
+ if rowspan[:count] == 0 then
75
+ rowspan = Hash.new
76
+ end
77
+ elsif tr.css('th, td')[col_idx]&.has_attribute?('rowspan') then
78
+ rowspan_count = tr.css('th, td')[col_idx].attr('rowspan').to_i - 1
79
+ unless rowspan_count == 0 then
80
+ rowspan[:count] = rowspan_count
81
+ rowspan[:td] = tr.css('th, td')[col_idx]
82
+ end
83
+ tr.css('th, td')[col_idx].delete('rowspan')
84
+ end
85
+ }
86
+ else
87
+ table_node.css('tr').each{|tr|
88
+ if rowspan.has_key?(:count) then
89
+ if tr.css('th, td')[col_idx] then
90
+ tr.css('th, td')[col_idx].previous = rowspan[:td].dup
91
+ else
92
+ tr.add_child(rowspan[:td].dup)
93
+ end
94
+ rowspan[:count] -= 1
95
+ if rowspan[:count] == 0 then
96
+ rowspan = Hash.new
97
+ end
98
+ elsif tr.css('th, td')[col_idx]&.has_attribute?('rowspan') then
99
+ rowspan_count = tr.css('th, td')[col_idx].attr('rowspan').to_i - 1
100
+ unless rowspan_count == 0 then
101
+ rowspan[:count] = rowspan_count
102
+ rowspan[:td] = tr.css('th, td')[col_idx]
103
+ end
104
+ tr.css('th, td')[col_idx].delete('rowspan')
105
+ end
106
+ }
107
+ end
108
+ }
109
+ # return result
110
+ return table_node
111
+ end
112
+
113
+ def self.transpose_nokogiri_table(table_node)
114
+ # init transpose table node
115
+ transpose_table_node = Nokogiri::XML::Node.new('table', table_node)
116
+
117
+ # prepare tr
118
+ num_of_org_col = table_node.at_css('tr').css('th, td').length
119
+ num_of_org_col.times{
120
+ transpose_table_node.add_child('<tr></tr>')
121
+ }
122
+
123
+ # pick up th and td from original table and put them in transpose table
124
+ table_node.css('tr').each{|tr|
125
+ tr.css('th, td').each_with_index{|td, col_idx|
126
+ transpose_table_node.css('tr')[col_idx].add_child(td.dup)
127
+ }
128
+ }
129
+
130
+ # return result
131
+ return transpose_table_node
132
+ end
133
+
134
+ def self.get_nodes(node)
135
+ @nodes = Array.new
136
+ node_with_flag = [node, false]
137
+ dfs(node_with_flag)
138
+ return @nodes
139
+ end
140
+
141
+ def self.get_css_path(node)
142
+ parent_nodes = [get_class_id(node)]
143
+ parent_node = node.parent
144
+ parent_nodes.push(get_class_id(parent_node))
145
+
146
+ while parent_node.name != 'html' do
147
+ parent_node = parent_node.parent
148
+ parent_nodes.push(get_class_id(parent_node))
149
+ end
150
+ return insert_class_id(parent_nodes.reverse, node.css_path)
151
+ end
152
+
153
+ private_class_method def self.dfs(node_with_flag)
154
+ node_with_flag[1] = true
155
+ @nodes.push(node_with_flag[0])
156
+ children = node_with_flag[0].children
157
+ children_with_flag = children.map{|child|
158
+ [child, false]
159
+ }
160
+ children_with_flag.each{|child_with_flag|
161
+ unless child_with_flag[1] then
162
+ dfs(child_with_flag)
163
+ end
164
+ }
165
+ return nil
166
+ end
167
+
168
+ private_class_method def self.get_class_id(node)
169
+ node_attributes = [node.name, {}]
170
+ if node.attributes.has_key?('class') then
171
+ node_attributes[1]['class'] = node.attributes['class'].value
172
+ end
173
+ if node.attributes.has_key?('id') then
174
+ node_attributes[1]['id'] = node.attributes['id'].value
175
+ end
176
+ return node_attributes
177
+ end
178
+
179
+ private_class_method def self.insert_class_id(parent_nodes, node_css_path)
180
+ return_node_css_path = Array.new
181
+ node_css_path.split(' > ').each_with_index{|tag, idx|
182
+ unless parent_nodes[idx][1].empty? then
183
+ if parent_nodes[idx][1].has_key?('class') then
184
+ tag += '.' + parent_nodes[idx][1]['class']
185
+ end
186
+ if parent_nodes[idx][1].has_key?('id') then
187
+ tag += '#' + parent_nodes[idx][1]['id']
188
+ end
189
+ end
190
+ return_node_css_path.push(tag)
191
+ }
192
+ return return_node_css_path.join(' > ')
193
+ end
194
+ end
@@ -0,0 +1,3 @@
1
+ module Tonkachi
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,37 @@
1
+ <table border="1">
2
+ <tr>
3
+ <th colspan="1" rowspan="1">1_1</th>
4
+ <td colspan="2">1_2, 1_3</td>
5
+ <th rowspan="3">1_4, 2_4, 3_4</th>
6
+ <th>1_5</th>
7
+ <td rowspan="2">1_6, 2_6</td>
8
+ </tr>
9
+ <tr>
10
+ <th>2_1</th>
11
+ <td>2_2</td>
12
+ </tr>
13
+ <tr>
14
+ <td>3_1</td>
15
+ <td>3_2</td>
16
+ <td>3_3</td>
17
+ <td rowspan="2">3_5, 4_5</td>
18
+ <th>3_6</th>
19
+ </tr>
20
+ <tr>
21
+ <td>4_1</td>
22
+ <td>4_2</td>
23
+ <td colspan="2">4_3, 4_4</td>
24
+ <td>4_6</td>
25
+ <td>4_7</td>
26
+ </tr>
27
+ <tr>
28
+ <td rowspan="2">5_1, 6_1</td>
29
+ <td colspan="2" rowspan="3">5_2, 5_3, 6_2, 6_3</td>
30
+ <td rowspan="2">5_4, 6_4</td>
31
+ <th rowspan="2">5_5, 6_5</th>
32
+ <th rowspan="2">5_6, 6_6</th>
33
+ <th rowspan="2">5_7, 6_7</th>
34
+ </tr>
35
+ <tr>
36
+ </tr>
37
+ </table>
@@ -0,0 +1,19 @@
1
+ <html>
2
+ <body>
3
+ <h1 id="tonkachi">Tonkachi</h1>
4
+ <h2 class="heading">テーブルノードを対象にしたメソッド</h2>
5
+ <div class="category">
6
+ <h3 class="method">free_rowspan_colspan(table_node)</h3>
7
+ <div class="description">テーブルのセル結合を解除するメソッド</div>
8
+ <h3 class="method">transpose_nokogiri(table_node)</h3>
9
+ <div class="description">テーブルを転置するメソッド</div>
10
+ </div>
11
+ <h2 class="heading">テーブルノード以外を対象にしたメソッド</h2>
12
+ <div class="category">
13
+ <h3 class="method">get_nodes(node)</h3>
14
+ <div class="description">対象ノードとその配下のノードの順序関係を維持した配列を取得するメソッド</div>
15
+ <h3 class="method">get_css_path(node)</h3>
16
+ <div class="description">対象ノードのCSSパスを取得するメソッド</div>
17
+ </div>
18
+ </body>
19
+ </html>
@@ -0,0 +1,20 @@
1
+ <table border="1">
2
+ <tr>
3
+ <th>1_1</th>
4
+ <th>1_2</th>
5
+ <th>1_3</th>
6
+ <th>1_4</th>
7
+ </tr>
8
+ <tr>
9
+ <td>2_1</td>
10
+ <td>2_2</td>
11
+ <td>2_3</td>
12
+ <td>2_4</td>
13
+ </tr>
14
+ <tr>
15
+ <td>3_1</td>
16
+ <td>3_2</td>
17
+ <td>3_3</td>
18
+ <td>3_4</td>
19
+ </tr>
20
+ </table>
@@ -0,0 +1,33 @@
1
+ require 'tonkachi'
2
+
3
+ html = open('sample/merged_table.html').read
4
+ doc = Nokogiri::HTML.parse(html)
5
+ table_node = doc.at_css('table')
6
+ free_table_node = Tonkachi.free_rowspan_colspan(table_node)
7
+ open('sample/free_table.html', 'w'){|f|
8
+ f.puts free_table_node.to_html
9
+ }
10
+
11
+ html = open('sample/normal_table.html').read
12
+ doc = Nokogiri::HTML.parse(html)
13
+ table_node = doc.at_css('table')
14
+ transposed_table_node = Tonkachi.transpose_nokogiri_table(table_node)
15
+ open('sample/transposed_table.html', 'w'){|f|
16
+ f.puts transposed_table_node.to_html
17
+ }
18
+
19
+ html = open('sample/nodes.html').read
20
+ doc = Nokogiri::HTML.parse(html)
21
+ nodes = Tonkachi.get_nodes(doc.at_css('body'))
22
+ nodes.each{|node|
23
+ if node.name == 'text' then
24
+ if node.text.strip.empty? then
25
+ next
26
+ else
27
+ puts node.text
28
+ end
29
+ else
30
+ puts node.name
31
+ end
32
+ puts Tonkachi.get_css_path(node)
33
+ }
@@ -0,0 +1,29 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "tonkachi/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "tonkachi"
7
+ spec.version = Tonkachi::VERSION
8
+ spec.authors = ["Yusuke Arao"]
9
+ spec.email = ["yusuque.swallows@gmail.com"]
10
+
11
+ spec.summary = %q{This is nokogiri expansion for parsing html.}
12
+ spec.description = %q{This gem provides useful methods for tables and html hierarchy.}
13
+ spec.homepage = "https://github.com/arao99/tonkachi"
14
+ spec.license = "MIT"
15
+
16
+ # Specify which files should be added to the gem when it is released.
17
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
18
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
19
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ end
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_development_dependency "bundler", "~> 2.0"
26
+ spec.add_development_dependency "rake", "~> 10.0"
27
+ spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_runtime_dependency "nokogiri", "~> 1.10"
29
+ end
metadata ADDED
@@ -0,0 +1,117 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tonkachi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Yusuke Arao
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: nokogiri
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.10'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.10'
69
+ description: This gem provides useful methods for tables and html hierarchy.
70
+ email:
71
+ - yusuque.swallows@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - Gemfile.lock
82
+ - LICENSE.txt
83
+ - README.md
84
+ - Rakefile
85
+ - bin/console
86
+ - bin/setup
87
+ - lib/tonkachi.rb
88
+ - lib/tonkachi/version.rb
89
+ - sample/merged_table.html
90
+ - sample/nodes.html
91
+ - sample/normal_table.html
92
+ - sample/test.rb
93
+ - tonkachi.gemspec
94
+ homepage: https://github.com/arao99/tonkachi
95
+ licenses:
96
+ - MIT
97
+ metadata: {}
98
+ post_install_message:
99
+ rdoc_options: []
100
+ require_paths:
101
+ - lib
102
+ required_ruby_version: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: '0'
107
+ required_rubygems_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ requirements: []
113
+ rubygems_version: 3.0.3
114
+ signing_key:
115
+ specification_version: 4
116
+ summary: This is nokogiri expansion for parsing html.
117
+ test_files: []