- Now the gem works for both Ruby versions 2.X and 3.X.
- Improved templates. MarkupNode was extracted to separate file and single template defalult.md.erb was left; cleaned templates tests.
- Improved
promo:publish
command and now it's using default.md.erb
- Updated keyword argument in Service class to support Ruby 3. If you need Ruby 2.X support, you should use v0.3.2.
- Updated
minitest
,bundler
andthor
dependencies. - Improved
default.md.erb
andpandoc.md.erb
- now it adds automatic title.id
when original title is empty.
- Updated
rake
,bundler
, andthor
dependencies.
- Fixed error with reading files that read attributes to body.
- Added
mm
command to<project>.thor
that creates "Meeting Minutes" files in<project>/mm
folder.
- Meet services instead of interactors. All interactors removed and their responsibility moved to appropriate services.
- Refactored printing information about repository loading progress. Now
ReadNode.call(on_error: )
acceptson_error
callback and you can provide any method proc or lambda there likelambda {|err| puts err}
. - Refactored previous behavior where interactors loaded repository by QueryAssembly interactor. Now it is responsibility of
LoadAssembly
service and other services that require repository just get it through parameter. clerq new PROJECT
command brings thelib\clerq_doc.thor
example of publishing and importing existing documents in the current clerq project repository. To see these just copy the file to root project folder near<project>.thor
file.
- Enhanced the
Node
class that brings the possibility to provide node id through{{id: <id>}}
metadata attribute. But it will just skipped when id is already provided by# [<id>]
. - Enhanced
NodeReader
class; now it supports three metadata attributes delimiters -\n
,;
, and,
that can be mixed. CheckAssembly
interactor replaced byCheckAssembly
service that provides improved error information with nodes ids and source files names.file_name
attribute changed tofilename
inNodeReader
.
- Started new project Clerq Video Guide that provides example of using Clerq.
- Done massive refactoring of source code; no more gateways.
- Totally redesigned NodeRepository and TextRepository.
- Improved interactors caused by gateways throwing out.
- Improved tests suite; no more DEPRECATED Minitest; Dir.mktmpdir is used for sandbox.
- Improved README to include all the changes mentioned before.
- Improved
clerq new PROJECT
command; when thePROJECT
parameter consists of more than one word, it will create<project>.thor
file that follows to usual ruby file and class naming conventions; e.g. foruser guide
it will createuser_guide.thor
andclass UserGuide < Thor
inside. - Shortened
content.md.tt
content - Only two templates in the box are left -
default.md.erb
andpandoc.md.erb
. - Thor
error(msg)
incli.rb
changed tostop!(mgs); raise Thor::Error
. - Improved CLI for
build
,check
,toc
,node
; now each one checks if the command is running in clerq project, checked ifclerq.yml
orsrc
folder exist. - Other small improvements.
First release