postmark 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -37,7 +37,7 @@ Then
37
37
 
38
38
  p Postmark.send_through_postmark(message).body
39
39
 
40
- You can retrieve various information about your server state using the "Public bounces API":http://developer.postmarkapp.com/bounces
40
+ You can retrieve various information about your server state using the Public bounces API - http://developer.postmarkapp.com/bounces
41
41
 
42
42
  # get delivery stats
43
43
  Postmark.delivery_stats # json
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.7.0
1
+ 0.7.1
@@ -102,6 +102,8 @@ module Postmark
102
102
 
103
103
  options["Cc"] = message['cc'].to_s unless message.cc.nil?
104
104
 
105
+ options["Bcc"] = message['bcc'].to_s unless message.bcc.nil?
106
+
105
107
  if reply_to = message['reply-to']
106
108
  options["ReplyTo"] = reply_to.to_s
107
109
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postmark}
8
- s.version = "0.7.0"
8
+ s.version = "0.7.1"
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"]
12
- s.date = %q{2010-04-12}
12
+ s.date = %q{2010-04-23}
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 = [
@@ -117,6 +117,11 @@ describe "Postmark" do
117
117
  message.should be_serialized_to %q[{"Cc":"a@a.com, b@b.com", "Subject":"Hello!", "From":"sheldon@bigbangtheory.com", "To":"lenard@bigbangtheory.com", "TextBody":"Hello Sheldon!"}]
118
118
  end
119
119
 
120
+ it "should encode multiple recepients (BCC)" do
121
+ message.bcc = ['a@a.com', 'b@b.com']
122
+ message.should be_serialized_to %q[{"Bcc":"a@a.com, b@b.com", "Subject":"Hello!", "From":"sheldon@bigbangtheory.com", "To":"lenard@bigbangtheory.com", "TextBody":"Hello Sheldon!"}]
123
+ end
124
+
120
125
  context "JSON library support" do
121
126
  [:Json, :ActiveSupport, :Yajl].each do |lib|
122
127
  begin
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 0
9
- version: 0.7.0
8
+ - 1
9
+ version: 0.7.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Petyo Ivanov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-04-12 00:00:00 +03:00
17
+ date: 2010-04-23 00:00:00 +03:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency