Repository navigation
Conversation
DNote failed on Ruby 3 (ERB.new with positional arguments). It runs again, and notes can be written as tags in the manner of YARD (@todo, and @todo for the usual labels), which closes #13. Fixed on the way: the first code line of a note's context was lost; html/list and xml/file failed; xoxo never finished; by_label_file and by_file_label shared a cache with by_label and by_file; the Rake task relied on another tool's task library; --dryrun still wrote. The templates' string methods are refinements now, not added to String. REXML is no longer needed. Tests are on Lemon, as before, with fixtures. The old build files are removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DNote 1.7.1 fails on Ruby 3 with "wrong number of arguments (given 3, expected 1)", from
ERB.newcalled with positional arguments. This gets it running again and adds the tag syntax asked for in #13.Tag notes (closes #13)
A note can be written as a tag, in the manner of YARD, with no colon needed:
@todois collected.@param,@return,@note) are left alone unless asked for with--label.--no-tagsturns it off.Fixes
-c).html/list(a<$ end %>typo) andxml/file(a misnamed variable) failed whenever there were notes.xoxoformats recursed without end; they are now given plain hashes.by_label_fileandby_file_labelshared a cache withby_labelandby_file, so whichever was called second returned the other's result.application,report,trial?) and had noinitialize; it is now an ordinaryRake::TaskLib.--dryrunstill wrote the file.soap4r-ng, xoxo needsxoxo) says so instead of a backtrace.Other changes
indent,tabset,margin,tabto) are refinements, no longer added toString. Custom templates still have them.ERB::Util.html_escapedoes the escaping).DNote::VERSIONis a plain constant;lib/dnote.ymlis gone.dnote.gemspec,Gemfile,Rakefileand GitHub Actions CI (Ruby 3.1 to 4.0); the old build files are removed.Version is set to 1.8.0, with the History entry marked unreleased. The 1.7.1 entry, which was in the published gem but never committed, is added.
🤖 Generated with Claude Code