disco_app 0.5.6 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/disco_app/icon.svg +1 -0
  3. data/app/assets/stylesheets/disco_app/{bootstrap-custom.scss → bootstrap/_custom.scss} +3 -4
  4. data/app/assets/stylesheets/disco_app/bootstrap/_variables.scss +872 -0
  5. data/app/assets/stylesheets/disco_app/disco/_buttons.scss +31 -0
  6. data/app/assets/stylesheets/disco_app/disco/_cards.scss +43 -0
  7. data/app/assets/stylesheets/disco_app/disco/_forms.scss +23 -0
  8. data/app/assets/stylesheets/disco_app/disco/_sections.scss +61 -0
  9. data/app/assets/stylesheets/disco_app/disco/_type.scss +21 -0
  10. data/app/assets/stylesheets/disco_app/disco/mixins/_flexbox.scss +394 -0
  11. data/app/assets/stylesheets/disco_app/disco_app.scss +12 -6
  12. data/app/controllers/disco_app/authenticated_controller.rb +1 -1
  13. data/app/controllers/disco_app/install_controller.rb +1 -1
  14. data/app/controllers/disco_app/webhooks_controller.rb +11 -9
  15. data/app/jobs/disco_app/app_installed_job.rb +1 -1
  16. data/app/jobs/disco_app/app_uninstalled_job.rb +2 -17
  17. data/app/jobs/disco_app/concerns/app_uninstalled_job.rb +19 -0
  18. data/app/jobs/disco_app/shop_job.rb +1 -1
  19. data/app/jobs/disco_app/shop_update_job.rb +1 -1
  20. data/app/models/disco_app/concerns/plan.rb +14 -0
  21. data/app/models/disco_app/concerns/shop.rb +62 -0
  22. data/app/models/disco_app/concerns/subscription.rb +14 -0
  23. data/app/models/disco_app/plan.rb +3 -0
  24. data/app/models/disco_app/session_storage.rb +18 -0
  25. data/app/models/disco_app/shop.rb +2 -43
  26. data/app/models/disco_app/subscription.rb +3 -0
  27. data/app/services/disco_app/subscription_service.rb +25 -0
  28. data/app/services/disco_app/webhook_service.rb +30 -0
  29. data/app/views/disco_app/shared/_card.html.erb +16 -0
  30. data/app/views/disco_app/shared/_section.html.erb +17 -0
  31. data/{lib/generators/disco_app/templates → app}/views/layouts/embedded_app.html.erb +14 -6
  32. data/db/migrate/20150525000000_create_shops_if_not_existent.rb +15 -0
  33. data/db/migrate/20151017231302_create_disco_app_plans.rb +13 -0
  34. data/db/migrate/20151017232027_create_disco_app_subscriptions.rb +15 -0
  35. data/db/migrate/20151017234409_move_shop_to_disco_app_engine.rb +5 -0
  36. data/lib/disco_app/engine.rb +5 -0
  37. data/lib/disco_app/version.rb +1 -1
  38. data/lib/generators/disco_app/disco_app_generator.rb +31 -54
  39. data/lib/generators/disco_app/mailify/mailify_generator.rb +55 -0
  40. data/lib/generators/disco_app/templates/initializers/shopify_session_repository.rb +7 -0
  41. data/test/controllers/disco_app/install_controller_test.rb +50 -0
  42. data/test/controllers/disco_app/webhooks_controller_test.rb +58 -0
  43. data/test/controllers/home_controller_test.rb +61 -0
  44. data/test/dummy/app/assets/javascripts/application.js +4 -0
  45. data/test/dummy/app/assets/stylesheets/application.scss +5 -0
  46. data/test/dummy/app/controllers/application_controller.rb +1 -0
  47. data/test/dummy/app/controllers/home_controller.rb +7 -0
  48. data/test/dummy/app/jobs/disco_app/app_uninstalled_job.rb +11 -0
  49. data/test/dummy/app/models/disco_app/shop.rb +15 -0
  50. data/test/dummy/app/views/home/index.html.erb +2 -0
  51. data/test/dummy/config/application.rb +11 -0
  52. data/test/dummy/config/environments/production.rb +7 -1
  53. data/test/dummy/config/initializers/disco_app.rb +1 -0
  54. data/test/dummy/config/initializers/omniauth.rb +9 -0
  55. data/test/dummy/config/initializers/shopify_app.rb +7 -0
  56. data/test/dummy/config/initializers/shopify_session_repository.rb +7 -0
  57. data/test/dummy/config/routes.rb +5 -1
  58. data/test/dummy/config/secrets.yml +2 -2
  59. data/test/dummy/db/schema.rb +70 -0
  60. data/test/fixtures/api/widget_store/shop.json +46 -0
  61. data/test/fixtures/disco_app/plans.yml +32 -0
  62. data/test/fixtures/disco_app/shops.yml +10 -0
  63. data/test/fixtures/disco_app/subscriptions.yml +26 -0
  64. data/test/fixtures/webhooks/app_uninstalled.json +46 -0
  65. data/test/jobs/disco_app/app_installed_job_test.rb +29 -0
  66. data/test/jobs/disco_app/app_uninstalled_job_test.rb +32 -0
  67. data/test/models/disco_app/plan_test.rb +5 -0
  68. data/test/models/disco_app/shop_test.rb +26 -0
  69. data/test/models/disco_app/subscription_test.rb +6 -0
  70. data/test/services/disco_app/subscription_service_test.rb +28 -0
  71. data/test/support/test_file_fixtures.rb +29 -0
  72. data/test/test_helper.rb +32 -1
  73. metadata +148 -30
  74. data/app/assets/stylesheets/disco_app/bootstrap-variables.scss +0 -12
  75. data/lib/generators/disco_app/templates/jobs/app_installed_job.rb +0 -2
  76. data/lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb +0 -2
  77. data/lib/generators/disco_app/templates/jobs/shop_update_job.rb +0 -2
  78. data/lib/generators/disco_app/templates/models/shop.rb +0 -3
  79. data/test/dummy/README.rdoc +0 -28
  80. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  81. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  82. data/test/lib/generators/disco_app/disco_app_generator_test.rb +0 -16
  83. /data/{lib/generators/disco_app/templates → app}/views/layouts/application.html.erb +0 -0
  84. /data/{lib/generators/disco_app/templates → app}/views/sessions/new.html.erb +0 -0
