README.md in blam-1.0.0 vs README.md in blam-1.1.0
- old
+ new
@@ -1,6 +1,6 @@
-# BLAM! [![Build Status](https://travis-ci.org/neverstopbuilding/blam.png?branch=develop)](https://travis-ci.org/neverstopbuilding/blam)
+# BLAM! [![Build Status](https://travis-ci.org/neverstopbuilding/blam.png?branch=develop)](https://travis-ci.org/neverstopbuilding/blam) [![Gem Version](https://badge.fury.io/rb/blam.png)](http://badge.fury.io/rb/blam)
##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.
@@ -19,20 +19,20 @@
$ 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:
```ruby
# Encoding: utf-8
@@ -41,11 +41,11 @@
end
end
```
-The spec file has:
+The spec file has:
```ruby
# Encoding: utf-8
require 'spec_helper'
@@ -58,11 +58,13 @@
###Command Line Options
- **--source-dir** - Pass an alternative directory to `lib` in which the source files will be created.
- **--tests-dir** - Pass an alternative directory to `spec` in which the test files will be created.
-- **--test-suffix** - Change the suffix from the test files from the default `spec` to anything you like. Non spec suffixes will get a default class template rather than an rspec class template.
+- **--test-suffix** - Change the suffix from the test files from the default `spec` to anything you like. Non spec suffixes will get a default class template rather than an rspec class template.
- **--additional-test-dirs** - Add other directories to create additional test files. This can be helpful for breaking up your tests into folders like `spec/unit` `spec/integration`
+- **--no-tests** - Regardless of your settings it will not create the test files. This is bad. And you are lazy for using this option.
+- **--just-unit** - This will not create files if you have specified additional test directories, helpful when you just want a unit test and don't need an integration test as well.
###.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: