[ANN] DNote 1.1.2

DNote v1.1.2

http://proutils.github.com/dnote/

Developer's take note! All those "TODO" and "FIXME" notes floating
around your source code are rotting away. They are trapped and in
certain need of your attention.

But not to fret! DNote will help you liberate them. DNote will scan
your source code for labeled comments; collect, collate and sort them;
and then return them to you in a format of your choosing. Wunderbar!

== 1.1 / 2010-02-06

This release primarily adjusts the way output is rendered under-the-
hood. Serialization formats are rendered as before but markup formats
now use Erb. In the process two new serialization formats have been
added: soap and xoxo (you need the supporting libraries installed for
them to work).

Also, this release renames the lib/plugin directory to lib/plugins
(plural) per the new convention of the latest Plugin gem. This only
matters to Syckle users.

1.1.2 fixes indentions for rdoc and markdown formats and improves the
default textual output format.

Hi, a bug occurs when running it in Ruby1.9:

$ dnote .
/usr/local/lib/ruby1.9/gems/1.9.1/gems/dnote-1.1.2/bin/dnote:2:in `load': no
such file to load -- dnote/command (LoadError)
        from /usr/local/lib/ruby1.9/gems/1.9.1/gems/dnote-1.1.2/bin/dnote:2:in
`<top (required)>'
        from /usr/local/bin/dnote:19:in `load'
        from /usr/local/bin/dnote:19:in `<main>'

However it can be solved cy replacing in bin/dnote:

  load "dnote/command"

with:

  load "dnote/command.rb"

···

El Domingo, 7 de Febrero de 2010, Intransition escribió:

DNote v1.1.2

http://proutils.github.com/dnote/

--
Iñaki Baz Castillo <ibc@aliax.net>

FYI. Just pushed out 1.1.3. There was a bug 1.1.2 where the binary was
using 'load' instead of 'require' and was not finding the dnote/
command file.

Thanks to Erik Ostrom for reporting this.

That would work too. Probably doesn't matter, but to be certain, I'll
pose the question: are there any good reasons to use #load in a bin
file instead of #require?

Thanks Iñaki.

···

On Feb 7, 1:20 pm, Iñaki Baz Castillo <i...@aliax.net> wrote:

El Domingo, 7 de Febrero de 2010, Intransition escribió:

> DNote v1.1.2

>http://proutils.github.com/dnote/

Hi, a bug occurs when running it in Ruby1.9:

$ dnote .
/usr/local/lib/ruby1.9/gems/1.9.1/gems/dnote-1.1.2/bin/dnote:2:in `load': no
such file to load -- dnote/command (LoadError)
from /usr/local/lib/ruby1.9/gems/1.9.1/gems/dnote-1.1.2/bin/dnote:2:in
`<top (required)>'
from /usr/local/bin/dnote:19:in `load'
from /usr/local/bin/dnote:19:in `<main>'

However it can be solved cy replacing in bin/dnote:

load "dnote/command"

with:

load "dnote/command.rb"

Take a look to this post explaining it:

  From Java To Ruby: Require vs Load

···

El Domingo, 7 de Febrero de 2010, Intransition escribió:

That would work too. Probably doesn't matter, but to be certain, I'll
pose the question: are there any good reasons to use #load in a bin
file instead of #require?

--
Iñaki Baz Castillo <ibc@aliax.net>

Thanks. Basically reiterates what I already knew. But reading it again
helped clarify for me that require is the way to go.

···

On Feb 7, 2:07 pm, Iñaki Baz Castillo <i...@aliax.net> wrote:

El Domingo, 7 de Febrero de 2010, Intransition escribió:

> That would work too. Probably doesn't matter, but to be certain, I'll
> pose the question: are there any good reasons to use #load in a bin
> file instead of #require?

Take a look to this post explaining it:

http://www.fromjavatoruby.com/2008/10/require-vs-load.html