postmark 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 0.9.3
4
+
5
+ * Removed all "try" calls from the code. It's not always available and not essential anyway.
6
+
3
7
  == 0.9.2
4
8
 
5
9
  * Fixed "Illegal email address ']'" bug on Ruby 1.9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.2
1
+ 0.9.3
data/lib/postmark.rb CHANGED
@@ -98,11 +98,11 @@ module Postmark
98
98
  options = Hash.new
99
99
  headers = extract_headers_according_to_message_format(message)
100
100
 
101
- options["From"] = message.from.try(:first)
102
- options["ReplyTo"] = message.reply_to.try(:join, ", ")
103
- options["To"] = message.to.try(:join, ", ")
104
- options["Cc"] = message.cc.try(:join, ", ")
105
- options["Bcc"] = message.bcc.try(:join, ", ")
101
+ options["From"] = message.from.first if message.from
102
+ options["ReplyTo"] = message.reply_to.join(", ") if message.reply_to
103
+ options["To"] = message.to.join(", ") if message.to
104
+ options["Cc"] = message.cc.join(", ") if message.cc
105
+ options["Bcc"] = message.bcc.join(", ") if message.bcc
106
106
  options["Subject"] = message.subject
107
107
  options["Attachments"] = message.postmark_attachments
108
108
  options["Tag"] = message.tag.to_s if message.tag
data/postmark.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postmark}
8
- s.version = "0.9.2"
8
+ s.version = "0.9.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Petyo Ivanov", "Ilya Sabanin"]
12
- s.date = %q{2010-09-29}
12
+ s.date = %q{2010-10-11}
13
13
  s.description = %q{Ruby gem for sending emails through http://postmarkapp.com HTTP API. It relieas on TMail::Mail for message construction.}
14
14
  s.email = %q{underlog@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 61
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 2
10
- version: 0.9.2
9
+ - 3
10
+ version: 0.9.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Petyo Ivanov
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-09-29 00:00:00 +08:00
19
+ date: 2010-10-11 00:00:00 +08:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency