file
keyword argument toGinny::Class.generate
, to set the name of the generated file.- New helper methods for tests.
- Add
classify_name
option forGinny::Class
, which can disable the use ofDry::Inflector#classify
on the class name.
- Updated JSON schemas.
- Add
-v
/--version
flag to the Ginny command line tool.
- Add
default_constructor
option forGinny::Class
, which will generate a method similar to ActiveRecord::Base.create for the class.
- Improve regular expressions for trimming trailing whitespace.
- Modify inflections for
data
.
- Improved doc comments for various functions.
- Add
Ginny::INDENT
constant.
- Make sure not to remove newlines when trimming trailing whitespace before calls to render.
- JSON Schema definition for Ginny definition files.
- Update badges in readme.
- Add tcd/coolkit dependency.
- Extracted
String.indent
,String.comment
, andsymbolize_keys
into their own gem for reuse.
- Extracted
- Add dry-rb/dry-inflector dependency.
- Add
file_prefix
option toGinny::Class
for a string to prepend to the name of the generated file.
- Update description and documentation_uri in gemspec.
- Fix doc comment in
Ginny.symbolize_keys
that was causingyard gems
to give this warning:[warn]: @param tag has unknown parameter name: obj in file `lib/food_truck/symbolize.rb' near line 10
- Add
body
argument toGinny::Class
for code to be generated in the class body.
- Add the option to wrap generated code in modules.
- Generate function body in
Ginny::Func.render
- Generate Functions with Yard doc comments. (
Ginny::Func
) - Generate Function Parameters. (
Ginny::Param
) - Add support for generating classes with inheritance.
- Add
food_truck
executable (WIP).
- Rename
Ginny::Klass
toGinny::Class
- Rename
Ginny::Attribute
toGinny::Attr
- Don't use Yard
@!attribute
tags unless the attributes are added dynamically (ex: Rails Models)
- Add changelog
- Implement basic functionality.
- Generate Classes with Yard doc comments. (
Ginny::Klass
) - Generate getters/setters (
attr_accessor
s) with Yard doc comments. (Ginny::Attribute
) - Load data from YAML/JSON files.
- Generate Classes with Yard doc comments. (