README.md in postmark-rails-0.9.0 vs README.md in postmark-rails-0.10.0
- old
+ new
@@ -1,8 +1,8 @@
# postmark-rails gem
-[![Build Status](https://travis-ci.org/wildbit/postmark-rails.png?branch=master)](https://travis-ci.org/wildbit/postmark-rails) [![Code Climate](https://codeclimate.com/github/wildbit/postmark-rails.png)](https://codeclimate.com/github/wildbit/postmark-rails)
+[![Build Status](https://travis-ci.org/wildbit/postmark-rails.svg?branch=master)](https://travis-ci.org/wildbit/postmark-rails) [![Code Climate](https://codeclimate.com/github/wildbit/postmark-rails/badges/gpa.svg)](https://codeclimate.com/github/wildbit/postmark-rails)
The Postmark Rails Gem is a drop-in plug-in for ActionMailer to send emails via [Postmark](https://postmarkapp.com), an email delivery service for web apps. The gem has been created for fast implementation and fully supports all of [Postmark’s features](https://postmarkapp.com/why-postmark).
## Supported Rails Versions
@@ -14,20 +14,20 @@
## Configuring your Rails application
Add this to your Gemfile: (change version numbers if needed)
``` ruby
-gem 'postmark-rails', '~> 0.9.0'
+gem 'postmark-rails', '~> 0.10.0'
```
Don’t forget to run `bundle install` command every time you change something in the Gemfile.
Add this to your config/application.rb:
``` ruby
config.action_mailer.delivery_method = :postmark
-config.action_mailer.postmark_settings = { :api_key => "your-api-key" }
+config.action_mailer.postmark_settings = { :api_token => "your-api-token" }
```
The `postmark_settings` hash can contain [all options](https://github.com/wildbit/postmark-gem#communicating-with-the-api) supported by `Postmark::ApiClient`.
For the API details, refer to the [developer documentation](http://developer.postmarkapp.com).
@@ -84,10 +84,10 @@
with higher volumes or processing time constraints need to send their messages
in batches. To facilitate this we provide a batching endpoint that permits you
to send up to 500 well-formed Postmark messages in a single API call.
``` ruby
-client = Postmark::ApiClient.new('your-api-key')
+client = Postmark::ApiClient.new('your-api-token')
messages = []
messages << DigestMailer.weekly_digest(@user1)
messages << DigestMailer.weekly_digest(@user2)