Releases: strongself/Generamba
Small and very friendly
Liquid 4.0 support
I hope you already know that we're developing a Generamba 2.0, that will change the way you use code generators. We still support 1.x
versions, so here is a new release ๐
Otherwise it's really small, it brings you the power of Liquid 4.0.
Enhancements
- Migrated to Liquid 4.0 (Issue #167)
Bugfixes
New Home
We've moved Generamba and generamba-catalog
to a new home - rambler-digital-solutions
account. This update fixes some internal dependencies on the old shared catalog repository.
Breaking changes
- Old versions of Generamba won't be able to install templates from our shared catalog.
Template installation fixes
Our template validation system was so strong and reliable, that templates with liquid markup couldn't pass through it. Now it's fixed!
Bugfixes
- Fixed
generamba template install
behaviour (Issue #128)
A nasty bug
Merging branches is hard, so we accidentally lost 1 line of code - and liquid support for .rambaspec
files was broken ๐ฑ.
Bugfixes
- Fixed liquid support for
.rambaspec
files (PR #158)
Grand refactoring continues
Hi again! The second release today - we've fixed a couple of new bugs and made some other small but breaking changes.
Breaking changes
- Updated logic of rambafile and module validation. Now, only
company
,project_name
,xcodeproj_path
fields are mandatory. (PR #148). - Renamed
gen
command optionsmodule_file_path
->project_file_path
andmodule_group_path
->project_group_path
. (PR #148) - Added liquid property
product_module_name
for use in rambaspec files (PR #148).
Bugfixes
- Fixed file creation in root folder (Issue #147)
Refactoring and some breaking changes
Just after we released our first non-beta version, we realized that time for refactoring has come. Sorry for some inconveniences, but you'll have to update your templates syntax.
Breaking changes
-
Renamed
gen
command--module-targets
option to--project-targets
. Now you should writegeneramba gen Module template_name --project_targets Target1,Target2
(PR #137). -
Renamed rambaspec parameter
file_name
tocustom_name
. Now you should write in rambaspec something like this (PR #137):- {custom_name: "{{ prefix }}{{ custom_parameters.my_value }}{{ module_info.file_basename }}", name: View/ViewInput.h, path: Code/View/view_input.h.liquid}
-
Replaced rambaspec parameter
file_type
tois_resource
. Now you should write in rambaspec something like this (PR #137):{name: Resources/MyJson.json, path: Resources/MyJson.json.liquid, is_resource: true}.
Then Generamba adds this file in project like resource, and not like file reference.
Enhancements
- Added an ability to use all properties from Rambafile and command options in rambaspec files (Issue #128)
- Added new property to Rambafile -
product_module_name
for Swift test templates (PR #139) - Made
project_file_path
andproject_group_path
not mandatory (Issue #144). - Updated the appearance of
gen
command output (Issue #142) - Added an extra question to
setup
command (Issue #126) - Fixed code style (PR #133)
Bugfixes
Out of beta
Finally, after 10 months of active development, we are releasing a 1.0.0 version! ๐๐๐พ๐ญ๐
Otherwise this release is not very huge, it introduces some compatibility-breaking changes. Besides it, we don't have any more features to implement except GUI, which will probably be a separate project.
News
- The 1.0.0 version, hooray!
Breaking changes
- We've updated the dependency on
cocoapods-core
gem to1.0.1
version. This means that you may have troubles using Generamba with an old-style Podfile.
Enhancements
-
You can now use custom template parameters! Here is an example:
generamba gen my_module my_template --custom-parameters=key1:value1 key2:value2
. Thevalue1
will be placed in your module for{{ module_info.custom_parameters.key1 }}
. See #46 and #119 for more information. -
Remember
cartfile_path
property in Rambafile? It's now used to check the Cartfile for missing dependencies together with the Podfile (#83 and #120). -
It's possible to add an empty group to the Xcode file structure. Just use the
- {name: Dir/SubDir}
notation in.rambaspec
file (#118 and #123). -
The output of
generamba version
command is much more informative now:generamba version Version: 0.8.0 Release date: 23.07.2016 Change notes: https://github.com/rambler-ios/Generamba/releases/tag/1.0.0
Bugfixes
- Fixed the behavior for the
path
parameters with an extra slash (Issue #99).
File types
@alexgarbarev does a great work again - it's now possible to manually specify the generated file type. Expecially useful for json
stubs.
Enhancements
- You can specify the generated file type in
.rambaspec
(PR #115).
Customizable filenames
Thanks to @alexgarbarev, we've got a new feature - customizable filenames ๐พ
Enhancements
- You can explicitly specify a generated file name using any of the config properties (PR #113).