rubytree 0.8.3 → 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 +7 -0
- data/API-CHANGES.rdoc +51 -20
- data/Gemfile +5 -1
- data/Gemfile.lock +14 -13
- data/History.rdoc +110 -42
- data/LICENSE.md +37 -0
- data/README.md +276 -0
- data/Rakefile +53 -28
- data/TAGS +218 -0
- data/TODO.org +114 -42
- data/examples/example_basic.rb +53 -0
- data/lib/tree.rb +357 -529
- data/lib/tree/binarytree.rb +76 -36
- data/lib/tree/utils/camel_case_method_handler.rb +78 -0
- data/lib/tree/utils/json_converter.rb +125 -0
- data/lib/tree/utils/metrics_methods.rb +172 -0
- data/lib/tree/utils/tree_merge_handler.rb +118 -0
- data/lib/tree/utils/utils.rb +41 -0
- data/lib/tree/version.rb +3 -3
- data/test/test_binarytree.rb +46 -1
- data/test/test_subclassed_node.rb +70 -0
- data/test/test_thread_and_fiber.rb +88 -0
- data/test/test_tree.rb +209 -35
- metadata +85 -82
- data/.dir-locals.el +0 -5
- data/COPYING.rdoc +0 -32
- data/README.rdoc +0 -219
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubytree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.9.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Anupam Sengupta
|
@@ -14,174 +13,178 @@ dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: structured_warnings
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.1
|
19
|
+
version: '0.1'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.1
|
26
|
+
version: '0.1'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.
|
33
|
+
version: '1.8'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
40
|
+
version: '1.8'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
|
-
name:
|
42
|
+
name: bundler
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: '1.5'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
54
|
+
version: '1.5'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
56
|
+
name: rdoc
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - "~>"
|
68
60
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
61
|
+
version: '4.1'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - "~>"
|
76
67
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
68
|
+
version: '4.1'
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
70
|
+
name: yard
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
|
-
- -
|
73
|
+
- - "~>"
|
84
74
|
- !ruby/object:Gem::Version
|
85
|
-
version: 0.
|
75
|
+
version: '0.8'
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
|
-
- -
|
80
|
+
- - "~>"
|
92
81
|
- !ruby/object:Gem::Version
|
93
|
-
version: 0.
|
82
|
+
version: '0.8'
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
|
-
name:
|
84
|
+
name: rtagstask
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
|
-
- - ~>
|
87
|
+
- - "~>"
|
100
88
|
- !ruby/object:Gem::Version
|
101
|
-
version: 0.
|
89
|
+
version: '0.0'
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
|
-
- - ~>
|
94
|
+
- - "~>"
|
108
95
|
- !ruby/object:Gem::Version
|
109
|
-
version: 0.
|
110
|
-
description:
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
96
|
+
version: '0.0'
|
97
|
+
description: |2
|
98
|
+
RubyTree is a Ruby implementation of the generic tree data structure.
|
99
|
+
It provides a node-based model to store uniquely identifiable node-elements
|
100
|
+
in the tree and simple APIs to access, modify and traverse the structure.
|
101
|
+
RubyTree is node-centric, where individual nodes on the tree are the primary
|
102
|
+
compositional and structural elements.
|
103
|
+
|
104
|
+
This implementation also mixes in the Enumerable module to allow standard
|
105
|
+
access to the tree as a collection.
|
116
106
|
email: anupamsg@gmail.com
|
117
107
|
executables: []
|
118
108
|
extensions: []
|
119
109
|
extra_rdoc_files:
|
120
|
-
- README.
|
121
|
-
-
|
110
|
+
- README.md
|
111
|
+
- LICENSE.md
|
122
112
|
- API-CHANGES.rdoc
|
123
113
|
- History.rdoc
|
124
114
|
files:
|
125
|
-
-
|
126
|
-
- lib/tree/binarytree.rb
|
127
|
-
- lib/tree/tree_deps.rb
|
128
|
-
- lib/tree/version.rb
|
129
|
-
- lib/tree.rb
|
115
|
+
- ".gemtest"
|
130
116
|
- API-CHANGES.rdoc
|
131
|
-
- COPYING.rdoc
|
132
117
|
- Gemfile
|
133
118
|
- Gemfile.lock
|
134
119
|
- History.rdoc
|
120
|
+
- LICENSE.md
|
121
|
+
- README.md
|
135
122
|
- Rakefile
|
136
|
-
-
|
123
|
+
- TAGS
|
137
124
|
- TODO.org
|
125
|
+
- examples/example_basic.rb
|
126
|
+
- lib/rubytree.rb
|
127
|
+
- lib/tree.rb
|
128
|
+
- lib/tree/binarytree.rb
|
129
|
+
- lib/tree/tree_deps.rb
|
130
|
+
- lib/tree/utils/camel_case_method_handler.rb
|
131
|
+
- lib/tree/utils/json_converter.rb
|
132
|
+
- lib/tree/utils/metrics_methods.rb
|
133
|
+
- lib/tree/utils/tree_merge_handler.rb
|
134
|
+
- lib/tree/utils/utils.rb
|
135
|
+
- lib/tree/version.rb
|
138
136
|
- test/test_binarytree.rb
|
139
137
|
- test/test_rubytree_require.rb
|
138
|
+
- test/test_subclassed_node.rb
|
139
|
+
- test/test_thread_and_fiber.rb
|
140
140
|
- test/test_tree.rb
|
141
|
-
- .dir-locals.el
|
142
|
-
- .gemtest
|
143
141
|
homepage: http://rubytree.rubyforge.org
|
144
142
|
licenses:
|
145
143
|
- BSD
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
144
|
+
metadata: {}
|
145
|
+
post_install_message: |2
|
146
|
+
========================================================================
|
147
|
+
Thank you for installing rubytree.
|
148
|
+
|
149
|
+
Note that the TreeNode#siblings method has changed in 0.8.3.
|
150
|
+
It now returns an empty array for the root node.
|
151
|
+
|
152
|
+
WARNING: SIGNIFICANT API CHANGE in 0.8.0 !
|
153
|
+
------------------------------------------
|
154
|
+
|
155
|
+
Please note that as of 0.8.0 the CamelCase method names are DEPRECATED.
|
156
|
+
The new method names follow the ruby_convention (separated by '_').
|
157
|
+
|
158
|
+
The old CamelCase methods still work (a warning will be displayed),
|
159
|
+
but may go away in the future.
|
160
|
+
|
161
|
+
Details of the API changes are documented in the API-CHANGES file.
|
162
|
+
========================================================================
|
154
163
|
rdoc_options:
|
155
|
-
- --title
|
164
|
+
- "--title"
|
156
165
|
- Rubytree Documentation
|
157
|
-
- --quiet
|
166
|
+
- "--quiet"
|
158
167
|
require_paths:
|
159
168
|
- lib
|
160
169
|
required_ruby_version: !ruby/object:Gem::Requirement
|
161
|
-
none: false
|
162
170
|
requirements:
|
163
|
-
- -
|
171
|
+
- - ">="
|
164
172
|
- !ruby/object:Gem::Version
|
165
|
-
version:
|
166
|
-
segments:
|
167
|
-
- 0
|
168
|
-
hash: -2468456900520768695
|
173
|
+
version: 1.8.7
|
169
174
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
175
|
requirements:
|
172
|
-
- -
|
176
|
+
- - ">="
|
173
177
|
- !ruby/object:Gem::Version
|
174
178
|
version: '0'
|
175
|
-
segments:
|
176
|
-
- 0
|
177
|
-
hash: -2468456900520768695
|
178
179
|
requirements: []
|
179
180
|
rubyforge_project: rubytree
|
180
|
-
rubygems_version:
|
181
|
+
rubygems_version: 2.2.0.rc.1
|
181
182
|
signing_key:
|
182
|
-
specification_version:
|
183
|
+
specification_version: 4
|
183
184
|
summary: A generic tree data structure.
|
184
185
|
test_files:
|
185
186
|
- test/test_binarytree.rb
|
186
187
|
- test/test_rubytree_require.rb
|
188
|
+
- test/test_subclassed_node.rb
|
189
|
+
- test/test_thread_and_fiber.rb
|
187
190
|
- test/test_tree.rb
|
data/.dir-locals.el
DELETED
data/COPYING.rdoc
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
= RubyTree
|
2
|
-
|
3
|
-
http://rubytree.rubyforge.org
|
4
|
-
|
5
|
-
Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Anupam Sengupta (anupamsg at gmail dot com)
|
6
|
-
|
7
|
-
All rights reserved.
|
8
|
-
|
9
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
10
|
-
following conditions are met:
|
11
|
-
|
12
|
-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
13
|
-
disclaimer.
|
14
|
-
|
15
|
-
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
|
16
|
-
disclaimer in the documentation and/or other materials provided with the distribution.
|
17
|
-
|
18
|
-
- Neither the name of the organization nor the names of its contributors may be used to endorse or promote products
|
19
|
-
derived from this software without specific prior written permission.
|
20
|
-
|
21
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
22
|
-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
23
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
24
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
25
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
26
|
-
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
27
|
-
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
28
|
-
|
29
|
-
# Local Variables:
|
30
|
-
# mode: rdoc
|
31
|
-
# coding: utf-8-unix
|
32
|
-
# End:
|
data/README.rdoc
DELETED
@@ -1,219 +0,0 @@
|
|
1
|
-
= RubyTree
|
2
|
-
__ _ _
|
3
|
-
/__\_ _| |__ _ _| |_ _ __ ___ ___
|
4
|
-
/ \// | | | '_ \| | | | __| '__/ _ \/ _ \
|
5
|
-
/ _ \ |_| | |_) | |_| | |_| | | __/ __/
|
6
|
-
\/ \_/\__,_|_.__/ \__, |\__|_| \___|\___|
|
7
|
-
|___/
|
8
|
-
|
9
|
-
Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Anupam Sengupta (anupamsg at gmail dot com)
|
10
|
-
|
11
|
-
http://rubytree.rubyforge.org
|
12
|
-
|
13
|
-
== DESCRIPTION:
|
14
|
-
|
15
|
-
RubyTree is a Ruby implementation of the generic tree data structure. It provides a node-based model to store keyed
|
16
|
-
node-elements in the tree and simple APIs to access, modify and traverse the structure. RubyTree is node-centric, where
|
17
|
-
individual nodes on the tree are the primary compositional and structural elements.
|
18
|
-
|
19
|
-
This implementation also mixes in the Enumerable module to allow standard access to the tree as a collection.
|
20
|
-
|
21
|
-
== SYNOPSIS:
|
22
|
-
|
23
|
-
As an example, the following code-snippet implements this tree structure:
|
24
|
-
|
25
|
-
+------------+
|
26
|
-
| ROOT |
|
27
|
-
+-----+------+
|
28
|
-
+-------------+------------+
|
29
|
-
| |
|
30
|
-
+-------+-------+ +-------+-------+
|
31
|
-
| CHILD 1 | | CHILD 2 |
|
32
|
-
+-------+-------+ +---------------+
|
33
|
-
|
|
34
|
-
|
|
35
|
-
+-------+-------+
|
36
|
-
| GRANDCHILD 1 |
|
37
|
-
+---------------+
|
38
|
-
|
39
|
-
# ..... Example starts.
|
40
|
-
require 'tree' # Load the library
|
41
|
-
|
42
|
-
# ..... Create the root node first. Note that every node has a name and an optional content payload.
|
43
|
-
root_node = Tree::TreeNode.new("ROOT", "Root Content")
|
44
|
-
|
45
|
-
# ..... Now insert the child nodes. Note that you can "chain" the child insertions for a given path to any depth.
|
46
|
-
root_node << Tree::TreeNode.new("CHILD1", "Child1 Content") << Tree::TreeNode.new("GRANDCHILD1", "GrandChild1 Content")
|
47
|
-
root_node << Tree::TreeNode.new("CHILD2", "Child2 Content")
|
48
|
-
|
49
|
-
# ..... Lets print the representation to stdout. This is primarily used for debugging purposes.
|
50
|
-
root_node.print_tree
|
51
|
-
|
52
|
-
# ..... Lets directly access children and grandchildren of the root. The can be "chained" for a given path to any depth.
|
53
|
-
child1 = root_node["CHILD1"]
|
54
|
-
grand_child1 = root_node["CHILD1"]["GRANDCHILD1"]
|
55
|
-
|
56
|
-
# ..... Lets retrieve siblings of the current node as an array.
|
57
|
-
siblings_of_child1 = child1.siblings
|
58
|
-
|
59
|
-
# ..... Lets retrieve immediate children of the root node as an array.
|
60
|
-
children_of_root = root_node.children
|
61
|
-
|
62
|
-
# ..... This is a depth-first and L-to-R pre-ordered traversal.
|
63
|
-
root_node.each { |node| node.content.reverse }
|
64
|
-
|
65
|
-
# ..... Lets remove a child node from the root node.
|
66
|
-
root_node.remove!(child1)
|
67
|
-
|
68
|
-
|
69
|
-
== REQUIREMENTS:
|
70
|
-
|
71
|
-
* Ruby 1.8+ (http://www.ruby-lang.org)
|
72
|
-
|
73
|
-
* Run-time Dependencies:
|
74
|
-
* structured_warnings (http://github.com/schmidt/structured_warnings) rubygem
|
75
|
-
* Yard (http://yardoc.org) Rubygem for the documentation
|
76
|
-
* JSON (http://flori.github.com/json) rubygem for converting to/from the JSON format
|
77
|
-
|
78
|
-
* Development dependencies (not required for installing the gem):
|
79
|
-
* Hoe (http://seattlerb.rubyforge.org/hoe/Hoe.html) Rubygem
|
80
|
-
* gemcutter (http://gemcutter.org/gems/gemcutter) Rubygem
|
81
|
-
* Rubyforge (http://codeforpeople.rubyforge.org/rubyforge) Rubygem
|
82
|
-
|
83
|
-
== INSTALL:
|
84
|
-
|
85
|
-
RubyTree is an open source project and is hosted at:
|
86
|
-
|
87
|
-
http://rubytree.rubyforge.org
|
88
|
-
|
89
|
-
RubyTree can be downloaded as a Rubygem or as a tar/zip file from:
|
90
|
-
|
91
|
-
http://rubyforge.org/frs/?group_id=1215&release_id=8817
|
92
|
-
|
93
|
-
The file-name is one of:
|
94
|
-
|
95
|
-
rubytree-<VERSION>.gem - The Rubygem
|
96
|
-
rubytree-<VERSION>.tgz - GZipped source files
|
97
|
-
rubytree-<VERSION>.zip - Zipped source files
|
98
|
-
|
99
|
-
Download the appropriate file-type for your system.
|
100
|
-
|
101
|
-
It is recommended to install RubyTree as a Ruby Gem, as this is an easy way to keep the version updated, and keep
|
102
|
-
multiple versions of the library available on your system.
|
103
|
-
|
104
|
-
=== Installing the Gem
|
105
|
-
|
106
|
-
To Install the Gem, from a Terminal/CLI command prompt, issue the command:
|
107
|
-
|
108
|
-
$ gem install rubytree
|
109
|
-
|
110
|
-
This should install the gem file for RubyTree. Note that you may need to be a super-user (root) to successfully install
|
111
|
-
the gem.
|
112
|
-
|
113
|
-
=== Installing from the tgz/zip file
|
114
|
-
|
115
|
-
Extract the archive file (tgz or zip) and run the following command from the top-level source directory:
|
116
|
-
|
117
|
-
ruby ./setup.rb
|
118
|
-
|
119
|
-
You may need administrator/super-user privileges to complete the setup using this method.
|
120
|
-
|
121
|
-
== DOCUMENTATION:
|
122
|
-
|
123
|
-
The primary class for this implementation is Tree::TreeNode. See the class documentation for an usage example.
|
124
|
-
|
125
|
-
From a command line/terminal prompt, you can issue the following command to view the text mode ri documentation:
|
126
|
-
|
127
|
-
ri Tree::TreeNode
|
128
|
-
|
129
|
-
Documentation for the latest released version is available at:
|
130
|
-
|
131
|
-
http://rubytree.rubyforge.org/rdoc
|
132
|
-
|
133
|
-
Documentation for the latest git HEAD is available at:
|
134
|
-
|
135
|
-
http://rdoc.info/projects/evolve75/RubyTree
|
136
|
-
|
137
|
-
Note that the documentation is formatted for Yard (http://yardoc.org).
|
138
|
-
|
139
|
-
== DEVELOPERS:
|
140
|
-
|
141
|
-
You can download the latest released source code using the tar or zip version as mentioned above in the installation
|
142
|
-
section.
|
143
|
-
|
144
|
-
Alternatively, you can checkout the latest commit/revision from the version control system. Note that RubyTree's
|
145
|
-
primary SCM[http://en.wikipedia.org/wiki/Source_Code_Management] is on git[http://git-scm.com] and is
|
146
|
-
also mirrored on github[http://www.github.com].
|
147
|
-
|
148
|
-
=== Using the Git repository
|
149
|
-
|
150
|
-
For checking out from the primary Git repository, use the following command:
|
151
|
-
|
152
|
-
$ git clone git://rubyforge.org/rubytree.git
|
153
|
-
|
154
|
-
The Git repository is available for browsing on the web at: http://fisheye2.atlassian.com/browse/rubytree
|
155
|
-
|
156
|
-
=== Using the Git repository on http://github.com
|
157
|
-
|
158
|
-
For cloning the git repository, use one of the following commands:
|
159
|
-
|
160
|
-
$ git clone git://github.com/evolve75/RubyTree.git
|
161
|
-
|
162
|
-
or
|
163
|
-
$ git clone http://github.com/evolve75/RubyTree.git
|
164
|
-
|
165
|
-
The git repository is available on the web at: http://github.com/evolve75/RubyTree
|
166
|
-
|
167
|
-
=== Setting up the development environment
|
168
|
-
|
169
|
-
After checking out the source, run:
|
170
|
-
|
171
|
-
$ rake newb
|
172
|
-
|
173
|
-
This task will install any missing dependencies, run the tests/specs, and generate the RDoc.
|
174
|
-
|
175
|
-
Note that you need to have the Rubygem Hoe[http://seattlerb.rubyforge.org/hoe/Hoe.html] to successfully run the rake
|
176
|
-
tasks. Installing Hoe may also install additional pre-requisite gems. See the REQUIREMENTS section in this document for
|
177
|
-
details.
|
178
|
-
|
179
|
-
For generating the documentation, it is strongly suggested that the Yard[http://yardoc.org] gem be installed.
|
180
|
-
|
181
|
-
== ACKNOWLEDGMENTS:
|
182
|
-
|
183
|
-
I would like to acknowledge the following contributors for helping improve RubyTree:
|
184
|
-
|
185
|
-
1. Dirk Breuer (http://github.com/railsbros-dirk) for contributing the JSON conversion code.
|
186
|
-
2. Vincenzo Farruggia for contributing the (sub)tree cloning code.
|
187
|
-
3. Eric Cline (https://github.com/escline) for the Rails JSON encoding fix.
|
188
|
-
|
189
|
-
== LICENSE:
|
190
|
-
|
191
|
-
RubyTree is licensed under the BSD[http://www.opensource.org/licenses/bsd-license.php] license.
|
192
|
-
|
193
|
-
Copyright (c) 2006, 2007, 2008, 2009, 2010 Anupam Sengupta
|
194
|
-
All rights reserved.
|
195
|
-
|
196
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
|
197
|
-
following conditions are met:
|
198
|
-
|
199
|
-
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following
|
200
|
-
disclaimer.
|
201
|
-
|
202
|
-
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
|
203
|
-
disclaimer in the documentation and/or other materials provided with the distribution.
|
204
|
-
|
205
|
-
- Neither the name of the organization nor the names of its contributors may be used to endorse or promote products
|
206
|
-
derived from this software without specific prior written permission.
|
207
|
-
|
208
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
209
|
-
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
210
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
211
|
-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
212
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
213
|
-
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
214
|
-
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
215
|
-
|
216
|
-
# Local Variables:
|
217
|
-
# mode: rdoc
|
218
|
-
# coding: utf-8-unix
|
219
|
-
# End:
|