postageapp 1.0.13 → 1.0.14
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/README.md +6 -0
- data/VERSION +1 -1
- data/lib/postageapp/request.rb +1 -1
- data/postageapp.gemspec +8 -8
- metadata +8 -10
data/README.md
CHANGED
|
@@ -94,6 +94,12 @@ You can quickly convert your existing mailers to use PostageApp service by simpl
|
|
|
94
94
|
|
|
95
95
|
There are custom methods that allow setting of `template` and `variables` parts of the API call. They are `postageapp_template` and `postageapp_variables`. Examples how they are used are below. For details what they do please see [documentation](http://help.postageapp.com/faqs)
|
|
96
96
|
|
|
97
|
+
Please note that `deliver` method will return `PostageApp::Response` object. This way you can immediately check the status of the delivery. For example:
|
|
98
|
+
|
|
99
|
+
>> response = UserMailer.welcome_email(@user).deliver
|
|
100
|
+
>> response.ok?
|
|
101
|
+
=> true
|
|
102
|
+
|
|
97
103
|
### Rails 3.x
|
|
98
104
|
|
|
99
105
|
Here's an example of a mailer in Rails 3 environment:
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.14
|
data/lib/postageapp/request.rb
CHANGED
|
@@ -45,7 +45,7 @@ class PostageApp::Request
|
|
|
45
45
|
self.arguments_to_send.to_json,
|
|
46
46
|
HEADERS.merge('User-Agent' => "PostageApp-RubyGem #{PostageApp::VERSION} (Ruby #{RUBY_VERSION}, #{PostageApp.configuration.framework})")
|
|
47
47
|
)
|
|
48
|
-
rescue TimeoutError
|
|
48
|
+
rescue TimeoutError, Errno::ECONNREFUSED
|
|
49
49
|
nil
|
|
50
50
|
end
|
|
51
51
|
|
data/postageapp.gemspec
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
|
-
s.name =
|
|
8
|
-
s.version = "1.0.
|
|
7
|
+
s.name = "postageapp"
|
|
8
|
+
s.version = "1.0.14"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Oleg Khabarov, The Working Group Inc"]
|
|
12
|
-
s.date =
|
|
13
|
-
s.description =
|
|
14
|
-
s.email =
|
|
12
|
+
s.date = "2011-11-15"
|
|
13
|
+
s.description = "Gem that interfaces with PostageApp.com service to send emails from web apps"
|
|
14
|
+
s.email = "oleg@twg.ca"
|
|
15
15
|
s.extra_rdoc_files = [
|
|
16
16
|
"LICENSE",
|
|
17
17
|
"README.md"
|
|
@@ -74,11 +74,11 @@ Gem::Specification.new do |s|
|
|
|
74
74
|
"test/request_test.rb",
|
|
75
75
|
"test/response_test.rb"
|
|
76
76
|
]
|
|
77
|
-
s.homepage =
|
|
77
|
+
s.homepage = "http://github.com/postageapp/postageapp-ruby"
|
|
78
78
|
s.licenses = ["MIT"]
|
|
79
79
|
s.require_paths = ["lib"]
|
|
80
|
-
s.rubygems_version =
|
|
81
|
-
s.summary =
|
|
80
|
+
s.rubygems_version = "1.8.10"
|
|
81
|
+
s.summary = "Easier way to send email from web apps"
|
|
82
82
|
|
|
83
83
|
if s.respond_to? :specification_version then
|
|
84
84
|
s.specification_version = 3
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: postageapp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.14
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,12 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2011-
|
|
13
|
-
default_executable:
|
|
12
|
+
date: 2011-11-15 00:00:00.000000000Z
|
|
14
13
|
dependencies:
|
|
15
14
|
- !ruby/object:Gem::Dependency
|
|
16
15
|
name: json
|
|
17
|
-
requirement: &
|
|
16
|
+
requirement: &70110451984120 !ruby/object:Gem::Requirement
|
|
18
17
|
none: false
|
|
19
18
|
requirements:
|
|
20
19
|
- - ! '>='
|
|
@@ -22,10 +21,10 @@ dependencies:
|
|
|
22
21
|
version: '0'
|
|
23
22
|
type: :runtime
|
|
24
23
|
prerelease: false
|
|
25
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70110451984120
|
|
26
25
|
- !ruby/object:Gem::Dependency
|
|
27
26
|
name: jeweler
|
|
28
|
-
requirement: &
|
|
27
|
+
requirement: &70110451982980 !ruby/object:Gem::Requirement
|
|
29
28
|
none: false
|
|
30
29
|
requirements:
|
|
31
30
|
- - ! '>='
|
|
@@ -33,7 +32,7 @@ dependencies:
|
|
|
33
32
|
version: '0'
|
|
34
33
|
type: :development
|
|
35
34
|
prerelease: false
|
|
36
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70110451982980
|
|
37
36
|
description: Gem that interfaces with PostageApp.com service to send emails from web
|
|
38
37
|
apps
|
|
39
38
|
email: oleg@twg.ca
|
|
@@ -99,7 +98,6 @@ files:
|
|
|
99
98
|
- test/rails_initialization_test.rb
|
|
100
99
|
- test/request_test.rb
|
|
101
100
|
- test/response_test.rb
|
|
102
|
-
has_rdoc: true
|
|
103
101
|
homepage: http://github.com/postageapp/postageapp-ruby
|
|
104
102
|
licenses:
|
|
105
103
|
- MIT
|
|
@@ -115,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
115
113
|
version: '0'
|
|
116
114
|
segments:
|
|
117
115
|
- 0
|
|
118
|
-
hash:
|
|
116
|
+
hash: 2753693682518228981
|
|
119
117
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
118
|
none: false
|
|
121
119
|
requirements:
|
|
@@ -124,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
124
122
|
version: '0'
|
|
125
123
|
requirements: []
|
|
126
124
|
rubyforge_project:
|
|
127
|
-
rubygems_version: 1.
|
|
125
|
+
rubygems_version: 1.8.10
|
|
128
126
|
signing_key:
|
|
129
127
|
specification_version: 3
|
|
130
128
|
summary: Easier way to send email from web apps
|