chartmogul-ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f986182b84e6942024d7ef0b17905f2db34d184a
|
4
|
+
data.tar.gz: 8efc977cc76df3539e1cfa850679ba5d6310efa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 119d70c2265f270b1f2039b93c9fe49afad470a4652962bae91276f3c4bc1ae926c787730b6979500ca1e924b185a51791ef49df1d1b2156067c2d553198d487
|
7
|
+
data.tar.gz: db4de77c873a42d5f26976016e610ce22c454f17ce2f65d4a8b1d7a16f61391013d7b521bf6750126ca859a324de5a6633db53206a2328c4783c956e5b4b14f0
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
<a href="https://chartmogul.com"><img width="200" src="https://chartmogul.com/assets/img/logo.png"></a>
|
3
3
|
</p>
|
4
4
|
|
5
|
-
<h3 align="center">ChartMogul API Ruby Client</h3>
|
5
|
+
<h3 align="center">Official ChartMogul API Ruby Client</h3>
|
6
6
|
|
7
7
|
<p align="center"><code>chartmogul-ruby</code> provides convenient Ruby bindings for <a href="https://dev.chartmogul.com">ChartMogul's API</a>.</p>
|
8
8
|
|
@@ -36,7 +36,7 @@
|
|
36
36
|
Add this line to your application's Gemfile:
|
37
37
|
|
38
38
|
```ruby
|
39
|
-
gem 'chartmogul-ruby'
|
39
|
+
gem 'chartmogul-ruby', require: 'chartmogul'
|
40
40
|
```
|
41
41
|
|
42
42
|
And then execute:
|
data/changelog.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# chartmogul-ruby Change Log
|
2
2
|
|
3
|
+
## Version 0.1.3 - 8 November 2016
|
4
|
+
- Add support for lead_created_at and free_trial_started_at fields to work with Leads and Trials charts
|
5
|
+
|
3
6
|
## Version 0.1.2 - 13 July 2016
|
4
7
|
- Fix bug preventing cancellation of subscriptions [#22]
|
5
8
|
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: '{"name":"Customer Test Data Source"}'
|
9
9
|
headers:
|
10
10
|
User-Agent:
|
11
|
-
- Faraday v0.9.
|
11
|
+
- Faraday v0.9.2
|
12
12
|
Content-Type:
|
13
13
|
- application/json
|
14
14
|
Authorization:
|
@@ -19,9 +19,9 @@ http_interactions:
|
|
19
19
|
message:
|
20
20
|
headers:
|
21
21
|
server:
|
22
|
-
- nginx/1.
|
22
|
+
- nginx/1.10.1
|
23
23
|
date:
|
24
|
-
-
|
24
|
+
- Tue, 08 Nov 2016 08:57:33 GMT
|
25
25
|
content-type:
|
26
26
|
- application/json; charset=utf-8
|
27
27
|
transfer-encoding:
|
@@ -35,31 +35,31 @@ http_interactions:
|
|
35
35
|
x-content-type-options:
|
36
36
|
- nosniff
|
37
37
|
etag:
|
38
|
-
- W/"
|
38
|
+
- W/"bcfee5f9180970835929930b05411ff4"
|
39
39
|
cache-control:
|
40
40
|
- max-age=0, private, must-revalidate
|
41
41
|
x-request-id:
|
42
|
-
-
|
42
|
+
- 9505cefe-9a7a-46af-a173-7a686cf46800
|
43
43
|
x-runtime:
|
44
|
-
- '0.
|
44
|
+
- '0.461858'
|
45
45
|
strict-transport-security:
|
46
46
|
- max-age=15768000
|
47
47
|
body:
|
48
48
|
encoding: UTF-8
|
49
|
-
string: '{"uuid":"
|
50
|
-
Test Data Source","created_at":"2016-
|
49
|
+
string: '{"uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa","name":"Customer
|
50
|
+
Test Data Source","created_at":"2016-11-08T08:57:33.304Z","status":"never_imported"}'
|
51
51
|
http_version:
|
52
|
-
recorded_at:
|
52
|
+
recorded_at: Tue, 08 Nov 2016 08:57:33 GMT
|
53
53
|
- request:
|
54
54
|
method: post
|
55
55
|
uri: https://api.chartmogul.com/v1/import/customers
|
56
56
|
body:
|
57
57
|
encoding: UTF-8
|
58
|
-
string: '{"
|
59
|
-
|
58
|
+
string: '{"external_id":"X1234","name":"Test Customer","email":"test@example.com","country":"DE","city":"Berlin","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa","lead_created_at":"2016-10-01
|
59
|
+
23:55:00 UTC","free_trial_started_at":"2016-10-12 11:12:00 UTC"}'
|
60
60
|
headers:
|
61
61
|
User-Agent:
|
62
|
-
- Faraday v0.9.
|
62
|
+
- Faraday v0.9.2
|
63
63
|
Content-Type:
|
64
64
|
- application/json
|
65
65
|
Authorization:
|
@@ -70,9 +70,9 @@ http_interactions:
|
|
70
70
|
message:
|
71
71
|
headers:
|
72
72
|
server:
|
73
|
-
- nginx/1.
|
73
|
+
- nginx/1.10.1
|
74
74
|
date:
|
75
|
-
-
|
75
|
+
- Tue, 08 Nov 2016 08:57:33 GMT
|
76
76
|
content-type:
|
77
77
|
- application/json; charset=utf-8
|
78
78
|
transfer-encoding:
|
@@ -86,21 +86,21 @@ http_interactions:
|
|
86
86
|
x-content-type-options:
|
87
87
|
- nosniff
|
88
88
|
etag:
|
89
|
-
- W/"
|
89
|
+
- W/"edb1e5e3324d47803eccb229a21363df"
|
90
90
|
cache-control:
|
91
91
|
- max-age=0, private, must-revalidate
|
92
92
|
x-request-id:
|
93
|
-
-
|
93
|
+
- bf049e2c-b057-4d90-85bf-f90c9ca98b31
|
94
94
|
x-runtime:
|
95
|
-
- '0.
|
95
|
+
- '0.158973'
|
96
96
|
strict-transport-security:
|
97
97
|
- max-age=15768000
|
98
98
|
body:
|
99
99
|
encoding: UTF-8
|
100
|
-
string: '{"uuid":"
|
101
|
-
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"
|
100
|
+
string: '{"uuid":"cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16","external_id":"X1234","name":"Test
|
101
|
+
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa"}'
|
102
102
|
http_version:
|
103
|
-
recorded_at:
|
103
|
+
recorded_at: Tue, 08 Nov 2016 08:57:33 GMT
|
104
104
|
- request:
|
105
105
|
method: get
|
106
106
|
uri: https://api.chartmogul.com/v1/import/customers
|
@@ -109,7 +109,9 @@ http_interactions:
|
|
109
109
|
string: ''
|
110
110
|
headers:
|
111
111
|
User-Agent:
|
112
|
-
- Faraday v0.9.
|
112
|
+
- Faraday v0.9.2
|
113
|
+
Content-Type:
|
114
|
+
- application/json
|
113
115
|
Authorization:
|
114
116
|
- Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY=
|
115
117
|
response:
|
@@ -118,9 +120,9 @@ http_interactions:
|
|
118
120
|
message:
|
119
121
|
headers:
|
120
122
|
server:
|
121
|
-
- nginx/1.
|
123
|
+
- nginx/1.10.1
|
122
124
|
date:
|
123
|
-
-
|
125
|
+
- Tue, 08 Nov 2016 08:57:34 GMT
|
124
126
|
content-type:
|
125
127
|
- application/json; charset=utf-8
|
126
128
|
transfer-encoding:
|
@@ -134,30 +136,30 @@ http_interactions:
|
|
134
136
|
x-content-type-options:
|
135
137
|
- nosniff
|
136
138
|
etag:
|
137
|
-
- W/"
|
139
|
+
- W/"eb861872d3bd01a055485e96ccf38898"
|
138
140
|
cache-control:
|
139
141
|
- max-age=0, private, must-revalidate
|
140
142
|
x-request-id:
|
141
|
-
-
|
143
|
+
- 32f87d7c-f944-405d-a87c-2195f175940a
|
142
144
|
x-runtime:
|
143
|
-
- '0.
|
145
|
+
- '0.022802'
|
144
146
|
strict-transport-security:
|
145
147
|
- max-age=15768000
|
146
148
|
body:
|
147
149
|
encoding: UTF-8
|
148
|
-
string: '{"customers":[{"uuid":"
|
149
|
-
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","data_source_uuid":"
|
150
|
+
string: '{"customers":[{"uuid":"cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16","external_id":"X1234","name":"Test
|
151
|
+
Customer","company":"","email":"test@example.com","city":"Berlin","state":"","country":"DE","zip":"","lead_created_at":"2016-10-01T23:55:00.000Z","free_trial_started_at":"2016-10-12T11:12:00.000Z","data_source_uuid":"ds_632433ee-a591-11e6-aa29-ff9ccc9a74aa"}],"current_page":1,"total_pages":1}'
|
150
152
|
http_version:
|
151
|
-
recorded_at:
|
153
|
+
recorded_at: Tue, 08 Nov 2016 08:57:34 GMT
|
152
154
|
- request:
|
153
155
|
method: delete
|
154
|
-
uri: https://api.chartmogul.com/v1/import/customers/
|
156
|
+
uri: https://api.chartmogul.com/v1/import/customers/cus_709bf73d-dc7c-4fb3-825d-a32c7fe5be16
|
155
157
|
body:
|
156
158
|
encoding: US-ASCII
|
157
159
|
string: ''
|
158
160
|
headers:
|
159
161
|
User-Agent:
|
160
|
-
- Faraday v0.9.
|
162
|
+
- Faraday v0.9.2
|
161
163
|
Authorization:
|
162
164
|
- Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY=
|
163
165
|
response:
|
@@ -166,9 +168,9 @@ http_interactions:
|
|
166
168
|
message:
|
167
169
|
headers:
|
168
170
|
server:
|
169
|
-
- nginx/1.
|
171
|
+
- nginx/1.10.1
|
170
172
|
date:
|
171
|
-
-
|
173
|
+
- Tue, 08 Nov 2016 08:57:34 GMT
|
172
174
|
connection:
|
173
175
|
- close
|
174
176
|
x-frame-options:
|
@@ -180,16 +182,16 @@ http_interactions:
|
|
180
182
|
cache-control:
|
181
183
|
- no-cache
|
182
184
|
x-request-id:
|
183
|
-
-
|
185
|
+
- f163488f-bbea-4937-897b-ee08b69a4560
|
184
186
|
x-runtime:
|
185
|
-
- '0.
|
187
|
+
- '0.015696'
|
186
188
|
strict-transport-security:
|
187
189
|
- max-age=15768000
|
188
190
|
body:
|
189
191
|
encoding: UTF-8
|
190
192
|
string: ''
|
191
193
|
http_version:
|
192
|
-
recorded_at:
|
194
|
+
recorded_at: Tue, 08 Nov 2016 08:57:34 GMT
|
193
195
|
- request:
|
194
196
|
method: get
|
195
197
|
uri: https://api.chartmogul.com/v1/import/customers
|
@@ -198,7 +200,9 @@ http_interactions:
|
|
198
200
|
string: ''
|
199
201
|
headers:
|
200
202
|
User-Agent:
|
201
|
-
- Faraday v0.9.
|
203
|
+
- Faraday v0.9.2
|
204
|
+
Content-Type:
|
205
|
+
- application/json
|
202
206
|
Authorization:
|
203
207
|
- Basic ODE2MjZkMWFiMzU5NTIwMzY5MjhjNjJjYmJiNDMyN2M6ODY3MDRmMDdkYzQwZmYzYjYyYzRjY2E5OTYxMjk2MzY=
|
204
208
|
response:
|
@@ -207,9 +211,9 @@ http_interactions:
|
|
207
211
|
message:
|
208
212
|
headers:
|
209
213
|
server:
|
210
|
-
- nginx/1.
|
214
|
+
- nginx/1.10.1
|
211
215
|
date:
|
212
|
-
-
|
216
|
+
- Tue, 08 Nov 2016 08:57:34 GMT
|
213
217
|
content-type:
|
214
218
|
- application/json; charset=utf-8
|
215
219
|
transfer-encoding:
|
@@ -227,14 +231,14 @@ http_interactions:
|
|
227
231
|
cache-control:
|
228
232
|
- max-age=0, private, must-revalidate
|
229
233
|
x-request-id:
|
230
|
-
-
|
234
|
+
- 770d6629-03d8-4f55-8bec-dde047828e7e
|
231
235
|
x-runtime:
|
232
|
-
- '0.
|
236
|
+
- '0.019712'
|
233
237
|
strict-transport-security:
|
234
238
|
- max-age=15768000
|
235
239
|
body:
|
236
240
|
encoding: UTF-8
|
237
241
|
string: '{"customers":[],"current_page":1,"total_pages":0}'
|
238
242
|
http_version:
|
239
|
-
recorded_at:
|
243
|
+
recorded_at: Tue, 08 Nov 2016 08:57:34 GMT
|
240
244
|
recorded_with: VCR 3.0.3
|
@@ -16,6 +16,8 @@ module ChartMogul
|
|
16
16
|
writeable_attr :city
|
17
17
|
writeable_attr :zip
|
18
18
|
writeable_attr :data_source_uuid
|
19
|
+
writeable_attr :lead_created_at, type: :time
|
20
|
+
writeable_attr :free_trial_started_at, type: :time
|
19
21
|
|
20
22
|
include API::Actions::All
|
21
23
|
include API::Actions::Create
|
data/lib/chartmogul/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chartmogul-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Langenauer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
224
|
version: '0'
|
225
225
|
requirements: []
|
226
226
|
rubyforge_project:
|
227
|
-
rubygems_version: 2.
|
227
|
+
rubygems_version: 2.5.1
|
228
228
|
signing_key:
|
229
229
|
specification_version: 4
|
230
230
|
summary: Chartmogul API Ruby Client
|