Permalink
Browse files

Prepare for 0.9.13 release.

  • Loading branch information...
1 parent 1bbfdad commit fe11b9739b8ca345f28c38da6df16f8b84e583a7 @temochka temochka committed Oct 3, 2012
Showing with 24 additions and 17 deletions.
  1. +5 −0 CHANGELOG.rdoc
  2. +17 −15 README.rdoc
  3. +1 −1 VERSION
  4. +1 −1 lib/postmark/version.rb
View
5 CHANGELOG.rdoc
@@ -1,5 +1,10 @@
= Changelog
+== 0.9.13
+
+* Added error_code to DeliveryError
+* Added retries for Timeout::Error
+
== 0.9.12
* Fixed a problem of attachments processing when using deliver! method on Mail object.
View
32 README.rdoc
@@ -5,7 +5,7 @@ This gem is an official wrapper for Postmark HTTP API (http://postmarkapp.com).
== Install
gem install postmark
-
+
In addition to the +postmark+ gem you also need to install +tmail+ or +mail+ gem. Pick the one you like most:
gem install mail
@@ -19,23 +19,23 @@ In addition to the +postmark+ gem you also need to install +tmail+ or +mail+ gem
require 'tmail'
Postmark.api_key = "your-api-key"
-
+
# Make sure you have a sender signature for every From email you specify.
- # From can also accept array of addresses.
-
+ # From can also accept array of addresses.
+
message = TMail::Mail.new
message.from = "leonard@bigbangtheory.com"
message.to = "Sheldon Cooper <sheldon@bigbangtheory.com>"
message.subject = "Hi Sheldon!"
message.content_type = "text/html"
message.body = "Hello my friend!"
-
+
# You can set customer headers if you like:
message["CUSTOM-HEADER"] = "my custom header value"
-
+
# Added a tag:
message.tag = "my-tracking-tag"
-
+
# Add attachments:
message.postmark_attachments = [File.open("/path"), File.open("/path")]
@@ -45,18 +45,18 @@ In addition to the +postmark+ gem you also need to install +tmail+ or +mail+ gem
"Content" => [pdf_content].pack("m"),
"ContentType" => "application/pdf"
}]
-
+
# Or specify a reply-to address (can also be an array of addresses):
message.reply_to = "penny@bigbangtheory.com"
Postmark.send_through_postmark(message)
-
+
== Mail Example
require 'rubygems'
require 'postmark'
require 'mail'
-
+
message = Mail.new
message.delivery_method(Mail::Postmark, :api_key => "your-api-key")
# ...
@@ -70,12 +70,12 @@ You can retrieve various information about your server state using the Public bo
# Get delivery stats: (JSON format)
Postmark.delivery_stats
-
- # Get bounces information: (array of bounce objects)
+
+ # Get bounces information: (array of bounce objects)
Postmark::Bounce.all
-
- # Find specific bounce by id:
- bounce = Postmark::Bounce.find(bounce_id)
+
+ # Find specific bounce by id:
+ bounce = Postmark::Bounce.find(bounce_id)
bounce.dump # string, containing raw SMTP data
bounce.activate # reactivate hard bounce
@@ -118,6 +118,8 @@ You can also explicitly specify which one to be used, using
* Yury Batenko
* Pavel Maksimenko
* Anton Astashov
+* Marcus Brito
+* Tyler Hunt
== Copyright
View
2 VERSION
@@ -1 +1 @@
-0.9.12
+0.9.13
View
2 lib/postmark/version.rb
@@ -1,3 +1,3 @@
module Postmark
- VERSION = "0.9.12"
+ VERSION = "0.9.13"
end

0 comments on commit fe11b97

Please sign in to comment.