challengepost-postmark 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/challengepost-postmark.gemspec +80 -0
- data/lib/postmark.rb +4 -4
- metadata +3 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.7.
|
|
1
|
+
0.7.2
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{challengepost-postmark}
|
|
8
|
+
s.version = "0.7.2"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Petyo Ivanov"]
|
|
12
|
+
s.date = %q{2010-06-07}
|
|
13
|
+
s.description = %q{Ruby gem for sending emails through http://postmarkapp.com HTTP API. It relieas on the mail gem for message construction.}
|
|
14
|
+
s.email = %q{underlog@gmail.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"README.rdoc"
|
|
18
|
+
]
|
|
19
|
+
s.files = [
|
|
20
|
+
".document",
|
|
21
|
+
".gitignore",
|
|
22
|
+
".rake_tasks",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.rdoc",
|
|
25
|
+
"Rakefile",
|
|
26
|
+
"VERSION",
|
|
27
|
+
"challengepost-postmark.gemspec",
|
|
28
|
+
"features/postmark.feature",
|
|
29
|
+
"features/step_definitions/postmark_steps.rb",
|
|
30
|
+
"features/support/env.rb",
|
|
31
|
+
"lib/postmark.rb",
|
|
32
|
+
"lib/postmark/bounce.rb",
|
|
33
|
+
"lib/postmark/http_client.rb",
|
|
34
|
+
"lib/postmark/json.rb",
|
|
35
|
+
"lib/postmark/mail_message_extension.rb",
|
|
36
|
+
"lib/postmark/response_parsers/active_support.rb",
|
|
37
|
+
"lib/postmark/response_parsers/json.rb",
|
|
38
|
+
"lib/postmark/response_parsers/yajl.rb",
|
|
39
|
+
"spec/bounce_spec.rb",
|
|
40
|
+
"spec/postmark_spec.rb",
|
|
41
|
+
"spec/spec.opts",
|
|
42
|
+
"spec/spec_helper.rb"
|
|
43
|
+
]
|
|
44
|
+
s.homepage = %q{http://postmarkapp.com}
|
|
45
|
+
s.post_install_message = %q{
|
|
46
|
+
==================
|
|
47
|
+
Thanks for installing the postmark gem. If you don't have an account, please sign up at http://postmarkapp.com/.
|
|
48
|
+
Review the README.rdoc for implementation details and examples.
|
|
49
|
+
==================
|
|
50
|
+
}
|
|
51
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
|
52
|
+
s.require_paths = ["lib"]
|
|
53
|
+
s.rubygems_version = %q{1.3.6}
|
|
54
|
+
s.summary = %q{Ruby gem for sending emails through http://postmarkapp.com HTTP API}
|
|
55
|
+
s.test_files = [
|
|
56
|
+
"spec/bounce_spec.rb",
|
|
57
|
+
"spec/postmark_spec.rb",
|
|
58
|
+
"spec/spec_helper.rb"
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
if s.respond_to? :specification_version then
|
|
62
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
63
|
+
s.specification_version = 3
|
|
64
|
+
|
|
65
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
66
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
|
67
|
+
s.add_development_dependency(%q<cucumber>, [">= 0"])
|
|
68
|
+
s.add_runtime_dependency(%q<mail>, [">= 0"])
|
|
69
|
+
else
|
|
70
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
|
71
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
|
72
|
+
s.add_dependency(%q<mail>, [">= 0"])
|
|
73
|
+
end
|
|
74
|
+
else
|
|
75
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
|
76
|
+
s.add_dependency(%q<cucumber>, [">= 0"])
|
|
77
|
+
s.add_dependency(%q<mail>, [">= 0"])
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
data/lib/postmark.rb
CHANGED
|
@@ -110,12 +110,12 @@ module Postmark
|
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
if message.multipart?
|
|
113
|
-
options["HtmlBody"] = message.html_part
|
|
114
|
-
options["TextBody"] = message.text_part
|
|
113
|
+
options["HtmlBody"] = message.html_part.body.to_s
|
|
114
|
+
options["TextBody"] = message.text_part.body.to_s
|
|
115
115
|
elsif message.content_type == "text/html"
|
|
116
|
-
options["HtmlBody"] = message.body
|
|
116
|
+
options["HtmlBody"] = message.body.to_s
|
|
117
117
|
else
|
|
118
|
-
options["TextBody"] = message.body
|
|
118
|
+
options["TextBody"] = message.body.to_s
|
|
119
119
|
end
|
|
120
120
|
options
|
|
121
121
|
end
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 7
|
|
8
|
-
-
|
|
9
|
-
version: 0.7.
|
|
8
|
+
- 2
|
|
9
|
+
version: 0.7.2
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Petyo Ivanov
|
|
@@ -70,6 +70,7 @@ files:
|
|
|
70
70
|
- README.rdoc
|
|
71
71
|
- Rakefile
|
|
72
72
|
- VERSION
|
|
73
|
+
- challengepost-postmark.gemspec
|
|
73
74
|
- features/postmark.feature
|
|
74
75
|
- features/step_definitions/postmark_steps.rb
|
|
75
76
|
- features/support/env.rb
|