disco_app 0.11.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/components/shopify/image/_image.scss +82 -0
- data/app/assets/components/shopify/table/_table.scss +18 -0
- data/app/assets/javascripts/disco_app/components/custom/rules-editor.es6.jsx +2 -2
- data/app/assets/javascripts/disco_app/components/ui-kit/icons/next-icon.es6.jsx +3 -2
- data/app/assets/stylesheets/disco_app/disco_app.scss +2 -0
- data/app/assets/stylesheets/disco_app/ui-kit/_ui-kit.scss +5 -0
- data/app/jobs/disco_app/shop_job.rb +1 -1
- data/app/models/disco_app/concerns/has_metafields.rb +1 -1
- data/app/models/disco_app/concerns/renders_assets.rb +3 -3
- data/app/models/disco_app/concerns/shop.rb +3 -1
- data/app/models/disco_app/concerns/synchronises.rb +1 -1
- data/app/services/disco_app/charges_service.rb +3 -3
- data/app/views/disco_app/shared/_icons.html.erb +1 -1
- data/db/migrate/20150525000000_create_shops_if_not_existent.rb +102 -7
- data/lib/disco_app/version.rb +1 -1
- data/lib/generators/disco_app/disco_app_generator.rb +30 -33
- data/test/dummy/app/models/disco_app/shop.rb +5 -0
- data/test/fixtures/carts.yml +1 -1
- data/test/fixtures/products.yml +1 -1
- data/test/models/disco_app/has_metafields_test.rb +2 -2
- data/test/services/disco_app/subscription_service_test.rb +2 -2
- data/test/test_helper.rb +2 -0
- metadata +166 -89
- data/db/migrate/20150525162112_add_status_to_shops.rb +0 -5
- data/db/migrate/20150525171422_add_meta_to_shops.rb +0 -11
- data/db/migrate/20150629210346_add_charge_status_to_shop.rb +0 -5
- data/db/migrate/20150814214025_add_more_meta_to_shops.rb +0 -15
- data/db/migrate/20151017231302_create_disco_app_plans.rb +0 -13
- data/db/migrate/20151017232027_create_disco_app_subscriptions.rb +0 -15
- data/db/migrate/20151017234409_move_shop_to_disco_app_engine.rb +0 -5
- data/db/migrate/20160112233706_create_disco_app_sessions.rb +0 -12
- data/db/migrate/20160113194418_add_shop_id_to_disco_app_sessions.rb +0 -6
- data/db/migrate/20160223111044_create_disco_app_settings.rb +0 -8
- data/db/migrate/20160301223215_update_plans.rb +0 -22
- data/db/migrate/20160301224558_update_subscriptions.rb +0 -13
- data/db/migrate/20160302104816_create_disco_app_recurring_application_charges.rb +0 -14
- data/db/migrate/20160302105259_create_disco_app_application_charges.rb +0 -14
- data/db/migrate/20160302134728_drop_charge_status_from_shops.rb +0 -5
- data/db/migrate/20160302142941_add_shopify_attributes_to_charges.rb +0 -8
- data/db/migrate/20160331093148_create_disco_app_plan_codes.rb +0 -14
- data/db/migrate/20160401044420_add_status_to_plan_codes.rb +0 -5
- data/db/migrate/20160401045551_add_amount_and_plan_code_to_disco_app_subscriptions.rb +0 -7
- data/db/migrate/20160425205211_add_source_to_disco_app_subscriptions.rb +0 -5
- data/db/migrate/20160426033520_add_trial_period_days_to_disco_app_subscriptions.rb +0 -5
- data/db/migrate/20160513140727_add_name_to_disco_app_shops.rb +0 -5
- data/db/migrate/20160521135510_move_shop_to_synchronises.rb +0 -61
@@ -15,7 +15,7 @@ class DiscoApp::HasMetafieldsTest < ActiveSupport::TestCase
|
|
15
15
|
|
16
16
|
test 'can write metafields with a single namespace' do
|
17
17
|
stub_api_request(:put, "#{@shop.admin_url}/products/#{@product.id}.json", 'widget_store/products/write_metafields_single_namespace')
|
18
|
-
assert @shop.
|
18
|
+
assert @shop.with_api_context { @product.write_metafields(
|
19
19
|
namespace1: {
|
20
20
|
key1: 'value1',
|
21
21
|
key2: 2
|
@@ -25,7 +25,7 @@ class DiscoApp::HasMetafieldsTest < ActiveSupport::TestCase
|
|
25
25
|
|
26
26
|
test 'can write metafields with multiple namespaces' do
|
27
27
|
stub_api_request(:put, "#{@shop.admin_url}/products/#{@product.id}.json", 'widget_store/products/write_metafields_multiple_namespaces')
|
28
|
-
assert @shop.
|
28
|
+
assert @shop.with_api_context { @product.write_metafields(
|
29
29
|
namespace1: {
|
30
30
|
n1key1: 'value1',
|
31
31
|
n1key2: 2
|
@@ -37,8 +37,8 @@ class DiscoApp::SubscriptionServiceTest < ActiveSupport::TestCase
|
|
37
37
|
test 'new subscription for a plan without a trial period created correctly' do
|
38
38
|
new_subscription = DiscoApp::SubscriptionService.subscribe(@shop, disco_app_plans(:comped))
|
39
39
|
assert new_subscription.active?
|
40
|
-
|
41
|
-
|
40
|
+
assert_nil new_subscription.trial_start_at
|
41
|
+
assert_nil new_subscription.trial_end_at
|
42
42
|
end
|
43
43
|
|
44
44
|
test 'new subscription for a plan with a trial period created correctly' do
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disco_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Ballard
|
@@ -16,98 +16,140 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.2
|
19
|
+
version: '4.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.2
|
26
|
+
version: '4.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: sass-rails
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '5.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: '5.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: uglifier
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: '1.3'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: '1.3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: coffee-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.
|
61
|
+
version: '4.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.
|
68
|
+
version: '4.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: jquery-rails
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.
|
75
|
+
version: '4.2'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 4.
|
82
|
+
version: '4.2'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: turbolinks
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '5.0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '5.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: shopify_app
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '6.4'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '6.4'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: puma
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '2.14'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '2.14'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: sidekiq
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '4.2'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '4.2'
|
97
139
|
- !ruby/object:Gem::Dependency
|
98
140
|
name: pg
|
99
141
|
requirement: !ruby/object:Gem::Requirement
|
100
142
|
requirements:
|
101
143
|
- - "~>"
|
102
144
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
145
|
+
version: 0.19.0
|
104
146
|
type: :runtime
|
105
147
|
prerelease: false
|
106
148
|
version_requirements: !ruby/object:Gem::Requirement
|
107
149
|
requirements:
|
108
150
|
- - "~>"
|
109
151
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
152
|
+
version: 0.19.0
|
111
153
|
- !ruby/object:Gem::Dependency
|
112
154
|
name: rails_12factor
|
113
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,62 +164,76 @@ dependencies:
|
|
122
164
|
- - "~>"
|
123
165
|
- !ruby/object:Gem::Version
|
124
166
|
version: 0.0.3
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rails-bigint-pk
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '1.2'
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '1.2'
|
125
181
|
- !ruby/object:Gem::Dependency
|
126
182
|
name: active_utils
|
127
183
|
requirement: !ruby/object:Gem::Requirement
|
128
184
|
requirements:
|
129
185
|
- - "~>"
|
130
186
|
- !ruby/object:Gem::Version
|
131
|
-
version: 3.2
|
187
|
+
version: '3.2'
|
132
188
|
type: :runtime
|
133
189
|
prerelease: false
|
134
190
|
version_requirements: !ruby/object:Gem::Requirement
|
135
191
|
requirements:
|
136
192
|
- - "~>"
|
137
193
|
- !ruby/object:Gem::Version
|
138
|
-
version: 3.2
|
194
|
+
version: '3.2'
|
139
195
|
- !ruby/object:Gem::Dependency
|
140
196
|
name: activerecord-session_store
|
141
197
|
requirement: !ruby/object:Gem::Requirement
|
142
198
|
requirements:
|
143
199
|
- - "~>"
|
144
200
|
- !ruby/object:Gem::Version
|
145
|
-
version: 1.0
|
201
|
+
version: '1.0'
|
146
202
|
type: :runtime
|
147
203
|
prerelease: false
|
148
204
|
version_requirements: !ruby/object:Gem::Requirement
|
149
205
|
requirements:
|
150
206
|
- - "~>"
|
151
207
|
- !ruby/object:Gem::Version
|
152
|
-
version: 1.0
|
208
|
+
version: '1.0'
|
153
209
|
- !ruby/object:Gem::Dependency
|
154
|
-
name:
|
210
|
+
name: jsonapi-resources
|
155
211
|
requirement: !ruby/object:Gem::Requirement
|
156
212
|
requirements:
|
157
|
-
- -
|
213
|
+
- - "~>"
|
158
214
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
215
|
+
version: '0.8'
|
160
216
|
type: :runtime
|
161
217
|
prerelease: false
|
162
218
|
version_requirements: !ruby/object:Gem::Requirement
|
163
219
|
requirements:
|
164
|
-
- -
|
220
|
+
- - "~>"
|
165
221
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
222
|
+
version: '0.8'
|
167
223
|
- !ruby/object:Gem::Dependency
|
168
|
-
name:
|
224
|
+
name: acts_as_singleton
|
169
225
|
requirement: !ruby/object:Gem::Requirement
|
170
226
|
requirements:
|
171
227
|
- - "~>"
|
172
228
|
- !ruby/object:Gem::Version
|
173
|
-
version: 0.
|
229
|
+
version: 0.0.8
|
174
230
|
type: :runtime
|
175
231
|
prerelease: false
|
176
232
|
version_requirements: !ruby/object:Gem::Requirement
|
177
233
|
requirements:
|
178
234
|
- - "~>"
|
179
235
|
- !ruby/object:Gem::Version
|
180
|
-
version: 0.
|
236
|
+
version: 0.0.8
|
181
237
|
- !ruby/object:Gem::Dependency
|
182
238
|
name: react-rails
|
183
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,14 +254,14 @@ dependencies:
|
|
198
254
|
requirements:
|
199
255
|
- - "~>"
|
200
256
|
- !ruby/object:Gem::Version
|
201
|
-
version: 2.1
|
257
|
+
version: '2.1'
|
202
258
|
type: :runtime
|
203
259
|
prerelease: false
|
204
260
|
version_requirements: !ruby/object:Gem::Requirement
|
205
261
|
requirements:
|
206
262
|
- - "~>"
|
207
263
|
- !ruby/object:Gem::Version
|
208
|
-
version: 2.1
|
264
|
+
version: '2.1'
|
209
265
|
- !ruby/object:Gem::Dependency
|
210
266
|
name: render_anywhere
|
211
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -221,131 +277,173 @@ dependencies:
|
|
221
277
|
- !ruby/object:Gem::Version
|
222
278
|
version: 0.0.12
|
223
279
|
- !ruby/object:Gem::Dependency
|
224
|
-
name:
|
280
|
+
name: sinatra
|
225
281
|
requirement: !ruby/object:Gem::Requirement
|
226
282
|
requirements:
|
227
283
|
- - "~>"
|
228
284
|
- !ruby/object:Gem::Version
|
229
|
-
version:
|
285
|
+
version: '1.4'
|
230
286
|
type: :runtime
|
231
287
|
prerelease: false
|
232
288
|
version_requirements: !ruby/object:Gem::Requirement
|
233
289
|
requirements:
|
234
290
|
- - "~>"
|
235
291
|
- !ruby/object:Gem::Version
|
236
|
-
version:
|
292
|
+
version: '1.4'
|
237
293
|
- !ruby/object:Gem::Dependency
|
238
|
-
name:
|
294
|
+
name: active_link_to
|
239
295
|
requirement: !ruby/object:Gem::Requirement
|
240
296
|
requirements:
|
241
|
-
- - "
|
297
|
+
- - "~>"
|
242
298
|
- !ruby/object:Gem::Version
|
243
|
-
version: 1.
|
299
|
+
version: '1.0'
|
244
300
|
type: :runtime
|
245
301
|
prerelease: false
|
246
302
|
version_requirements: !ruby/object:Gem::Requirement
|
247
303
|
requirements:
|
248
|
-
- - "
|
304
|
+
- - "~>"
|
249
305
|
- !ruby/object:Gem::Version
|
250
|
-
version: 1.
|
306
|
+
version: '1.0'
|
251
307
|
- !ruby/object:Gem::Dependency
|
252
|
-
name:
|
308
|
+
name: premailer-rails
|
253
309
|
requirement: !ruby/object:Gem::Requirement
|
254
310
|
requirements:
|
255
|
-
- - "
|
311
|
+
- - "~>"
|
256
312
|
- !ruby/object:Gem::Version
|
257
|
-
version: 1.
|
313
|
+
version: '1.8'
|
258
314
|
type: :runtime
|
259
315
|
prerelease: false
|
260
316
|
version_requirements: !ruby/object:Gem::Requirement
|
261
317
|
requirements:
|
262
|
-
- - "
|
318
|
+
- - "~>"
|
263
319
|
- !ruby/object:Gem::Version
|
264
|
-
version: 1.
|
320
|
+
version: '1.8'
|
265
321
|
- !ruby/object:Gem::Dependency
|
266
|
-
name:
|
322
|
+
name: nokogiri
|
267
323
|
requirement: !ruby/object:Gem::Requirement
|
268
324
|
requirements:
|
269
325
|
- - "~>"
|
270
326
|
- !ruby/object:Gem::Version
|
271
|
-
version: 1.
|
272
|
-
type: :
|
327
|
+
version: '1.7'
|
328
|
+
type: :runtime
|
273
329
|
prerelease: false
|
274
330
|
version_requirements: !ruby/object:Gem::Requirement
|
275
331
|
requirements:
|
276
332
|
- - "~>"
|
277
333
|
- !ruby/object:Gem::Version
|
278
|
-
version: 1.
|
334
|
+
version: '1.7'
|
279
335
|
- !ruby/object:Gem::Dependency
|
280
|
-
name:
|
336
|
+
name: rollbar
|
281
337
|
requirement: !ruby/object:Gem::Requirement
|
282
338
|
requirements:
|
283
339
|
- - "~>"
|
284
340
|
- !ruby/object:Gem::Version
|
285
|
-
version: 2.
|
286
|
-
type: :
|
341
|
+
version: '2.14'
|
342
|
+
type: :runtime
|
287
343
|
prerelease: false
|
288
344
|
version_requirements: !ruby/object:Gem::Requirement
|
289
345
|
requirements:
|
290
346
|
- - "~>"
|
291
347
|
- !ruby/object:Gem::Version
|
292
|
-
version: 2.
|
348
|
+
version: '2.14'
|
293
349
|
- !ruby/object:Gem::Dependency
|
294
|
-
name:
|
350
|
+
name: oj
|
295
351
|
requirement: !ruby/object:Gem::Requirement
|
296
352
|
requirements:
|
297
353
|
- - "~>"
|
298
354
|
- !ruby/object:Gem::Version
|
299
|
-
version:
|
300
|
-
type: :
|
355
|
+
version: '2.14'
|
356
|
+
type: :runtime
|
357
|
+
prerelease: false
|
358
|
+
version_requirements: !ruby/object:Gem::Requirement
|
359
|
+
requirements:
|
360
|
+
- - "~>"
|
361
|
+
- !ruby/object:Gem::Version
|
362
|
+
version: '2.14'
|
363
|
+
- !ruby/object:Gem::Dependency
|
364
|
+
name: newrelic_rpm
|
365
|
+
requirement: !ruby/object:Gem::Requirement
|
366
|
+
requirements:
|
367
|
+
- - "~>"
|
368
|
+
- !ruby/object:Gem::Version
|
369
|
+
version: '3.15'
|
370
|
+
type: :runtime
|
371
|
+
prerelease: false
|
372
|
+
version_requirements: !ruby/object:Gem::Requirement
|
373
|
+
requirements:
|
374
|
+
- - "~>"
|
375
|
+
- !ruby/object:Gem::Version
|
376
|
+
version: '3.15'
|
377
|
+
- !ruby/object:Gem::Dependency
|
378
|
+
name: mailgun_rails
|
379
|
+
requirement: !ruby/object:Gem::Requirement
|
380
|
+
requirements:
|
381
|
+
- - "~>"
|
382
|
+
- !ruby/object:Gem::Version
|
383
|
+
version: '0.8'
|
384
|
+
type: :runtime
|
301
385
|
prerelease: false
|
302
386
|
version_requirements: !ruby/object:Gem::Requirement
|
303
387
|
requirements:
|
304
388
|
- - "~>"
|
305
389
|
- !ruby/object:Gem::Version
|
306
|
-
version:
|
390
|
+
version: '0.8'
|
307
391
|
- !ruby/object:Gem::Dependency
|
308
|
-
name:
|
392
|
+
name: dotenv-rails
|
309
393
|
requirement: !ruby/object:Gem::Requirement
|
310
394
|
requirements:
|
311
395
|
- - "~>"
|
312
396
|
- !ruby/object:Gem::Version
|
313
|
-
version: 2.
|
397
|
+
version: '2.0'
|
314
398
|
type: :development
|
315
399
|
prerelease: false
|
316
400
|
version_requirements: !ruby/object:Gem::Requirement
|
317
401
|
requirements:
|
318
402
|
- - "~>"
|
319
403
|
- !ruby/object:Gem::Version
|
320
|
-
version: 2.
|
404
|
+
version: '2.0'
|
321
405
|
- !ruby/object:Gem::Dependency
|
322
|
-
name:
|
406
|
+
name: minitest-reporters
|
323
407
|
requirement: !ruby/object:Gem::Requirement
|
324
408
|
requirements:
|
325
409
|
- - "~>"
|
326
410
|
- !ruby/object:Gem::Version
|
327
|
-
version:
|
411
|
+
version: '1.0'
|
328
412
|
type: :development
|
329
413
|
prerelease: false
|
330
414
|
version_requirements: !ruby/object:Gem::Requirement
|
331
415
|
requirements:
|
332
416
|
- - "~>"
|
333
417
|
- !ruby/object:Gem::Version
|
334
|
-
version:
|
418
|
+
version: '1.0'
|
335
419
|
- !ruby/object:Gem::Dependency
|
336
420
|
name: webmock
|
337
421
|
requirement: !ruby/object:Gem::Requirement
|
338
422
|
requirements:
|
339
423
|
- - "~>"
|
340
424
|
- !ruby/object:Gem::Version
|
341
|
-
version:
|
425
|
+
version: '2.3'
|
426
|
+
type: :development
|
427
|
+
prerelease: false
|
428
|
+
version_requirements: !ruby/object:Gem::Requirement
|
429
|
+
requirements:
|
430
|
+
- - "~>"
|
431
|
+
- !ruby/object:Gem::Version
|
432
|
+
version: '2.3'
|
433
|
+
- !ruby/object:Gem::Dependency
|
434
|
+
name: vcr
|
435
|
+
requirement: !ruby/object:Gem::Requirement
|
436
|
+
requirements:
|
437
|
+
- - "~>"
|
438
|
+
- !ruby/object:Gem::Version
|
439
|
+
version: '3.0'
|
342
440
|
type: :development
|
343
441
|
prerelease: false
|
344
442
|
version_requirements: !ruby/object:Gem::Requirement
|
345
443
|
requirements:
|
346
444
|
- - "~>"
|
347
445
|
- !ruby/object:Gem::Version
|
348
|
-
version:
|
446
|
+
version: '3.0'
|
349
447
|
description: Rails engine for Shopify applications.
|
350
448
|
email:
|
351
449
|
- gavin@gavinballard.com
|
@@ -363,6 +461,8 @@ files:
|
|
363
461
|
- app/assets/components/shopify/card/card-header.es6.jsx
|
364
462
|
- app/assets/components/shopify/card/card-section.es6.jsx
|
365
463
|
- app/assets/components/shopify/card/card.es6.jsx
|
464
|
+
- app/assets/components/shopify/image/_image.scss
|
465
|
+
- app/assets/components/shopify/table/_table.scss
|
366
466
|
- app/assets/components/shopify/typography/_typography.scss
|
367
467
|
- app/assets/components/shopify/typography/ui-heading.es6.jsx
|
368
468
|
- app/assets/components/shopify/ui-layout/_ui-layout.scss
|
@@ -516,29 +616,6 @@ files:
|
|
516
616
|
- app/views/sessions/new.html.erb
|
517
617
|
- config/routes.rb
|
518
618
|
- db/migrate/20150525000000_create_shops_if_not_existent.rb
|
519
|
-
- db/migrate/20150525162112_add_status_to_shops.rb
|
520
|
-
- db/migrate/20150525171422_add_meta_to_shops.rb
|
521
|
-
- db/migrate/20150629210346_add_charge_status_to_shop.rb
|
522
|
-
- db/migrate/20150814214025_add_more_meta_to_shops.rb
|
523
|
-
- db/migrate/20151017231302_create_disco_app_plans.rb
|
524
|
-
- db/migrate/20151017232027_create_disco_app_subscriptions.rb
|
525
|
-
- db/migrate/20151017234409_move_shop_to_disco_app_engine.rb
|
526
|
-
- db/migrate/20160112233706_create_disco_app_sessions.rb
|
527
|
-
- db/migrate/20160113194418_add_shop_id_to_disco_app_sessions.rb
|
528
|
-
- db/migrate/20160223111044_create_disco_app_settings.rb
|
529
|
-
- db/migrate/20160301223215_update_plans.rb
|
530
|
-
- db/migrate/20160301224558_update_subscriptions.rb
|
531
|
-
- db/migrate/20160302104816_create_disco_app_recurring_application_charges.rb
|
532
|
-
- db/migrate/20160302105259_create_disco_app_application_charges.rb
|
533
|
-
- db/migrate/20160302134728_drop_charge_status_from_shops.rb
|
534
|
-
- db/migrate/20160302142941_add_shopify_attributes_to_charges.rb
|
535
|
-
- db/migrate/20160331093148_create_disco_app_plan_codes.rb
|
536
|
-
- db/migrate/20160401044420_add_status_to_plan_codes.rb
|
537
|
-
- db/migrate/20160401045551_add_amount_and_plan_code_to_disco_app_subscriptions.rb
|
538
|
-
- db/migrate/20160425205211_add_source_to_disco_app_subscriptions.rb
|
539
|
-
- db/migrate/20160426033520_add_trial_period_days_to_disco_app_subscriptions.rb
|
540
|
-
- db/migrate/20160513140727_add_name_to_disco_app_shops.rb
|
541
|
-
- db/migrate/20160521135510_move_shop_to_synchronises.rb
|
542
619
|
- lib/disco_app.rb
|
543
620
|
- lib/disco_app/configuration.rb
|
544
621
|
- lib/disco_app/constants.rb
|
@@ -720,7 +797,7 @@ files:
|
|
720
797
|
- test/test_helper.rb
|
721
798
|
homepage: https://github.com/discolabs/disco_app/
|
722
799
|
licenses:
|
723
|
-
-
|
800
|
+
- None
|
724
801
|
metadata: {}
|
725
802
|
post_install_message:
|
726
803
|
rdoc_options: []
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class AddMetaToShops < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
add_column :shops, :email, :string
|
4
|
-
add_column :shops, :country_name, :string
|
5
|
-
add_column :shops, :currency, :string
|
6
|
-
add_column :shops, :money_format, :string
|
7
|
-
add_column :shops, :money_with_currency_format, :string
|
8
|
-
add_column :shops, :domain, :string
|
9
|
-
add_column :shops, :plan_name, :string
|
10
|
-
end
|
11
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class AddMoreMetaToShops < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
add_column :shops, :plan_display_name, :string
|
4
|
-
add_column :shops, :latitude, :decimal
|
5
|
-
add_column :shops, :longitude, :decimal
|
6
|
-
add_column :shops, :customer_email, :string
|
7
|
-
add_column :shops, :password_enabled, :boolean
|
8
|
-
add_column :shops, :phone, :string
|
9
|
-
add_column :shops, :primary_locale, :string
|
10
|
-
add_column :shops, :ships_to_countries, :string
|
11
|
-
add_column :shops, :timezone, :string
|
12
|
-
add_column :shops, :iana_timezone, :string
|
13
|
-
add_column :shops, :has_storefront, :boolean
|
14
|
-
end
|
15
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
class CreateDiscoAppPlans < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :disco_app_plans do |t|
|
4
|
-
t.integer :status
|
5
|
-
t.string :name
|
6
|
-
t.integer :charge_type
|
7
|
-
t.decimal :default_price
|
8
|
-
t.integer :default_trial_days
|
9
|
-
|
10
|
-
t.timestamps null: false
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
class CreateDiscoAppSubscriptions < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :disco_app_subscriptions do |t|
|
4
|
-
t.belongs_to :shop, index: true
|
5
|
-
t.belongs_to :plan, index: true
|
6
|
-
t.integer :status
|
7
|
-
t.string :name
|
8
|
-
t.integer :charge_type
|
9
|
-
t.decimal :price
|
10
|
-
t.integer :trial_days
|
11
|
-
|
12
|
-
t.timestamps null: false
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
@@ -1,12 +0,0 @@
|
|
1
|
-
class CreateDiscoAppSessions < ActiveRecord::Migration
|
2
|
-
def change
|
3
|
-
create_table :disco_app_sessions do |t|
|
4
|
-
t.string :session_id, null: false
|
5
|
-
t.text :data
|
6
|
-
t.timestamps null: false
|
7
|
-
end
|
8
|
-
|
9
|
-
add_index :disco_app_sessions, :session_id, :unique => true
|
10
|
-
add_index :disco_app_sessions, :updated_at
|
11
|
-
end
|
12
|
-
end
|