rubytree 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -1
- data/README.md +14 -13
- data/Rakefile +0 -12
- data/TAGS +46267 -0
- data/lib/tree/version.rb +2 -2
- data/rubytree.gemspec +17 -23
- data/spec/spec_helper.rb +31 -1
- data/spec/tree_spec.rb +1 -1
- data/test/run_test.rb +17 -6
- metadata +47 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9f6d1dcc5cf47a571cf1797287508a25d6d1d6f3139396a205c7e7f6c677fa5
|
4
|
+
data.tar.gz: 1d0c8e28ba591d69404316ee2eda52176b1f1cfcf9c322b74520bcf200ed8d17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5266ef0d324899385335025775707093e238739c3cb805af3260e767a08f5619e0001ed2bfeec9410a001aaa4882923d458afdd7913d4a7b24385b515175927b
|
7
|
+
data.tar.gz: 32689b030dc46d394bb3e8349702a30b3c589e0fad883fc6a62b4016ac9ce4e3dc8ca63970542c3a5b5684271334563f0f5f3eeca0fc7568707bdf7035f65f3a
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rubytree (2.0.
|
4
|
+
rubytree (2.0.1)
|
5
5
|
json (~> 2.0, > 2.3.1)
|
6
6
|
|
7
7
|
GEM
|
@@ -9,6 +9,7 @@ GEM
|
|
9
9
|
specs:
|
10
10
|
ast (2.4.2)
|
11
11
|
diff-lcs (1.5.0)
|
12
|
+
docile (1.4.0)
|
12
13
|
json (2.6.2)
|
13
14
|
parallel (1.22.1)
|
14
15
|
parser (3.1.2.0)
|
@@ -54,6 +55,13 @@ GEM
|
|
54
55
|
rubocop-rspec (2.11.1)
|
55
56
|
rubocop (~> 1.19)
|
56
57
|
ruby-progressbar (1.11.0)
|
58
|
+
simplecov (0.21.2)
|
59
|
+
docile (~> 1.1)
|
60
|
+
simplecov-html (~> 0.11)
|
61
|
+
simplecov_json_formatter (~> 0.1)
|
62
|
+
simplecov-html (0.12.3)
|
63
|
+
simplecov-lcov (0.8.0)
|
64
|
+
simplecov_json_formatter (0.1.4)
|
57
65
|
stringio (3.0.2)
|
58
66
|
test-unit (3.5.3)
|
59
67
|
power_assert
|
@@ -75,6 +83,8 @@ DEPENDENCIES
|
|
75
83
|
rubocop-rake (~> 0.0)
|
76
84
|
rubocop-rspec (~> 2.0)
|
77
85
|
rubytree!
|
86
|
+
simplecov (~> 0.21)
|
87
|
+
simplecov-lcov (~> 0.8)
|
78
88
|
test-unit (~> 3.0)
|
79
89
|
yard (~> 0.0, >= 0.9.20)
|
80
90
|
|
data/README.md
CHANGED
@@ -1,9 +1,17 @@
|
|
1
1
|
# **RubyTree** #
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rubytree.png)](http://badge.fury.io/rb/rubytree)
|
4
|
+
![Build State](https://github.com/evolve75/rubytree/actions/workflows/ruby.yml/badge.svg)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/evolve75/RubyTree.png)](https://codeclimate.com/github/evolve75/RubyTree)
|
5
6
|
[![Coverage Status](https://coveralls.io/repos/evolve75/RubyTree/badge.png)](https://coveralls.io/r/evolve75/RubyTree)
|
6
7
|
|
8
|
+
__ _ _
|
9
|
+
/__\_ _| |__ _ _| |_ _ __ ___ ___
|
10
|
+
/ \// | | | '_ \| | | | __| '__/ _ \/ _ \
|
11
|
+
/ _ \ |_| | |_) | |_| | |_| | | __/ __/
|
12
|
+
\/ \_/\__,_|_.__/ \__, |\__|_| \___|\___|
|
13
|
+
|___/
|
14
|
+
|
7
15
|
## DESCRIPTION: ##
|
8
16
|
|
9
17
|
**RubyTree** is a pure Ruby implementation of the generic
|
@@ -202,8 +210,7 @@ downloaded and installed automatically by [Bundler][].
|
|
202
210
|
|
203
211
|
A big thanks to the following contributors for helping improve **RubyTree**:
|
204
212
|
|
205
|
-
1.
|
206
|
-
conversion code.
|
213
|
+
1. Dirk Breuer for contributing the JSON conversion code.
|
207
214
|
2. Vincenzo Farruggia for contributing the (sub)tree cloning code.
|
208
215
|
3. [Eric Cline](https://github.com/escline) for the Rails JSON encoding fix.
|
209
216
|
4. [Darren Oakley](https://github.com/dazoakley) for the tree merge methods.
|
@@ -230,19 +237,13 @@ A big thanks to the following contributors for helping improve **RubyTree**:
|
|
230
237
|
**RubyTree** is licensed under the terms of the [BSD][] license. See
|
231
238
|
[LICENSE.md](./LICENSE.md) for details.
|
232
239
|
|
233
|
-
__ _ _
|
234
|
-
/__\_ _| |__ _ _| |_ _ __ ___ ___
|
235
|
-
/ \// | | | '_ \| | | | __| '__/ _ \/ _ \
|
236
|
-
/ _ \ |_| | |_) | |_| | |_| | | __/ __/
|
237
|
-
\/ \_/\__,_|_.__/ \__, |\__|_| \___|\___|
|
238
|
-
|___/
|
239
240
|
|
240
241
|
[BSD]: http://opensource.org/licenses/bsd-license.php "BSD License"
|
241
242
|
[Binary tree]: http://en.wikipedia.org/wiki/Binary_tree "Binary Tree Data Structure"
|
242
243
|
[Bundler]: http://bundler.io "Bundler"
|
243
|
-
[Comparable]: http://ruby-doc.org/core
|
244
|
-
[Enumerable]: http://ruby-doc.org/core
|
245
|
-
[JSON]:
|
244
|
+
[Comparable]: http://ruby-doc.org/core/Comparable.html "Comparable mix-in"
|
245
|
+
[Enumerable]: http://ruby-doc.org/core/Enumerable.html "Enumerable mix-in"
|
246
|
+
[JSON]: https://rubygems.org/gems/json "JSON"
|
246
247
|
[Rake]: https://rubygems.org/gems/rake "Rake"
|
247
248
|
[Ruby]: http://www.ruby-lang.org "Ruby Programming Language"
|
248
249
|
[SCM]: http://en.wikipedia.org/wiki/Source_Code_Management "Source Code Management"
|
@@ -250,7 +251,7 @@ A big thanks to the following contributors for helping improve **RubyTree**:
|
|
250
251
|
[breadth-first]: http://en.wikipedia.org/wiki/Breadth-first_search "Breadth-first (level-first) Traversal"
|
251
252
|
[git]: http://git-scm.com "Git SCM"
|
252
253
|
[in-order]: http://en.wikipedia.org/wiki/Tree_traversal#In-order "In-order (symmetric) Traversal"
|
253
|
-
[marshaling]: http://ruby-doc.org/core
|
254
|
+
[marshaling]: http://ruby-doc.org/core/Marshal.html "Marshaling in Ruby"
|
254
255
|
[post-order]: http://en.wikipedia.org/wiki/Tree_traversal#Post-order "Post-ordered Traversal"
|
255
256
|
[pre-order]: http://en.wikipedia.org/wiki/Tree_traversal#Pre-order "Pre-ordered Traversal"
|
256
257
|
[rt@github]: http://github.com/evolve75/RubyTree "RubyTree Project Page on Github"
|
@@ -260,6 +261,6 @@ A big thanks to the following contributors for helping improve **RubyTree**:
|
|
260
261
|
[rt_site]: http://rubytree.anupamsg.me "RubyTree Site"
|
261
262
|
[tree_data_structure]: http://en.wikipedia.org/wiki/Tree_data_structure "Tree Data Structure"
|
262
263
|
[RSpec]: https://relishapp.com/rspec/
|
263
|
-
[Rubocop]: https://rubocop.org
|
264
|
+
[Rubocop]: https://rubocop.org/
|
264
265
|
|
265
266
|
[TreeNode]: rdoc-ref:Tree::TreeNode
|
data/Rakefile
CHANGED
@@ -139,18 +139,6 @@ namespace :test do
|
|
139
139
|
task :coverage do
|
140
140
|
ruby 'test/run_test.rb'
|
141
141
|
end
|
142
|
-
|
143
|
-
begin
|
144
|
-
require 'rcov/rcovtask'
|
145
|
-
Rcov::RcovTask.new(:rcov) do |t|
|
146
|
-
t.libs << 'test'
|
147
|
-
t.test_files = FileList['test/**/test_*.rb']
|
148
|
-
t.verbose = true
|
149
|
-
t.rcov_opts << '--exclude /gems/,/Library/,/usr/,spec,lib/tasks'
|
150
|
-
end
|
151
|
-
rescue LoadError
|
152
|
-
# Oh well. Can't have everything.
|
153
|
-
end
|
154
142
|
end
|
155
143
|
|
156
144
|
# ................................ Emacs Tags
|