Midwire Common Gem

Gem Version

Version: 2.0.0

A handy, light-weight Ruby library for Midwire development

Requires Ruby >= 3.2.

Installation

Add this line to your application's Gemfile:

gem 'midwire_common'

And then execute:

$ bundle install

Usage

Ruby Class Extensions (Refinements)

As of 2.0.0, all class extensions use Ruby refinements instead of monkey-patching. Require the extensions, then activate them with using:

require 'midwire_common/all'
using MidwireCommon::All

... or include individual refinement modules:

require 'midwire_common/string'
using MidwireCommon::StringExtensions

Rake Tasks

To use the rake tasks simply load that rake file from within your main Rakefile:

begin
  require 'midwire_common/rake_tasks'
rescue Exception => e
  puts ">>> You have to run that under 'bundle exec'"
  exit
end

Create a CHANGELOG file for your project.

touch CHANGELOG

The rake version:* tasks will prompt for CHANGELOG entries. Simply type them in and hit -d on a blank line when finished.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request