postmark 0.4.3 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.3
1
+ 0.4.5
@@ -133,8 +133,8 @@ module Postmark
133
133
  def extract_headers(message)
134
134
  headers = []
135
135
  message.each_header do |key, value|
136
- next if bogus_headers.include? key.downcase
137
- headers << { "Name" => key.upcase, "Value" => value.body }
136
+ next if bogus_headers.include? key.dup.downcase
137
+ headers << { "Name" => key, "Value" => value.body }
138
138
  end
139
139
  headers
140
140
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{postmark}
8
- s.version = "0.4.3"
8
+ s.version = "0.4.5"
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"]
@@ -116,7 +116,7 @@ describe "Postmark" do
116
116
  end
117
117
 
118
118
  it "should encode headers properly" do
119
- json = %q[{"Subject":"Hello!", "From":"sheldon@bigbangtheory.com", "ReplyTo":"a@a.com, b@b.com", "To":"lenard@bigbangtheory.com", "TextBody":"Hello Sheldon!", "Headers":[{"Name":"CUSTOM-HEADER", "Value":"header"}]}]
119
+ json = %q[{"Subject":"Hello!", "From":"sheldon@bigbangtheory.com", "ReplyTo":"a@a.com, b@b.com", "To":"lenard@bigbangtheory.com", "TextBody":"Hello Sheldon!", "Headers":[{"Name":"custom-header", "Value":"header"}]}]
120
120
  result = Postmark.convert_tmail(message_with_headers)
121
121
  result.should == JSON.parse(json)
122
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petyo Ivanov