@@ -0,0 +1,29 @@
1
+ module DiscoApp::Test
2
+ module FileFixtures
3
+
4
+ # Return an XML fixture as an XML string.
5
+ def xml_fixture(path)
6
+ filename = File.join(File.dirname(File.dirname(__FILE__)), 'fixtures', 'xml', "#{path}.xml")
7
+ File.read(filename)
8
+ end
9
+
10
+ # Return a JSON fixture as an indifferent hash.
11
+ def json_fixture(path)
12
+ filename = File.join(File.dirname(File.dirname(__FILE__)), 'fixtures', 'json', "#{path}.json")
13
+ HashWithIndifferentAccess.new(ActiveSupport::JSON.decode(File.read(filename)))
14
+ end
15
+
16
+ # API fixtures are special-case JSON fixtures.
17
+ def api_fixture(path)
18
+ filename = File.join(File.dirname(File.dirname(__FILE__)), 'fixtures', 'api', "#{path}.json")
19
+ File.read(filename)
20
+ end
21
+
22
+ # Webhook fixtures are special-case JSON fixtures.
23
+ def webhook_fixture(path)
24
+ filename = File.join(File.dirname(File.dirname(__FILE__)), 'fixtures', 'webhooks', "#{path}.json")
25
+ File.read(filename)
26
+ end
27
+
28
+ end
29
+ end
data/test/test_helper.rb CHANGED
@@ -1,11 +1,24 @@
1
1
  # Configure Rails Environment
2
- ENV["RAILS_ENV"] = "test"
2
+ ENV['RAILS_ENV'] = 'test'
3
+ ENV['DEFAULT_HOST'] = 'https://test.example.com'
4
+ ENV['SHOPIFY_APP_NAME'] = 'Test Application'
5
+ ENV['SHOPIFY_APP_API_KEY'] = 'f61b26d635309536c3c83c0adc3cb972'
6
+ ENV['SHOPIFY_APP_SECRET'] = 'b607d1f8b992dccb017f9315f07af9c4'
7
+ ENV['SHOPIFY_APP_REDIRECT_URI'] = 'https://test.example.com/shopify/auth/callback'
8
+ ENV['SHOPIFY_APP_SCOPE'] = 'read_products'
9
+ ENV['SHOPIFY_CHARGES_REAL'] = 'false'
3
10
 
4
11
  require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
5
12
  ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
6
13
  ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
