What Is PostPusher?
A sweet gem that makes post pushing way easier.
Installation
Add this line to your application's Gemfile:
gem 'post_pusher'
And then execute:
$ bundle
Or install it yourself with:
$ gem install post_pusher
Im a dev, how can I use PostPusher? Is it hard?
No way buddy; getting your post push task ready for a release using PostPusher is super easy.
Steps:
rails g post_push_task task_name- add your code into the new task
- commit
Running the tasks:
bin/post_push work
How do I add this to my Rails app?
- Add PostPusher to your gemfile
bundle- Run migrations (creates records table)
bundle binstub post_pusher(this enables you to be able to runbin/post_pushby putting the post_push file in your bin directory)- Commit your changes
Running Tests
- Change to the gem's directory
- Run
bundle - Run
rake
Release Process
Once pull request is merged to master, on latest master:
- Update CHANGELOG.md. Version: [ major (breaking change: non-backwards compatible release) | minor (new features) | patch (bugfixes) ]
- Update version in lib/post_pusher/version.rb
- Release by running
bundle exec rake release