1 2007-12-21 Anupam Sengupta <anupamsg@gmail.com>
3 * Rakefile: Added the rcov option to exclude rcov itself from
6 * lib/tree.rb: Minor comment changes.
8 * test/test_tree.rb: Added the TestTree enclosing module, and
9 renamed tests to meet ZenTest requirements. Also added a few
12 * test/test_binarytree.rb: Added the TestTree enclosing Module,
13 and renamed the tests to meet ZenTest requirements.
15 2007-12-19 Anupam Sengupta <anupamsg@gmail.com>
17 * README (Module): Modified the install instructions from source.
19 * lib/tree.rb (Tree::TreeNode::initialize): Removed the
20 unnecessary self_initialize method.
21 (Tree::TreeNode): Removed the spurious self_initialize from the
23 (Module): Updated the minor version number.
25 * Rakefile: Fixed a problem with reading the Tree::VERSION for the
26 gem packaging, if any prior version of the gem is already installed.
28 2007-12-18 Anupam Sengupta <anupamsg@gmail.com>
30 * lib/tree.rb: Updated the marshalling logic to correctly handle
32 (Tree::TreeNode::createDumpRep): Minor code change to use symbols
33 instead of string key names.
34 (Tree): Version number change to 0.5.0
35 (Tree::TreeNode::hasContent): Minor fix to the comments.
37 * test/test_tree.rb (TC_TreeTest::test_breadth_each): Updated test
38 cases for the marshalling logic.
40 2007-11-12 Anupam Sengupta <anupamsg@gmail.com>
42 * test/test_binarytree.rb: Minor documentation correction.
44 * lib/tree/binarytree.rb (Tree::BinaryTreeNode::isRightChild):
45 Minor documentation change.
47 2007-10-10 Anupam Sengupta <anupamsg@gmail.com>
49 * README: Restructured the format.
51 * Rakefile: Added Hoe related logic. If not present, the Rakefile
52 will default to old behavior.
54 2007-10-09 Anupam Sengupta <anupamsg@gmail.com>
56 * Rakefile: Added setup.rb related tasks. Also added the setup.rb in the PKG_FILES list.
58 2007-10-01 Anupam Sengupta <anupamsg@gmail.com>
60 * Rakefile: Added an optional task for rcov code coverage.
61 Added a dependency for rake in the Gem Specification.
63 * test/test_binarytree.rb: Removed the unnecessary dependency on "Person" class.
65 * test/test_tree.rb: Removed dependency on the redundant "Person" class.
66 (TC_TreeTest::test_comparator): Added a new test for the spaceship operator.
67 (TC_TreeTest::test_hasContent): Added tests for hasContent? and length methods.
69 2007-08-30 Anupam Sengupta <anupamsg@gmail.com>
71 * test/test_tree.rb (TC_TreeTest::test_preordered_each, TC_TreeTest::test_breadth_each, TC_TreeTest::test_detached_copy):
72 Added new tests for the new functions added to tree.rb.
74 * lib/tree.rb (Tree::TreeNode::detached_copy, Tree::TreeNode::preordered_each, Tree::TreeNode::breadth_each):
75 Added new functions for returning a detached copy of the node and
76 for performing breadth first traversal. Also added the pre-ordered
77 traversal function which is an alias of the existing 'each' method.
79 * test/test_binarytree.rb (TC_BinaryTreeTest::test_swap_children):
80 Added a test case for the children swap function.
82 * lib/tree/binarytree.rb (Tree::BinaryTreeNode::swap_children):
83 Added new function to swap the children. Other minor changes in
86 2007-07-18 Anupam Sengupta <anupamsg@gmail.com>
88 * lib/tree/binarytree.rb (Tree::BinaryTreeNode::leftChild /
89 rightChild): Minor cosmetic change on the parameter name.
91 * test/testbinarytree.rb (TC_BinaryTreeTest::test_isLeftChild):
92 Minor syntax correction.
94 * lib/tree.rb (Tree::TreeNode::depth): Added a tree depth
96 (Tree::TreeNode::breadth): Added a tree breadth method.
98 * test/testtree.rb (TC_TreeTest::test_depth/test_breadth): Added a
99 test for the depth and breadth method.
101 * lib/tree/binarytree.rb (Tree::BinaryTreeNode::is*Child):
102 Added tests for determining whether a node is a left or right
105 * test/testbinarytree.rb: Added the test cases for the binary tree
107 (TC_BinaryTreeTest::test_is*Child): Added tests for right or left
110 * lib/tree/binarytree.rb: Added the binary tree implementation.
112 2007-07-17 Anupam Sengupta <anupamsg@gmail.com>
114 * lib/tree.rb (Tree::TreeNode::parentage): Renamed 'ancestors'
115 method to 'parentage' to avoid clobbering Module.ancestors
117 2007-07-16 Anupam Sengupta <anupamsg@gmail.com>
119 * Rakefile: Added an optional rtags task to generate TAGS file for
122 * lib/tree.rb (Tree::TreeNode): Added navigation methods for
123 siblings and children. Also added some convenience methods.
125 2007-07-08 Anupam Sengupta <anupamsg@gmail.com>
127 * Rakefile: Added a developer target for generating rdoc for the
130 2007-06-24 Anupam Sengupta <anupamsg@gmail.com>
132 * test/testtree.rb, lib/tree.rb: Added the each_leaf traversal method.
134 * README: Replaced all occurrances of LICENSE with COPYING
135 and lowercased all instances of the word 'RubyTree'.
137 * Rakefile: Replaced all occurrances of LICENSE with COPYING
139 2007-06-23 Anupam Sengupta <anupamsg@gmail.com>
141 * lib/tree.rb (Tree::TreeNode::isLeaf): Added a isLeaf? method.
143 * test/testtree.rb (TC_TreeTest::test_removeFromParent): Added
144 test for isLeaf? method
146 * Rakefile: Added the LICENSE and ChangeLog to the extra RDoc files.
148 * lib/tree.rb: Minor updates to the comments.
150 * test/testtree.rb: Added the Copyright and License header.
152 * test/person.rb: Added the Copyright and License header.
154 * lib/tree.rb: Added the Copyright and License header.
156 * Rakefile: Added the LICENSE and Changelog to be part of the RDoc task.
158 * README: Added documentation in the README, including install
159 instructions and an example.
161 * LICENSE: Added the BSD LICENSE file.
163 * Changelog: Added the Changelog file.