Rubygems::Manifest
Creates Manifest.txt with the list of files of the current project. The Manifest is created using git ls-files
so no files from .gitignore
will be there.
This awesome idea of having a Manifest.txt
file was stolen from https://github.com/seattlerb/hoe.
Installation
$ gem install rubygems-manifest
Usage
Start a new project:
$ mkdir example ; cd example
$ touch a.txt
$ manifest check
>> Manifest is empty
Save manifest:
$ git add .
$ manifest check
>> Manifest.txt
>> a.txt
>> Manifest saved successfully
Check manifest:
$ touch b.txt
$ git add .
$ manifest check
>> Difference:
>>
>> -b.txt
>>
>> Manifest is invalid
$ manifest save
>> Manifest.txt
>> a.txt
>> b.txt
>> Manifest saved successfully
$ manifest check
>> Manifest.txt
>> a.txt
>> b.txt
>> Manifest is valid
See
$ manifest --help
Example scripting
Run each test separately
$ for i in $(manifest tests); do ruby -Ilib -Itest $i ; done
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request