7
14
  require "rails/test_help"
8
15
 
16
+ # Require our additional test support helpers.
17
+ require 'support/test_file_fixtures'
18
+
19
+ # Require WebMock
20
+ require 'webmock/minitest'
21
+
9
22
  # Filter out Minitest backtrace while allowing backtrace from other libraries
10
23
  # to be shown.
11
24
  Minitest.backtrace_filter = Minitest::BacktraceFilter.new
@@ -18,3 +31,21 @@ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
18
31
  ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
19
32
  ActiveSupport::TestCase.fixtures :all
20
33
  end
34
+
35
+ # Set up the base test class.
36
+ class ActiveSupport::TestCase
37
+
38
+ # Include helper modules common to all tests.
39
+ include DiscoApp::Test::FileFixtures
40
+
41
+ def log_in_as(shop)
42
+ session[:shopify] = shop.id
43
+ session[:shopify_domain] = shop.shopify_domain
44
+ end
45
+
46
+ def log_out
47
+ session[:shopify] = nil
48
+ session[:shopify_domain] = nil
49
+ end
50
+
51
+ end
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.5.6
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Ballard
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.3
19
+ version: 4.2.4
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.3
26
+ version: 4.2.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: shopify_app
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 6.1.2
33
+ version: 6.2.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: 6.1.2
40
+ version: 6.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: puma
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.11.3
47
+ version: 2.14.0
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: 2.11.3
54
+ version: 2.14.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sidekiq
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.5.0
61
+ version: 3.5.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: 3.5.0
68
+ version: 3.5.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bootstrap-sass
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +80,48 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 3.3.5.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: jquery-rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 4.0.5
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 4.0.5
97
+ - !ruby/object:Gem::Dependency
98
+ name: turbolinks
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.5.3
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.5.3
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: pg
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: 0.18.2
117
+ version: 0.18.3
90
118
  type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: 0.18.2
124
+ version: 0.18.3
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rails_12factor
99
127
  requirement: !ruby/object:Gem::Requirement
@@ -108,20 +136,34 @@ dependencies:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
138
  version: 0.0.3
139
+ - !ruby/object:Gem::Dependency
140
+ name: active_utils
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.2.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 3.2.0
111
153
  - !ruby/object:Gem::Dependency
112
154
  name: sqlite3
113
155
  requirement: !ruby/object:Gem::Requirement
114
156
  requirements:
115
157
  - - "~>"
116
158
  - !ruby/object:Gem::Version
117
- version: 1.3.10
159
+ version: 1.3.11
118
160
  type: :development
119
161
  prerelease: false
120
162
  version_requirements: !ruby/object:Gem::Requirement
121
163
  requirements:
122
164
  - - "~>"
123
165
  - !ruby/object:Gem::Version
124
- version: 1.3.10
166
+ version: 1.3.11
125
167
  - !ruby/object:Gem::Dependency
126
168
  name: dotenv-rails
127
169
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +220,20 @@ dependencies:
178
220
  - - "~>"
179
221
  - !ruby/object:Gem::Version
180
222
  version: 2.4.4
223
+ - !ruby/object:Gem::Dependency
224
+ name: webmock
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 1.22.1
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: 1.22.1
181
237
  description: Rails engine for Shopify applications.
182
238
  email:
183
239
  - gavin@gavinballard.com
@@ -186,9 +242,16 @@ extensions: []
186
242
  extra_rdoc_files: []
187
243
  files:
188
244
  - Rakefile
245
+ - app/assets/images/disco_app/icon.svg
189
246
  - app/assets/javascripts/disco_app/disco_app.js
190
- - app/assets/stylesheets/disco_app/bootstrap-custom.scss
191
- - app/assets/stylesheets/disco_app/bootstrap-variables.scss
247
+ - app/assets/stylesheets/disco_app/bootstrap/_custom.scss
248
+ - app/assets/stylesheets/disco_app/bootstrap/_variables.scss
249
+ - app/assets/stylesheets/disco_app/disco/_buttons.scss
250
+ - app/assets/stylesheets/disco_app/disco/_cards.scss
251
+ - app/assets/stylesheets/disco_app/disco/_forms.scss
252
+ - app/assets/stylesheets/disco_app/disco/_sections.scss
253
+ - app/assets/stylesheets/disco_app/disco/_type.scss
254
+ - app/assets/stylesheets/disco_app/disco/mixins/_flexbox.scss
192
255
  - app/assets/stylesheets/disco_app/disco_app.scss
