First comments
Opened this issue ยท 0 comments
Dear Giuseppe,
you asked me to review the code in this library. It looks very good elaborated ๐
I started with some very general thoughts. Probably they could be useful for you.
-
you implemented the default gem layout with the Bundler generator having not really useful file under
bin
. On the other handbin
is the default value for the executable folder for gems which in turn pushed you to defineexe
as a new executable folder in theGemspec
. This newexe
is missing and actually not really required in your project for now. -
I'm not a big fan (but it's only my PoV) of
development dependencies
in theGemspec
. I don't think that it's a real use case to download a gem file, unpack it and continue the development. The right place for development dependencies is theGemfile
. -
Using Git is OK, but in my opinion not to define which files should be included in the the final gem package. A gem package should be the smallest possible version of your project, the project itself could be much larger including many internal information. So manual definition of the package files was always my way. (For the same reason I do not include test files and extension code into the gem. The gem should be compiled and tested for the target platform before the final release. Otherwise it's a bug. But it's not the case here.)
-
I'd rather use the parens around method parameters. But it's your choice :)
I'll look further and try to implement real examples in my context. So stay tuned. And many thanks for your engagement in the community!