DiffResource
Installation
Add this line to your application's Gemfile:
gem 'diff_resource'
And then execute:
$ bundle
Or install it yourself as:
$ gem install diff_resource
Usage
output your resource file's diff list, you execute under command
Usage:
diff_resource create <directory> <comparison> <file> [<options>] -t, --type=TYPE
Options:
- -t, --type=TYPE : resource file type
- -o, [--output=OUTPUT] : output file path.
- -c, [--compare=COMPARE] : comparison target type. other directory or git object
Arguments:
- directory: resource file root path
- comparison: compare directory path or git hash
- file: resource file name format ex) test.resource, *.resource, *-en.resource
Show detail, you execute under command
diff_resource help create
Development
To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release to create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.
Contributing
- Fork it ( https://github.com/katsugeneration/diff-resource/fork )
- 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 a new Pull Request