- Updated activesupport to 5.1.4
- Requires Ruby version >= 2.2.2
- Updated activesupport to 4.2
- Fixed issue when installing on rvm managed Ruby instance (version conflict with activesupport gem)
- Added travis tester for Ruby 2.1
- Updated to work with rainbow gem 2.0.0
- Fixed issue with Windows native line endings and Ruby 2.0
- Discontinued support for Ruby 1.8.7
- Updated for Ruby 2.0
- Keeps preserve manually maintained code segments in a generated file
- Changes to the
Cogfile
interfaceproject_source_path
renamed toproject_path
project_generators_path
renamed togenerator_path
project_templates_path
renamed totemplate_path
- Tools have been renamed to plugins
- cog_tool.rb is no longer used, plugins are configured using a Cogfile instead
- that
Cogfile
should contain a call to autoload_plugin and stamp_generator
- that
- Generator scripts should not include these lines anymore
- require 'cog'
- include Cog::Generator
- Instead, they are evaluated as instances of GeneratorSandbox, which already includes the Generator mixin
- Generator scripts for plugins should not
require
the plugin anymore- The plugin module should be made available to the GeneratorSandbox via autoload_plugin
cog
will evaluate a chain of cogfiles in this order- A built-in cogfile that comes with the
cog
gem which points to built-in generators, templates, and plugins - A user cogfile, that is created in the ${HOME}/.cog directory. Shared generators, templates, and plugins can be configured here
- Cogfiles for any discovered plugins
- The project cogfile, if operating in the context of a project
- A built-in cogfile that comes with the
- Languages are defined in cogfiles via the LanguageDSL
- Plugins distributed as gems are automatically discovered, no need to set an environment variable anymore
- --force-override is no longer needed to override a template