193
256
  - app/controllers/disco_app/app_proxy_controller.rb
194
257
  - app/controllers/disco_app/authenticated_controller.rb
@@ -199,26 +262,45 @@ files:
199
262
  - app/helpers/disco_app/application_helper.rb
200
263
  - app/jobs/disco_app/app_installed_job.rb
201
264
  - app/jobs/disco_app/app_uninstalled_job.rb
265
+ - app/jobs/disco_app/concerns/app_uninstalled_job.rb
202
266
  - app/jobs/disco_app/shop_job.rb
203
267
  - app/jobs/disco_app/shop_update_job.rb
268
+ - app/models/disco_app/concerns/plan.rb
269
+ - app/models/disco_app/concerns/shop.rb
270
+ - app/models/disco_app/concerns/subscription.rb
271
+ - app/models/disco_app/plan.rb
272
+ - app/models/disco_app/session_storage.rb
204
273
  - app/models/disco_app/shop.rb
274
+ - app/models/disco_app/subscription.rb
205
275
  - app/services/disco_app/charges_service.rb
276
+ - app/services/disco_app/subscription_service.rb
277
+ - app/services/disco_app/webhook_service.rb
206
278
  - app/views/disco_app/charges/activate.html.erb
207
279
  - app/views/disco_app/charges/create.html.erb
208
280
  - app/views/disco_app/charges/new.html.erb
209
281
  - app/views/disco_app/install/installing.html.erb
210
282
  - app/views/disco_app/install/uninstalling.html.erb
211
283
  - app/views/disco_app/proxy_errors/404.html.erb
284
+ - app/views/disco_app/shared/_card.html.erb
285
+ - app/views/disco_app/shared/_section.html.erb
286
+ - app/views/layouts/application.html.erb
287
+ - app/views/layouts/embedded_app.html.erb
288
+ - app/views/sessions/new.html.erb
212
289
  - config/routes.rb
290
+ - db/migrate/20150525000000_create_shops_if_not_existent.rb
213
291
  - db/migrate/20150525162112_add_status_to_shops.rb
214
292
  - db/migrate/20150525171422_add_meta_to_shops.rb
215
293
  - db/migrate/20150629210346_add_charge_status_to_shop.rb
216
294
  - db/migrate/20150814214025_add_more_meta_to_shops.rb
295
+ - db/migrate/20151017231302_create_disco_app_plans.rb
296
+ - db/migrate/20151017232027_create_disco_app_subscriptions.rb
297
+ - db/migrate/20151017234409_move_shop_to_disco_app_engine.rb
217
298
  - lib/disco_app.rb
218
299
  - lib/disco_app/engine.rb
219
300
  - lib/disco_app/version.rb
220
301
  - lib/generators/disco_app/USAGE
221
302
  - lib/generators/disco_app/disco_app_generator.rb
303
+ - lib/generators/disco_app/mailify/mailify_generator.rb
222
304
  - lib/generators/disco_app/reactify/reactify_generator.rb
223
305
  - lib/generators/disco_app/templates/assets/javascripts/application.js
224
306
  - lib/generators/disco_app/templates/assets/stylesheets/application.scss
@@ -226,23 +308,22 @@ files:
226
308
  - lib/generators/disco_app/templates/controllers/home_controller.rb
227
309
  - lib/generators/disco_app/templates/initializers/disco_app.rb
228
310
  - lib/generators/disco_app/templates/initializers/shopify_app.rb
229
- - lib/generators/disco_app/templates/jobs/app_installed_job.rb
230
- - lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb
231
- - lib/generators/disco_app/templates/jobs/shop_update_job.rb
232
- - lib/generators/disco_app/templates/models/shop.rb
311
+ - lib/generators/disco_app/templates/initializers/shopify_session_repository.rb
233
312
  - lib/generators/disco_app/templates/root/Procfile
234
313
  - lib/generators/disco_app/templates/views/home/index.html.erb
235
- - lib/generators/disco_app/templates/views/layouts/application.html.erb
236
- - lib/generators/disco_app/templates/views/layouts/embedded_app.html.erb
237
- - lib/generators/disco_app/templates/views/sessions/new.html.erb
314
+ - test/controllers/disco_app/install_controller_test.rb
315
+ - test/controllers/disco_app/webhooks_controller_test.rb
316
+ - test/controllers/home_controller_test.rb
238
317
  - test/disco_app_test.rb
