Chris@0: 2007-12-21 Anupam Sengupta Chris@0: Chris@0: * Rakefile: Added the rcov option to exclude rcov itself from Chris@0: coverage reports. Chris@0: Chris@0: * lib/tree.rb: Minor comment changes. Chris@0: Chris@0: * test/test_tree.rb: Added the TestTree enclosing module, and Chris@0: renamed tests to meet ZenTest requirements. Also added a few Chris@0: missing test cases. Chris@0: Chris@0: * test/test_binarytree.rb: Added the TestTree enclosing Module, Chris@0: and renamed the tests to meet ZenTest requirements. Chris@0: Chris@0: 2007-12-19 Anupam Sengupta Chris@0: Chris@0: * README (Module): Modified the install instructions from source. Chris@0: Chris@0: * lib/tree.rb (Tree::TreeNode::initialize): Removed the Chris@0: unnecessary self_initialize method. Chris@0: (Tree::TreeNode): Removed the spurious self_initialize from the Chris@0: protected list. Chris@0: (Module): Updated the minor version number. Chris@0: Chris@0: * Rakefile: Fixed a problem with reading the Tree::VERSION for the Chris@0: gem packaging, if any prior version of the gem is already installed. Chris@0: Chris@0: 2007-12-18 Anupam Sengupta Chris@0: Chris@0: * lib/tree.rb: Updated the marshalling logic to correctly handle Chris@0: non-string content. Chris@0: (Tree::TreeNode::createDumpRep): Minor code change to use symbols Chris@0: instead of string key names. Chris@0: (Tree): Version number change to 0.5.0 Chris@0: (Tree::TreeNode::hasContent): Minor fix to the comments. Chris@0: Chris@0: * test/test_tree.rb (TC_TreeTest::test_breadth_each): Updated test Chris@0: cases for the marshalling logic. Chris@0: Chris@0: 2007-11-12 Anupam Sengupta Chris@0: Chris@0: * test/test_binarytree.rb: Minor documentation correction. Chris@0: Chris@0: * lib/tree/binarytree.rb (Tree::BinaryTreeNode::isRightChild): Chris@0: Minor documentation change. Chris@0: Chris@0: 2007-10-10 Anupam Sengupta Chris@0: Chris@0: * README: Restructured the format. Chris@0: Chris@0: * Rakefile: Added Hoe related logic. If not present, the Rakefile Chris@0: will default to old behavior. Chris@0: Chris@0: 2007-10-09 Anupam Sengupta Chris@0: Chris@0: * Rakefile: Added setup.rb related tasks. Also added the setup.rb in the PKG_FILES list. Chris@0: Chris@0: 2007-10-01 Anupam Sengupta Chris@0: Chris@0: * Rakefile: Added an optional task for rcov code coverage. Chris@0: Added a dependency for rake in the Gem Specification. Chris@0: Chris@0: * test/test_binarytree.rb: Removed the unnecessary dependency on "Person" class. Chris@0: Chris@0: * test/test_tree.rb: Removed dependency on the redundant "Person" class. Chris@0: (TC_TreeTest::test_comparator): Added a new test for the spaceship operator. Chris@0: (TC_TreeTest::test_hasContent): Added tests for hasContent? and length methods. Chris@0: Chris@0: 2007-08-30 Anupam Sengupta Chris@0: Chris@0: * test/test_tree.rb (TC_TreeTest::test_preordered_each, TC_TreeTest::test_breadth_each, TC_TreeTest::test_detached_copy): Chris@0: Added new tests for the new functions added to tree.rb. Chris@0: Chris@0: * lib/tree.rb (Tree::TreeNode::detached_copy, Tree::TreeNode::preordered_each, Tree::TreeNode::breadth_each): Chris@0: Added new functions for returning a detached copy of the node and Chris@0: for performing breadth first traversal. Also added the pre-ordered Chris@0: traversal function which is an alias of the existing 'each' method. Chris@0: Chris@0: * test/test_binarytree.rb (TC_BinaryTreeTest::test_swap_children): Chris@0: Added a test case for the children swap function. Chris@0: Chris@0: * lib/tree/binarytree.rb (Tree::BinaryTreeNode::swap_children): Chris@0: Added new function to swap the children. Other minor changes in Chris@0: comments and code. Chris@0: Chris@0: 2007-07-18 Anupam Sengupta Chris@0: Chris@0: * lib/tree/binarytree.rb (Tree::BinaryTreeNode::leftChild / Chris@0: rightChild): Minor cosmetic change on the parameter name. Chris@0: Chris@0: * test/testbinarytree.rb (TC_BinaryTreeTest::test_isLeftChild): Chris@0: Minor syntax correction. Chris@0: Chris@0: * lib/tree.rb (Tree::TreeNode::depth): Added a tree depth Chris@0: computation method. Chris@0: (Tree::TreeNode::breadth): Added a tree breadth method. Chris@0: Chris@0: * test/testtree.rb (TC_TreeTest::test_depth/test_breadth): Added a Chris@0: test for the depth and breadth method. Chris@0: Chris@0: * lib/tree/binarytree.rb (Tree::BinaryTreeNode::is*Child): Chris@0: Added tests for determining whether a node is a left or right Chris@0: child. Chris@0: Chris@0: * test/testbinarytree.rb: Added the test cases for the binary tree Chris@0: implementation. Chris@0: (TC_BinaryTreeTest::test_is*Child): Added tests for right or left Chris@0: childs. Chris@0: Chris@0: * lib/tree/binarytree.rb: Added the binary tree implementation. Chris@0: Chris@0: 2007-07-17 Anupam Sengupta Chris@0: Chris@0: * lib/tree.rb (Tree::TreeNode::parentage): Renamed 'ancestors' Chris@0: method to 'parentage' to avoid clobbering Module.ancestors Chris@0: Chris@0: 2007-07-16 Anupam Sengupta Chris@0: Chris@0: * Rakefile: Added an optional rtags task to generate TAGS file for Chris@0: Emacs. Chris@0: Chris@0: * lib/tree.rb (Tree::TreeNode): Added navigation methods for Chris@0: siblings and children. Also added some convenience methods. Chris@0: Chris@0: 2007-07-08 Anupam Sengupta Chris@0: Chris@0: * Rakefile: Added a developer target for generating rdoc for the Chris@0: website. Chris@0: Chris@0: 2007-06-24 Anupam Sengupta Chris@0: Chris@0: * test/testtree.rb, lib/tree.rb: Added the each_leaf traversal method. Chris@0: Chris@0: * README: Replaced all occurrances of LICENSE with COPYING Chris@0: and lowercased all instances of the word 'RubyTree'. Chris@0: Chris@0: * Rakefile: Replaced all occurrances of LICENSE with COPYING Chris@0: Chris@0: 2007-06-23 Anupam Sengupta Chris@0: Chris@0: * lib/tree.rb (Tree::TreeNode::isLeaf): Added a isLeaf? method. Chris@0: Chris@0: * test/testtree.rb (TC_TreeTest::test_removeFromParent): Added Chris@0: test for isLeaf? method Chris@0: Chris@0: * Rakefile: Added the LICENSE and ChangeLog to the extra RDoc files. Chris@0: Chris@0: * lib/tree.rb: Minor updates to the comments. Chris@0: Chris@0: * test/testtree.rb: Added the Copyright and License header. Chris@0: Chris@0: * test/person.rb: Added the Copyright and License header. Chris@0: Chris@0: * lib/tree.rb: Added the Copyright and License header. Chris@0: Chris@0: * Rakefile: Added the LICENSE and Changelog to be part of the RDoc task. Chris@0: Chris@0: * README: Added documentation in the README, including install Chris@0: instructions and an example. Chris@0: Chris@0: * LICENSE: Added the BSD LICENSE file. Chris@0: Chris@0: * Changelog: Added the Changelog file.