sailthru-client 1.08 → 1.09
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/lib/sailthru.rb +11 -1
- metadata +4 -4
data/lib/sailthru.rb
CHANGED
@@ -7,7 +7,7 @@ require 'digest/md5'
|
|
7
7
|
|
8
8
|
module Sailthru
|
9
9
|
|
10
|
-
Version = VERSION = '1.
|
10
|
+
Version = VERSION = '1.09'
|
11
11
|
|
12
12
|
class SailthruClientException < Exception
|
13
13
|
end
|
@@ -353,6 +353,16 @@ module Sailthru
|
|
353
353
|
data[:template] = template_name
|
354
354
|
self.api_post(:template, data)
|
355
355
|
end
|
356
|
+
|
357
|
+
# params:
|
358
|
+
# template_name, String
|
359
|
+
# returns:
|
360
|
+
# Hash of response data.
|
361
|
+
#
|
362
|
+
# Delete a template.
|
363
|
+
def delete_template(template_name)
|
364
|
+
self.api_delete(:template, {:template => template_name})
|
365
|
+
end
|
356
366
|
|
357
367
|
|
358
368
|
# params:
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sailthru-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: "1.
|
8
|
+
- 9
|
9
|
+
version: "1.09"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Prajwal Tuladhar
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-
|
17
|
+
date: 2011-05-10 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|