asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
104 stars 101 forks source link

Rename registration files #46

Closed edusantana closed 9 years ago

edusantana commented 9 years ago

It would be more verbose to rename files inside lib/*.rb to include registration in their names:

lib/chart-block-macro-registration.rb
lib/chrome-inline-macro-registration.rb
lib/copyright-footer-postprocessor-registration.rb
lib/emoji-inline-macro-registration.rb
(...)

It would avoid errors like #45.

mojavelinux commented 9 years ago

I think this can be solved by the README. I'd rather not rename these files as this is not consistent with the Ruby way and the file names become too verbose.

In Ruby, the top-level name registers and activates the implementation files. That's how we've structured this repo. Once they are packaged in a gem (the long-term plan), the flag becomes -r gist-block-macro, which reads very nicely.