Skip to content

Releases: YellowApple/bales

Back from the grave (spooky!)

26 Oct 13:37
Compare
Choose a tag to compare

Not gonna lie, I kinda forgot about this, and then decided that it might come in handy for some new projects, so I figured I should probably make sure it works on a reasonably-modern Ruby (like, say, 2.7.0), and it does! Well, it does now.

Anyway, now when you do...

option :foo, type: String

action do |foo: 'bar'|
  puts foo
end

...Bales will stop letting OptionParser clobber that default with a nil if you don't invoke the command with a --foo option.

Bugfix for Ruby 2.0.0

05 Sep 05:54
Compare
Choose a tag to compare

Bales now catches NameError exceptions thrown by const_defined? when encountering undefined constants (never mind that the whole bloody point of const_defined? is to check whether or not said constant is, you know, un-bloody-defined).

Helptext fix

18 Aug 01:25
Compare
Choose a tag to compare
  • Swap position of usage and summary/description in helptext

First minor version bump! Woohoo!

18 Aug 01:20
Compare
Choose a tag to compare
  • Helptext now includes a usage statement
  • Usage statement printed on errors involving command args/opts

`desc == description`

17 Aug 20:59
Compare
Choose a tag to compare
`desc == description` Pre-release
Pre-release
  • Add a desc alias for description methods (in Bales::Application and Bales::Command) and :description argument in Bales::Command.option.

Better subcommands!

17 Aug 18:37
Compare
Choose a tag to compare
Better subcommands! Pre-release
Pre-release
  • Bales::Command.command is now available to define subcommands in an identical manner to Bales::Application.command.

First GitHub release

27 Jul 22:41
Compare
Choose a tag to compare
First GitHub release Pre-release
Pre-release

Changes

  • Addition of command/app DSL to simplify app creation
  • Defining a subclass of Bales::Application now magically instantiates a Bales::Command and Bales::Command::Help subclass
  • Helptext is actual helptext now, not a placeholder (still much to be done, though)
  • Lots of examples to get a feel for Bales