239
- - test/dummy/README.rdoc
240
318
  - test/dummy/Rakefile
241
319
  - test/dummy/app/assets/javascripts/application.js
242
- - test/dummy/app/assets/stylesheets/application.css
320
+ - test/dummy/app/assets/stylesheets/application.scss
243
321
  - test/dummy/app/controllers/application_controller.rb
322
+ - test/dummy/app/controllers/home_controller.rb
244
323
  - test/dummy/app/helpers/application_helper.rb
245
- - test/dummy/app/views/layouts/application.html.erb
324
+ - test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
325
+ - test/dummy/app/models/disco_app/shop.rb
326
+ - test/dummy/app/views/home/index.html.erb
246
327
  - test/dummy/bin/bundle
247
328
  - test/dummy/bin/rails
248
329
  - test/dummy/bin/rake
@@ -258,20 +339,36 @@ files:
258
339
  - test/dummy/config/initializers/assets.rb
259
340
  - test/dummy/config/initializers/backtrace_silencers.rb
260
341
  - test/dummy/config/initializers/cookies_serializer.rb
342
+ - test/dummy/config/initializers/disco_app.rb
261
343
  - test/dummy/config/initializers/filter_parameter_logging.rb
262
344
  - test/dummy/config/initializers/inflections.rb
263
345
  - test/dummy/config/initializers/mime_types.rb
346
+ - test/dummy/config/initializers/omniauth.rb
264
347
  - test/dummy/config/initializers/session_store.rb
348
+ - test/dummy/config/initializers/shopify_app.rb
349
+ - test/dummy/config/initializers/shopify_session_repository.rb
265
350
  - test/dummy/config/initializers/wrap_parameters.rb
266
351
  - test/dummy/config/locales/en.yml
267
352
  - test/dummy/config/routes.rb
268
353
  - test/dummy/config/secrets.yml
354
+ - test/dummy/db/schema.rb
269
355
  - test/dummy/public/404.html
270
356
  - test/dummy/public/422.html
271
357
  - test/dummy/public/500.html
272
358
  - test/dummy/public/favicon.ico
359
+ - test/fixtures/api/widget_store/shop.json
360
+ - test/fixtures/disco_app/plans.yml
361
+ - test/fixtures/disco_app/shops.yml
362
+ - test/fixtures/disco_app/subscriptions.yml
363
+ - test/fixtures/webhooks/app_uninstalled.json
273
364
  - test/integration/navigation_test.rb
274
- - test/lib/generators/disco_app/disco_app_generator_test.rb
365
+ - test/jobs/disco_app/app_installed_job_test.rb
366
+ - test/jobs/disco_app/app_uninstalled_job_test.rb
367
+ - test/models/disco_app/plan_test.rb
368
+ - test/models/disco_app/shop_test.rb
369
+ - test/models/disco_app/subscription_test.rb
370
+ - test/services/disco_app/subscription_service_test.rb
371
+ - test/support/test_file_fixtures.rb
275
372
  - test/test_helper.rb
276
373
  homepage: https://github.com/discolabs/disco_app/
277
374
  licenses:
@@ -308,11 +405,15 @@ test_files:
308
405
  - test/dummy/bin/bundle
309
406
  - test/dummy/Rakefile
310
407
  - test/dummy/config.ru
311
- - test/dummy/app/assets/stylesheets/application.css
408
+ - test/dummy/app/assets/stylesheets/application.scss
312
409
  - test/dummy/app/assets/javascripts/application.js
410
+ - test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
411
+ - test/dummy/app/controllers/home_controller.rb
313
412
  - test/dummy/app/controllers/application_controller.rb
314
413
  - test/dummy/app/helpers/application_helper.rb
315
- - test/dummy/app/views/layouts/application.html.erb
414
+ - test/dummy/app/models/disco_app/shop.rb
415
+ - test/dummy/app/views/home/index.html.erb
416
+ - test/dummy/db/schema.rb
316
417
  - test/dummy/config/locales/en.yml
317
418
  - test/dummy/config/initializers/filter_parameter_logging.rb
318
419
  - test/dummy/config/initializers/assets.rb
@@ -320,7 +421,11 @@ test_files:
320
421
  - test/dummy/config/initializers/inflections.rb
321
422
  - test/dummy/config/initializers/mime_types.rb
