postmark 1.4.1 → 1.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73d01dca4a5c8f9829f1ca039ae3f21c6f8f4e9e
4
- data.tar.gz: cdfd6f7286b9a054183fe60701b70cc9e8f1ad9e
3
+ metadata.gz: fc241632a8664fa4d6da4f478cb3b06d16dcad9e
4
+ data.tar.gz: 05270b025e77c916322187db871b53aa9d2f90dd
5
5
  SHA512:
6
- metadata.gz: a464977cf081ee97a239ff633d40d95f7685536a6b224adc3e1f55023d709a562da06009a91f4206d7e4cdb672903df74af1b4c86f95992e6dca63b7395c3973
7
- data.tar.gz: 544a52694c765a7e2f91456864b26307c2ed968d775e96f5e211fa7b6fc653cf6ad62302b114cde057004ce9931dee9484f2a4f83bdfa14e893ea82a9d669243
6
+ metadata.gz: de873b858f3b93c0e4bbbbec6b6092d579799da2e7d393909d163c2522a3a336d03846faffcaf8b618791d59d7dde5d8376ae808ee4f21d4112bb7ffb4f181f4
7
+ data.tar.gz: bfc1403186f4522b58174842bd104848a52f5b6aa405f3b61dc8e1db252785160b76f1b6b5a8046b079eb95975bf0a6a1717855787ded20fd93069e8590b9f02
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ == 1.4.2
4
+
5
+ * Fix a regression when using the gem with older mail gem versions introduced in 1.4.1. Affected mail gem versions are 2.5.3 and below.
6
+
3
7
  == 1.4.1
4
8
 
5
9
  * Fix an exception when sending a Mail::Message containing quoted-printable parts with unicode characters.
data/Gemfile CHANGED
@@ -8,4 +8,7 @@ group :test do
8
8
  gem 'fakeweb'
9
9
  gem 'fakeweb-matcher'
10
10
  gem 'mime-types', '~> 1.25.1'
11
+ gem 'activesupport', '~> 3.2.0'
12
+ gem 'i18n', '~> 0.6.0'
13
+ gem 'yajl-ruby', '~> 1.0', :platforms => [:mingw, :mswin, :ruby]
11
14
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
@@ -44,18 +44,20 @@ module Mail
44
44
  end
45
45
 
46
46
  def body_html
47
- if html_part.nil?
48
- decoded if html?
49
- else
47
+ if multipart? && html_part
50
48
  html_part.decoded
49
+ elsif text? && html?
50
+ decoded
51
51
  end
52
52
  end
53
53
 
54
54
  def body_text
55
- if text_part.nil?
56
- decoded unless html?
57
- else
55
+ if multipart? && text_part
58
56
  text_part.decoded
57
+ elsif text? && !html?
58
+ decoded
59
+ elsif !html?
60
+ body.decoded
59
61
  end
60
62
  end
61
63
 
@@ -76,6 +78,7 @@ module Mail
76
78
  end
77
79
 
78
80
  def to_postmark_hash
81
+ ready_to_send!
79
82
  ::Postmark::MailMessageConverter.new(self).run
80
83
  end
81
84
 
@@ -1,3 +1,3 @@
1
1
  module Postmark
2
- VERSION = '1.4.1'
2
+ VERSION = '1.4.2'
3
3
  end
@@ -37,6 +37,4 @@ Gem::Specification.new do |s|
37
37
  s.add_dependency "json"
38
38
 
39
39
  s.add_development_dependency "mail"
40
- s.add_development_dependency "activesupport", "~> 3.0"
41
- s.add_development_dependency "yajl-ruby" unless RUBY_PLATFORM == "java"
42
40
  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: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petyo Ivanov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-12-17 00:00:00.000000000 Z
13
+ date: 2014-12-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -54,34 +54,6 @@ dependencies:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
- - !ruby/object:Gem::Dependency
58
- name: activesupport
59
- requirement: !ruby/object:Gem::Requirement
60
- requirements:
61
- - - "~>"
62
- - !ruby/object:Gem::Version
63
- version: '3.0'
64
- type: :development
65
- prerelease: false
66
- version_requirements: !ruby/object:Gem::Requirement
67
- requirements:
68
- - - "~>"
69
- - !ruby/object:Gem::Version
70
- version: '3.0'
71
- - !ruby/object:Gem::Dependency
72
- name: yajl-ruby
73
- requirement: !ruby/object:Gem::Requirement
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- version: '0'
78
- type: :development
79
- prerelease: false
80
- version_requirements: !ruby/object:Gem::Requirement
81
- requirements:
82
- - - ">="
83
- - !ruby/object:Gem::Version
84
- version: '0'
85
57
  description: Use this gem to send emails through Postmark HTTP API and retrieve info
86
58
  about bounces.
87
59
  email: ilya@wildbit.com
@@ -169,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
141
  version: 1.3.7
170
142
  requirements: []
171
143
  rubyforge_project:
172
- rubygems_version: 2.2.1
144
+ rubygems_version: 2.2.2
173
145
  signing_key:
174
146
  specification_version: 4
175
147
  summary: Official Postmark API wrapper.