sailthru-client 1.06 → 1.07

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.md +3 -2
  2. data/lib/sailthru.rb +2 -5
  3. metadata +4 -4
data/README.md CHANGED
@@ -80,7 +80,7 @@ Examples
80
80
  #schedule blast from template
81
81
  template = 'default'
82
82
  list = 'default'
83
- schdule_time = 'now'
83
+ schedule_time = 'now'
84
84
  response = sailthru.schedule_blast_from_template(template, list, schedule_time)
85
85
 
86
86
  #schedule blast from previous blast
@@ -91,7 +91,8 @@ Examples
91
91
  'my_var2' => [7,8,9],
92
92
  'my_var3' => {'president' => 'obama', 'nested' => {'vp' => 'palin'}}
93
93
  }
94
- response = sailthru.schedule_blast_from_blast(blast_id, "now", vars)
94
+ options = {:vars => vars}
95
+ response = sailthru.schedule_blast_from_blast(blast_id, "now", options)
95
96
 
96
97
  #update blast
97
98
  blast_id = 7886
data/lib/sailthru.rb CHANGED
@@ -7,7 +7,7 @@ require 'digest/md5'
7
7
 
8
8
  module Sailthru
9
9
 
10
- Version = VERSION = '1.06'
10
+ Version = VERSION = '1.07'
11
11
 
12
12
  class SailthruClientException < Exception
13
13
  end
@@ -395,10 +395,7 @@ module Sailthru
395
395
  def purchase(email, items, incomplete = nil, message_id = nil)
396
396
  data = {}
397
397
  data[:email] = email
398
-
399
- if verify_purchase_items(items)
400
- data[:items] = items
401
- end
398
+ data[:items] = items
402
399
 
403
400
  if incomplete != nil
404
401
  data[:incomplete] = incomplete.to_i
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: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 6
9
- version: "1.06"
8
+ - 7
9
+ version: "1.07"
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-03-04 00:00:00 -05:00
17
+ date: 2011-04-08 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency