- Revert memoization
Cog::Request#input.
- Memoize Cog::Request.input as a class variable so that we don't try to read STDIN more than once if we initialize request more than once for any reason.
- Minor change to
cogrb template:updateto remove line wrapping of values.
-
Add exception handling support. You can now define a regular expression and a block to be called when an exception whose class matches the pattern is received. This should generally be defined in your
cog-command. The block will be called with the exception andCog::Commandinstance that was executing. Exceptions that are not matched by a pattern will be handled normally. Here's an example:Cog.error_handler.add(/Aws::.*/) do |exception, command| Cog.return_error("#{command.name} error: #{exception.message}") end
- Bugfix for "warning: toplevel constant RSpec referenced by Cog::RSpec"
- Bugfix for rspec tests for commands that take a single input
- Bugfix to allow rspec support to work with current Cog::Bundle API
- Bugfix to skip creation of intermediate modules in the command hierarchy if they are already defined
The 0.3.1 release inadvertently omitted the docker:release task. This has been corrected.
- Adds
cogrb docker:releasetask to build and push an updated Docker image in one step. - Bugfix for
cogrb docker:pushtask.
Note: This version of cog-rb is not compatible with Cog versions lower than 0.14.
- Updates
cogrb templates:updatetask to use bundle configuration version 4. - Removes the subcommand support added in 0.2.0. We will revisit this in the future when subcommands are a first class feature in Cog. Attempting to support it at the command implementation level turned out to be unworkable.
- Adds support for subcommands
- Adds a new parent class,
Cog::AggregateCommand - Adds a new parent class,
Cog::SubCommand
- Adds a new parent class,
- Adds a
cogrbbinary that wraps some helper tasks inlib/tasks/cog.rake:cogrb template:update- reads files intemplates/*and updates bundle configuration file with contentscogrb docker:build- builds docker image using image/tag defined in bundle configuration filecogrb docker:push- pushes docker image using image/tag defined in bundle configuration file
- bugfix: options with scalar values were being ignored
- Add support for list options
- Fix service calls for SSL enabled Cog.
Cog::Response: Fix log level validation to allow logging to more thanINFO. [#1]Cog::Command: Add support for required environment variables. [#1]