spreedly_subscriptions 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/HISTORY.md +8 -0
- data/lib/spreedly/subscriptions/version.rb +1 -1
- data/lib/spreedly/subscriptions.rb +3 -3
- metadata +44 -9
data/HISTORY.md
CHANGED
@@ -111,7 +111,7 @@ module Spreedly
|
|
111
111
|
optional_attrs = args.last.is_a?(::Hash) ? args.pop : {}
|
112
112
|
email, screen_name = args
|
113
113
|
subscriber = {:customer_id => id, :email => email, :screen_name => screen_name}.merge(optional_attrs)
|
114
|
-
result = Spreedly::Subscriptions.post('/subscribers.xml', :body => Spreedly.to_xml_params(:subscriber => subscriber))
|
114
|
+
result = Spreedly::Subscriptions.post('/subscribers.xml', :body => Spreedly::Subscriptions.to_xml_params(:subscriber => subscriber))
|
115
115
|
case result.code.to_s
|
116
116
|
when /2../
|
117
117
|
new(result['subscriber'])
|
@@ -158,7 +158,7 @@ module Spreedly
|
|
158
158
|
params[:feature_level] = feature_level if feature_level
|
159
159
|
raise "Feature level is required to comp an inactive subscriber" if !active? and !feature_level
|
160
160
|
endpoint = (active? ? "complimentary_time_extensions" : "complimentary_subscriptions")
|
161
|
-
result = Spreedly::Subscriptions.post("/subscribers/#{id}/#{endpoint}.xml", :body => Spreedly.to_xml_params(endpoint[0..-2] => params))
|
161
|
+
result = Spreedly::Subscriptions.post("/subscribers/#{id}/#{endpoint}.xml", :body => Spreedly::Subscriptions.to_xml_params(endpoint[0..-2] => params))
|
162
162
|
case result.code.to_s
|
163
163
|
when /2../
|
164
164
|
when '404'
|
@@ -206,7 +206,7 @@ module Spreedly
|
|
206
206
|
# Update a Subscriber
|
207
207
|
# usage: @subscriber.update(:email => email, :screen_name => screen_name)
|
208
208
|
def update(args)
|
209
|
-
result = Spreedly::Subscriptions.put("/subscribers/#{id}.xml", :body => Spreedly.to_xml_params(:subscriber => args))
|
209
|
+
result = Spreedly::Subscriptions.put("/subscribers/#{id}.xml", :body => Spreedly::Subscriptions.to_xml_params(:subscriber => args))
|
210
210
|
|
211
211
|
case result.code.to_s
|
212
212
|
when /2../
|
metadata
CHANGED
@@ -2,25 +2,41 @@
|
|
2
2
|
name: spreedly_subscriptions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 2.0.
|
5
|
+
version: 2.0.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Spreedly
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
+
prerelease: false
|
16
|
+
name: bundler
|
17
|
+
type: :development
|
18
|
+
version_requirements: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - ~>
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '1.3'
|
23
|
+
none: false
|
24
|
+
requirement: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: '1.3'
|
29
|
+
none: false
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
prerelease: false
|
32
|
+
name: rake
|
33
|
+
type: :development
|
15
34
|
version_requirements: !ruby/object:Gem::Requirement
|
16
35
|
requirements:
|
17
36
|
- - ! '>='
|
18
37
|
- !ruby/object:Gem::Version
|
19
38
|
version: '0'
|
20
39
|
none: false
|
21
|
-
name: httparty
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
40
|
requirement: !ruby/object:Gem::Requirement
|
25
41
|
requirements:
|
26
42
|
- - ! '>='
|
@@ -28,15 +44,31 @@ dependencies:
|
|
28
44
|
version: '0'
|
29
45
|
none: false
|
30
46
|
- !ruby/object:Gem::Dependency
|
47
|
+
prerelease: false
|
48
|
+
name: httparty
|
49
|
+
type: :runtime
|
31
50
|
version_requirements: !ruby/object:Gem::Requirement
|
32
51
|
requirements:
|
33
52
|
- - ! '>='
|
34
53
|
- !ruby/object:Gem::Version
|
35
54
|
version: '0'
|
36
55
|
none: false
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ! '>='
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
61
|
+
none: false
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
prerelease: false
|
37
64
|
name: shoulda
|
38
65
|
type: :development
|
39
|
-
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ! '>='
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0'
|
71
|
+
none: false
|
40
72
|
requirement: !ruby/object:Gem::Requirement
|
41
73
|
requirements:
|
42
74
|
- - ! '>='
|
@@ -44,15 +76,15 @@ dependencies:
|
|
44
76
|
version: '0'
|
45
77
|
none: false
|
46
78
|
- !ruby/object:Gem::Dependency
|
79
|
+
prerelease: false
|
80
|
+
name: mechanize
|
81
|
+
type: :development
|
47
82
|
version_requirements: !ruby/object:Gem::Requirement
|
48
83
|
requirements:
|
49
84
|
- - ~>
|
50
85
|
- !ruby/object:Gem::Version
|
51
86
|
version: 2.5.1
|
52
87
|
none: false
|
53
|
-
name: mechanize
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
88
|
requirement: !ruby/object:Gem::Requirement
|
57
89
|
requirements:
|
58
90
|
- - ~>
|
@@ -86,6 +118,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
118
|
requirements:
|
87
119
|
- - ! '>='
|
88
120
|
- !ruby/object:Gem::Version
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
hash: -2512383205673063749
|
89
124
|
version: '0'
|
90
125
|
none: false
|
91
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|