Home

Awesome

BLAM! Build Status Gem Version

##Create ruby files quickly on the command line. BLAM!

It's a pain to have to create a bunch of folders and duplicate files to make your source and associated test files. Blam fixes this.

Installation

Add this line to your application's Gemfile:

gem 'blam'

And then execute:

$ bundle

Or install it yourself as:

$ gem install blam

Usage

$ blam BeastlyModule::DopeClass

By default creates these files:

- lib
    - beastly_module
        - dope_class.rb
- spec
    - beastly_module
        - dope_class_spec.rb

The class file has:

# Encoding: utf-8

module BeastlyModule
  class DopeClass

  end
end

The spec file has:

# Encoding: utf-8

require 'spec_helper'
require 'beastly_module/dope_class'

describe BeastlyModule::DopeClass do

end

###Command Line Options

###.blam File

No one likes to type all those crazy options all the time! BLAM! Put them in a file called .blam in the root of your project:

tests_dir: spec/unit/lib
additional_test_dirs: [spec/integration/lib, spec/system/lib]
source_dir: lib
test_suffix: spec

To initialize a default file for your project, just run blam --init

Don't worry, you can override these with the command line options any time. Blam!

Contributing

  1. Fork it
  2. Create your feature branch with git-flow (git flow feature start my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Run the fucking tests (rake Runs Rubocop and Cucumber by default.)
  5. Publish the feature (git flow feature publish my-new-feature)
  6. Create new Pull Request