drip-ruby 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +5 -1
- data/.rubocop_todo.yml +17 -9
- data/.travis.yml +1 -1
- data/CHANGELOG.md +20 -1
- data/Gemfile +10 -0
- data/drip-ruby.gemspec +3 -11
- data/lib/drip/client.rb +44 -66
- data/lib/drip/client/accounts.rb +2 -2
- data/lib/drip/client/broadcasts.rb +2 -2
- data/lib/drip/client/campaign_subscriptions.rb +1 -1
- data/lib/drip/client/campaigns.rb +5 -5
- data/lib/drip/client/configuration.rb +28 -0
- data/lib/drip/client/conversions.rb +2 -2
- data/lib/drip/client/custom_fields.rb +1 -1
- data/lib/drip/client/events.rb +4 -4
- data/lib/drip/client/forms.rb +2 -2
- data/lib/drip/client/http_client.rb +64 -0
- data/lib/drip/client/orders.rb +3 -3
- data/lib/drip/client/shopper_activity.rb +78 -0
- data/lib/drip/client/subscribers.rb +13 -13
- data/lib/drip/client/tags.rb +3 -3
- data/lib/drip/client/webhooks.rb +5 -5
- data/lib/drip/client/workflow_triggers.rb +3 -3
- data/lib/drip/client/workflows.rb +6 -6
- data/lib/drip/request.rb +31 -0
- data/lib/drip/response.rb +13 -13
- data/lib/drip/version.rb +1 -1
- data/test/drip/client/configuration_test.rb +122 -0
- data/test/drip/client/http_client_test.rb +96 -0
- data/test/drip/client/shopper_activity_test.rb +175 -0
- data/test/drip/client_test.rb +32 -97
- data/test/drip/collection_test.rb +14 -0
- data/test/drip/collections/account_test.rb +8 -0
- data/test/drip/collections/broadcasts_test.rb +8 -0
- data/test/drip/collections/campaign_subscriptions_test.rb +8 -0
- data/test/drip/collections/campaigns_test.rb +8 -0
- data/test/drip/collections/errors_test.rb +8 -0
- data/test/drip/collections/orders_test.rb +8 -0
- data/test/drip/collections/purchases_test.rb +8 -0
- data/test/drip/collections/tags_test.rb +8 -0
- data/test/drip/collections/webhooks_test.rb +8 -0
- data/test/drip/collections/workflow_triggers_test.rb +8 -0
- data/test/drip/collections/workflows_test.rb +8 -0
- data/test/drip/request_test.rb +58 -0
- data/test/drip/resource_test.rb +12 -0
- data/test/drip/resources/tag_test.rb +13 -0
- data/test/drip/response_test.rb +33 -0
- data/test/test_helper.rb +3 -0
- metadata +42 -104
metadata
CHANGED
@@ -1,116 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drip-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Drip
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.6'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.6'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: minitest
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '5.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '5.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: mocha
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.1'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.1'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '10.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '10.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rubocop
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: 0.56.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 0.56.0
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: shoulda-context
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '1.0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: webmock
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '3.4'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '3.4'
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
111
13
|
description: A simple wrapper for the Drip API
|
112
14
|
email:
|
113
|
-
-
|
15
|
+
- support@drip.com
|
114
16
|
executables: []
|
115
17
|
extensions: []
|
116
18
|
extra_rdoc_files: []
|
@@ -131,11 +33,14 @@ files:
|
|
131
33
|
- lib/drip/client/broadcasts.rb
|
132
34
|
- lib/drip/client/campaign_subscriptions.rb
|
133
35
|
- lib/drip/client/campaigns.rb
|
36
|
+
- lib/drip/client/configuration.rb
|
134
37
|
- lib/drip/client/conversions.rb
|
135
38
|
- lib/drip/client/custom_fields.rb
|
136
39
|
- lib/drip/client/events.rb
|
137
40
|
- lib/drip/client/forms.rb
|
41
|
+
- lib/drip/client/http_client.rb
|
138
42
|
- lib/drip/client/orders.rb
|
43
|
+
- lib/drip/client/shopper_activity.rb
|
139
44
|
- lib/drip/client/subscribers.rb
|
140
45
|
- lib/drip/client/tags.rb
|
141
46
|
- lib/drip/client/webhooks.rb
|
@@ -156,6 +61,7 @@ files:
|
|
156
61
|
- lib/drip/collections/workflow_triggers.rb
|
157
62
|
- lib/drip/collections/workflows.rb
|
158
63
|
- lib/drip/errors.rb
|
64
|
+
- lib/drip/request.rb
|
159
65
|
- lib/drip/resource.rb
|
160
66
|
- lib/drip/resources.rb
|
161
67
|
- lib/drip/resources/account.rb
|
@@ -176,11 +82,14 @@ files:
|
|
176
82
|
- test/drip/client/broadcasts_test.rb
|
177
83
|
- test/drip/client/campaign_subscriptions_test.rb
|
178
84
|
- test/drip/client/campaigns_test.rb
|
85
|
+
- test/drip/client/configuration_test.rb
|
179
86
|
- test/drip/client/conversions_test.rb
|
180
87
|
- test/drip/client/custom_fields_test.rb
|
181
88
|
- test/drip/client/events_test.rb
|
182
89
|
- test/drip/client/forms_test.rb
|
90
|
+
- test/drip/client/http_client_test.rb
|
183
91
|
- test/drip/client/orders_test.rb
|
92
|
+
- test/drip/client/shopper_activity_test.rb
|
184
93
|
- test/drip/client/subscribers_test.rb
|
185
94
|
- test/drip/client/tags_test.rb
|
186
95
|
- test/drip/client/webhooks_test.rb
|
@@ -188,11 +97,24 @@ files:
|
|
188
97
|
- test/drip/client/workflows_test.rb
|
189
98
|
- test/drip/client_test.rb
|
190
99
|
- test/drip/collection_test.rb
|
100
|
+
- test/drip/collections/account_test.rb
|
101
|
+
- test/drip/collections/broadcasts_test.rb
|
102
|
+
- test/drip/collections/campaign_subscriptions_test.rb
|
103
|
+
- test/drip/collections/campaigns_test.rb
|
104
|
+
- test/drip/collections/errors_test.rb
|
105
|
+
- test/drip/collections/orders_test.rb
|
106
|
+
- test/drip/collections/purchases_test.rb
|
107
|
+
- test/drip/collections/tags_test.rb
|
108
|
+
- test/drip/collections/webhooks_test.rb
|
109
|
+
- test/drip/collections/workflow_triggers_test.rb
|
110
|
+
- test/drip/collections/workflows_test.rb
|
191
111
|
- test/drip/collections_test.rb
|
112
|
+
- test/drip/request_test.rb
|
192
113
|
- test/drip/resource_test.rb
|
193
114
|
- test/drip/resources/account_test.rb
|
194
115
|
- test/drip/resources/order_test.rb
|
195
116
|
- test/drip/resources/subscriber_test.rb
|
117
|
+
- test/drip/resources/tag_test.rb
|
196
118
|
- test/drip/resources_test.rb
|
197
119
|
- test/drip/response_test.rb
|
198
120
|
- test/fixtures/resources/not_found_error.json
|
@@ -210,7 +132,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
210
132
|
requirements:
|
211
133
|
- - ">="
|
212
134
|
- !ruby/object:Gem::Version
|
213
|
-
version: '2.
|
135
|
+
version: '2.2'
|
214
136
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
215
137
|
requirements:
|
216
138
|
- - ">="
|
@@ -227,11 +149,14 @@ test_files:
|
|
227
149
|
- test/drip/client/broadcasts_test.rb
|
228
150
|
- test/drip/client/campaign_subscriptions_test.rb
|
229
151
|
- test/drip/client/campaigns_test.rb
|
152
|
+
- test/drip/client/configuration_test.rb
|
230
153
|
- test/drip/client/conversions_test.rb
|
231
154
|
- test/drip/client/custom_fields_test.rb
|
232
155
|
- test/drip/client/events_test.rb
|
233
156
|
- test/drip/client/forms_test.rb
|
157
|
+
- test/drip/client/http_client_test.rb
|
234
158
|
- test/drip/client/orders_test.rb
|
159
|
+
- test/drip/client/shopper_activity_test.rb
|
235
160
|
- test/drip/client/subscribers_test.rb
|
236
161
|
- test/drip/client/tags_test.rb
|
237
162
|
- test/drip/client/webhooks_test.rb
|
@@ -239,11 +164,24 @@ test_files:
|
|
239
164
|
- test/drip/client/workflows_test.rb
|
240
165
|
- test/drip/client_test.rb
|
241
166
|
- test/drip/collection_test.rb
|
167
|
+
- test/drip/collections/account_test.rb
|
168
|
+
- test/drip/collections/broadcasts_test.rb
|
169
|
+
- test/drip/collections/campaign_subscriptions_test.rb
|
170
|
+
- test/drip/collections/campaigns_test.rb
|
171
|
+
- test/drip/collections/errors_test.rb
|
172
|
+
- test/drip/collections/orders_test.rb
|
173
|
+
- test/drip/collections/purchases_test.rb
|
174
|
+
- test/drip/collections/tags_test.rb
|
175
|
+
- test/drip/collections/webhooks_test.rb
|
176
|
+
- test/drip/collections/workflow_triggers_test.rb
|
177
|
+
- test/drip/collections/workflows_test.rb
|
242
178
|
- test/drip/collections_test.rb
|
179
|
+
- test/drip/request_test.rb
|
243
180
|
- test/drip/resource_test.rb
|
244
181
|
- test/drip/resources/account_test.rb
|
245
182
|
- test/drip/resources/order_test.rb
|
246
183
|
- test/drip/resources/subscriber_test.rb
|
184
|
+
- test/drip/resources/tag_test.rb
|
247
185
|
- test/drip/resources_test.rb
|
248
186
|
- test/drip/response_test.rb
|
249
187
|
- test/fixtures/resources/not_found_error.json
|