README.md in dispatch-rider-1.4.0 vs README.md in dispatch-rider-1.4.2

- old
+ new

@@ -255,11 +255,11 @@ def process(message_body) message_body["headlines"].each do |headline| puts headline end end - + def retry_timeout 10.minutes end end ``` @@ -275,11 +275,11 @@ ```ruby # app/handlers/foo_handler class LongRunning < DispatchRider::Handlers::Base def process(body) my_loop.each do |item| - + #... do some work ... extend_timeout(1.hour) end rescue OutOfResourcesImOutError return_to_queue #oops! Better give this to somebody else! @@ -342,11 +342,40 @@ ```ruby DispatchRider.config do |config| config.error_handler = DispatchRider::AirbrakeErrorHandler end ``` +## Deployment +In order to deploy a new version of the gem into the wild ... + +You will need to configure your github api token for the changelog. + +Generate a new token for changelogs [here](https://github.com/settings/tokens/new). + +add: + +```bash +export CHANGELOG_GITHUB_TOKEN=YOUR_CHANGELOG_API_TOKEN +``` + +somewhere in your shell init. (ie .zshrc or simillar) + + +```bash +vim lib/dispatch-rider/version.rb +# set the new version +rake gemspec +# commit any changed files (should be only version and the gemspec) +# name your commit with the version number eg: "1.8.0" +rake release +# to push the gem to rubygems.org +rake changelog +# commit the changed changelog +# name your commit with the version again eg: "changelog for 1.8.0" +``` + ## Contributing ### Process 1. Fork it @@ -355,10 +384,10 @@ 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ### Licence -Copyright (c) 2013 Suman Mukherjee +Copyright (c) 2015 PayrollHero Pte. Ltd. MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the