322
423
  - test/dummy/config/initializers/wrap_parameters.rb
424
+ - test/dummy/config/initializers/disco_app.rb
425
+ - test/dummy/config/initializers/shopify_app.rb
426
+ - test/dummy/config/initializers/shopify_session_repository.rb
323
427
  - test/dummy/config/initializers/backtrace_silencers.rb
428
+ - test/dummy/config/initializers/omniauth.rb
324
429
  - test/dummy/config/initializers/cookies_serializer.rb
325
430
  - test/dummy/config/secrets.yml
326
431
  - test/dummy/config/routes.rb
@@ -331,8 +436,21 @@ test_files:
331
436
  - test/dummy/config/boot.rb
332
437
  - test/dummy/config/database.yml
333
438
  - test/dummy/config/application.rb
334
- - test/dummy/README.rdoc
335
- - test/lib/generators/disco_app/disco_app_generator_test.rb
439
+ - test/fixtures/api/widget_store/shop.json
440
+ - test/fixtures/disco_app/shops.yml
441
+ - test/fixtures/disco_app/subscriptions.yml
442
+ - test/fixtures/disco_app/plans.yml
443
+ - test/fixtures/webhooks/app_uninstalled.json
444
+ - test/support/test_file_fixtures.rb
336
445
  - test/test_helper.rb
337
446
  - test/disco_app_test.rb
447
+ - test/jobs/disco_app/app_uninstalled_job_test.rb
448
+ - test/jobs/disco_app/app_installed_job_test.rb
449
+ - test/controllers/disco_app/install_controller_test.rb
450
+ - test/controllers/disco_app/webhooks_controller_test.rb
451
+ - test/controllers/home_controller_test.rb
338
452
  - test/integration/navigation_test.rb
453
+ - test/models/disco_app/plan_test.rb
454
+ - test/models/disco_app/shop_test.rb
455
+ - test/models/disco_app/subscription_test.rb
456
+ - test/services/disco_app/subscription_service_test.rb
@@ -1,12 +0,0 @@
1
- /*!
2
- * bootstrap-variables.scss
3
- * Set custom values for Bootstrap variables.
4
- */
5
-
6
- // Grid - change to a 24-column grid for enhanced flexibility.
7
- $grid-columns: 24;
8
- $grid-gutter-width: 12px;
9
-
10
- // Colors
11
- $brand-primary: #479ccf;
12
- $brand-danger: #ff5d5d;
@@ -1,2 +0,0 @@
1
- class AppInstalledJob < DiscoApp::AppInstalledJob
2
- end
@@ -1,2 +0,0 @@
1
- class AppUninstalledJob < DiscoApp::AppUninstalledJob
2
- end
@@ -1,2 +0,0 @@
1
- class ShopUpdateJob < DiscoApp::ShopUpdateJob
2
- end
@@ -1,3 +0,0 @@
1
- class Shop < ActiveRecord::Base
2
- include DiscoApp::Shop
3
- end
@@ -1,28 +0,0 @@
1
- == README
2
-
3
- This README would normally document whatever steps are necessary to get the
4
- application up and running.
5
-
6
- Things you may want to cover:
7
-
8
- * Ruby version
9
-
10
- * System dependencies
11
-
12
- * Configuration
13
-
14
- * Database creation
15
-
16
- * Database initialization
17
-
18
- * How to run the test suite
19
-
20
- * Services (job queues, cache servers, search engines, etc.)
21
-
22
- * Deployment instructions
23
-
24
- * ...
25
-
26
-
27
- Please feel free to use a different markup language if you do not plan to run
28
- <tt>rake doc:app</tt>.
@@ -1,15 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
@@ -1,14 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Dummy</title>
5
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
7
- <%= csrf_meta_tags %>
8
- </head>
9
- <body>
10
-
11
- <%= yield %>
12
-
13
- </body>
14
- </html>
@@ -1,16 +0,0 @@
1
- require 'test_helper'
2
- require 'generators/disco_app/disco_app_generator'
3
-
4
- module DiscoApp
5
- class DiscoAppGeneratorTest < Rails::Generators::TestCase
6
- tests DiscoAppGenerator
7
- destination Rails.root.join('tmp/generators')
8
- setup :prepare_destination
9
-
10
- # test "generator runs without errors" do
11
- # assert_nothing_raised do
12
- # run_generator ["arguments"]
13
- # end
14
- # end
15
- end
16
- end