Amidst all this being busy stuff, I have released version 0.04 of Treeify (link to gem: https://rubygems.org/gems/treeify)
Here's a list of changes (noted in the Changes.md file):
- bumped version
- added Changes file
- removed benchmarking methods
- updated benchmark script
- updated code for benchmarks
- updated .gitignore, added rubygems badge
- Updated readme to reflect new config method
- updated pending message for ancestors to reflect that it is a bug. This closes #3;
- updated ancestor sql calls
- WITH RECURSIVE query now uses column names defined
- added functionality to build WITH RECURSIVE query properly with column names included in the query
- added test to verify that the SQL generated is correct
- Merge branch 'devin/issues/2'
- changed config -> tree_config to avoid method name clashing
- fixed readme formatting
- added justification section
- actually fixed readme formatting
- fixed readme formatting
- Updated README
- updated README, cleaned up debug code, updated dependencies. This closes #1
- implemented tree structure and added tests
- bumped activerecord dependency requirement
- fix up last example formatting
- more formatting
- readme list formatting
- Added example to README
- README -> README.md
- testing markdown
- added sibling functionality
- added more first level tests, added pending tests for sub children and siblings
- adding a root node to add children to works
- bumped version for release
(My changelog generation needs some work but hey! It's there.)
I haven't yet updated this blog to use the newest Treeify code, but I'll do that soon, I hope. The biggest changes involved adding the ability to specify what columns to use in a query and actually have them retrieved. I created some benchmarks here: https://github.com/dhoss/treeify/wiki/Benchmarks, though I don't know how accurate they are beyond saying one is faster than the other. Although the previous method was faster, it did a lot less, and the new find_by_sql call can be fine tuned in the future.
On a side note, this article about generating Changelogs from git is awesome: http://brettterpstra.com/2014/08/03/shell-tricks-changelogs-with-git/, and so is this snippet: https://coderwall.com/p/5cv5lg/generate-your-changelogs-with-git-log
That's all for now, hopefully I'll get some more time tomorrow to write some more interesting articles.