Commit graph

8 commits

Author SHA1 Message Date
Bill Niblock
bd69690272 gardner.rb: Refactoring
- Move YAML file loading to sapling
- Move tree verification to utility
2017-05-07 16:53:16 -04:00
Bill Niblock
4570ee37e6 sapling.rb: Multiple fixes
- Add logic for Planter, the editor module
- Add logic for catching a bad switch, and reporting accordingly
- Add logic for when no tree is included when required, and reporting
  accordingly
- Move YAML file loading from Dialogue/Gardner to here
2017-05-07 16:51:00 -04:00
Bill Niblock
adecc3b193 dialogue.rb: Add debug mode and results
- Dialogue can show some additional, generally hidden details about what's on
  screen.
- New attribute :debug (Boolean)
- Added debug information
2017-05-07 16:47:05 -04:00
Bill Niblock
520aad9740 utility.rb: Functionality shared across sapling
- Added some constants, specifically those used for brand new trees
- Moved the verify functionality into here
2017-05-07 16:43:57 -04:00
Bill Niblock
36c9f0d3ca Abstract sapling modules into individual modules
- module gardner -> lib/sapling/gardner.rb
- module dialogue -> lib/sapling/dialogue.rb
- module planter -> lib/sapling/planter.rb

- remove duplicate code from lib/sapling.rb
2017-05-07 12:59:36 -04:00
Bill Niblock
c729916f9d Start using Yard
- Add yard to Gemfile
- Configure .yardopts to pull in proper files
- Update custom docs to include yard metadata
2017-05-06 17:34:19 -04:00
Bill Niblock
593b45ce14 lib/sapling.rb: Improve branch handling
- Show viable options in prompt.
- If a user does not select a viable option, inform them, and prompt again.
- Allow for terimnal branches. A terminal branch has no options. More details in
  the Configuration File documentation.
2017-05-06 14:38:53 -04:00
Bill Niblock
7a9a401fad sapling.rb: A dialogue tree utility 2017-05-06 03:57:28 -04:00