govdelivery-tms 0.8.7 → 0.8.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -13
- data/lib/govdelivery/tms/resource/email_message.rb +2 -2
- data/lib/govdelivery/tms/resource/sms_message.rb +2 -2
- data/lib/govdelivery/tms/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e500b483edcb3bebee7007ab8ba92e407927e06
|
4
|
+
data.tar.gz: d51c9c6aa4f0856eb9365f93a1f4f7d8c7716826
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eee2ae6f12a996d5ab439049b91238fb8e193bcc606ef05c1b262090c956a33fb8656138a4c59a71cc57a5d34904ad1d468625f296ad5502723e5ed6bb2e5b52
|
7
|
+
data.tar.gz: 21247d3dde95fc33fc7a34f9b2e528a9562a0655e5e1daa39cefa5972a38a9afbecf603b2edae54f046ded8249c131e949dc0457003f269727862a2dbe11798a
|
data/README.md
CHANGED
@@ -91,6 +91,28 @@ message.recipients.build(:email=>'bill@example.com')
|
|
91
91
|
message.post
|
92
92
|
```
|
93
93
|
|
94
|
+
### Creating an Email Template
|
95
|
+
|
96
|
+
```ruby
|
97
|
+
template = client.email_templates.build(subject: 'A templated subject',
|
98
|
+
body: 'Hi [[name]], this body is from a template.',
|
99
|
+
macros: {"name"=>"person"})
|
100
|
+
template.post
|
101
|
+
```
|
102
|
+
|
103
|
+
### Sending an Email using a Template
|
104
|
+
|
105
|
+
Assuming you created `template` above:
|
106
|
+
|
107
|
+
```ruby
|
108
|
+
message = client.email_messages.build
|
109
|
+
message.links[:email_template] = template.id
|
110
|
+
message.recipients.build(:email=>'jim@example.com', :macros=>{"name"=>"Jim"})
|
111
|
+
message.recipients.build(:email=>'amy@example.com', :macros=>{"name"=>"Amy"})
|
112
|
+
message.recipients.build(:email=>'bill@example.com')
|
113
|
+
message.post
|
114
|
+
```
|
115
|
+
|
94
116
|
Webhooks
|
95
117
|
-------
|
96
118
|
### POST to a URL when a recipient is blacklisted (i.e. to remove from your list)
|
@@ -277,16 +299,3 @@ appraisal rake
|
|
277
299
|
Compatibility
|
278
300
|
-------------
|
279
301
|
This project is tested and compatible with MRI 1.9.3, JRuby 1.7.12, and MRI 2.1.2.
|
280
|
-
|
281
|
-
License
|
282
|
-
-------
|
283
|
-
Copyright (c) 2013, GovDelivery, Inc.
|
284
|
-
|
285
|
-
All rights reserved.
|
286
|
-
|
287
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
288
|
-
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
289
|
-
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
290
|
-
* Neither the name of GovDelivery nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
291
|
-
|
292
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -54,8 +54,8 @@ module GovDelivery::TMS #:nodoc:
|
|
54
54
|
:reply_to,
|
55
55
|
:subject
|
56
56
|
|
57
|
-
# @!parse attr_reader :created_at, :status
|
58
|
-
readonly_attributes :created_at, :status
|
57
|
+
# @!parse attr_reader :id, :created_at, :status
|
58
|
+
readonly_attributes :id, :created_at, :status
|
59
59
|
|
60
60
|
##
|
61
61
|
# A CollectionResource of EmailRecipients on this email
|
@@ -16,8 +16,8 @@ module GovDelivery::TMS #:nodoc:
|
|
16
16
|
# @!parse attr_accessor :body
|
17
17
|
writeable_attributes :body
|
18
18
|
|
19
|
-
# @!parse attr_reader :created_at, :completed_at, :status
|
20
|
-
readonly_attributes :created_at, :completed_at, :status
|
19
|
+
# @!parse attr_reader :id, :created_at, :completed_at, :status
|
20
|
+
readonly_attributes :id, :created_at, :completed_at, :status
|
21
21
|
|
22
22
|
##
|
23
23
|
# A CollectionResource of Recipient objects
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govdelivery-tms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GovDelivery
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|