disco_app 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +37 -0
  3. data/app/assets/javascripts/disco_app/disco_app.js +7 -0
  4. data/app/assets/stylesheets/disco_app/bootstrap-custom.scss +55 -0
  5. data/app/assets/stylesheets/disco_app/bootstrap-variables.scss +12 -0
  6. data/app/assets/stylesheets/disco_app/disco_app.scss +7 -0
  7. data/app/controllers/disco_app/app_proxy_controller.rb +41 -0
  8. data/app/controllers/disco_app/authenticated_controller.rb +44 -0
  9. data/app/controllers/disco_app/carrier_request_controller.rb +28 -0
  10. data/app/controllers/disco_app/charges_controller.rb +30 -0
  11. data/app/controllers/disco_app/install_controller.rb +26 -0
  12. data/app/controllers/disco_app/webhooks_controller.rb +40 -0
  13. data/app/helpers/disco_app/application_helper.rb +4 -0
  14. data/app/jobs/disco_app/app_installed_job.rb +41 -0
  15. data/app/jobs/disco_app/app_uninstalled_job.rb +18 -0
  16. data/app/jobs/disco_app/shop_job.rb +29 -0
  17. data/app/jobs/disco_app/shop_update_job.rb +16 -0
  18. data/app/models/disco_app/shop.rb +44 -0
  19. data/app/services/disco_app/charges_service.rb +73 -0
  20. data/app/views/disco_app/charges/activate.html.erb +1 -0
  21. data/app/views/disco_app/charges/create.html.erb +1 -0
  22. data/app/views/disco_app/charges/new.html.erb +45 -0
  23. data/app/views/disco_app/install/installing.html.erb +7 -0
  24. data/app/views/disco_app/install/uninstalling.html.erb +1 -0
  25. data/app/views/disco_app/proxy_errors/404.html.erb +1 -0
  26. data/config/routes.rb +19 -0
  27. data/db/migrate/20150525162112_add_status_to_shops.rb +5 -0
  28. data/db/migrate/20150525171422_add_meta_to_shops.rb +11 -0
  29. data/db/migrate/20150629210346_add_charge_status_to_shop.rb +5 -0
  30. data/db/migrate/20150814214025_add_more_meta_to_shops.rb +15 -0
  31. data/lib/disco_app/engine.rb +6 -0
  32. data/lib/disco_app/version.rb +3 -0
  33. data/lib/disco_app.rb +4 -0
  34. data/lib/generators/disco_app/USAGE +5 -0
  35. data/lib/generators/disco_app/disco_app_generator.rb +182 -0
  36. data/lib/generators/disco_app/reactify/reactify_generator.rb +31 -0
  37. data/lib/generators/disco_app/templates/assets/javascripts/application.js +17 -0
  38. data/lib/generators/disco_app/templates/assets/stylesheets/application.scss +5 -0
  39. data/lib/generators/disco_app/templates/config/puma.rb +15 -0
  40. data/lib/generators/disco_app/templates/controllers/home_controller.rb +7 -0
  41. data/lib/generators/disco_app/templates/initializers/disco_app.rb +1 -0
  42. data/lib/generators/disco_app/templates/initializers/shopify_app.rb +7 -0
  43. data/lib/generators/disco_app/templates/jobs/app_installed_job.rb +2 -0
  44. data/lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb +2 -0
  45. data/lib/generators/disco_app/templates/jobs/shop_update_job.rb +2 -0
  46. data/lib/generators/disco_app/templates/models/shop.rb +3 -0
  47. data/lib/generators/disco_app/templates/root/Procfile +2 -0
  48. data/lib/generators/disco_app/templates/views/home/index.html.erb +2 -0
  49. data/lib/generators/disco_app/templates/views/layouts/application.html.erb +18 -0
  50. data/lib/generators/disco_app/templates/views/layouts/embedded_app.html.erb +33 -0
  51. data/lib/generators/disco_app/templates/views/sessions/new.html.erb +26 -0
  52. data/test/disco_app_test.rb +7 -0
  53. data/test/dummy/README.rdoc +28 -0
  54. data/test/dummy/Rakefile +6 -0
  55. data/test/dummy/app/assets/javascripts/application.js +13 -0
  56. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  57. data/test/dummy/app/controllers/application_controller.rb +5 -0
  58. data/test/dummy/app/helpers/application_helper.rb +2 -0
  59. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  60. data/test/dummy/bin/bundle +3 -0
  61. data/test/dummy/bin/rails +4 -0
  62. data/test/dummy/bin/rake +4 -0
  63. data/test/dummy/bin/setup +29 -0
  64. data/test/dummy/config/application.rb +26 -0
  65. data/test/dummy/config/boot.rb +5 -0
  66. data/test/dummy/config/database.yml +25 -0
  67. data/test/dummy/config/environment.rb +5 -0
  68. data/test/dummy/config/environments/development.rb +41 -0
  69. data/test/dummy/config/environments/production.rb +79 -0
  70. data/test/dummy/config/environments/test.rb +42 -0
  71. data/test/dummy/config/initializers/assets.rb +11 -0
  72. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  73. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  74. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  75. data/test/dummy/config/initializers/inflections.rb +16 -0
  76. data/test/dummy/config/initializers/mime_types.rb +4 -0
  77. data/test/dummy/config/initializers/session_store.rb +3 -0
  78. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  79. data/test/dummy/config/locales/en.yml +23 -0
  80. data/test/dummy/config/routes.rb +4 -0
  81. data/test/dummy/config/secrets.yml +22 -0
  82. data/test/dummy/config.ru +4 -0
  83. data/test/dummy/public/404.html +67 -0
  84. data/test/dummy/public/422.html +67 -0
  85. data/test/dummy/public/500.html +66 -0
  86. data/test/dummy/public/favicon.ico +0 -0
  87. data/test/integration/navigation_test.rb +10 -0
  88. data/test/lib/generators/disco_app/disco_app_generator_test.rb +16 -0
  89. data/test/test_helper.rb +20 -0
  90. metadata +338 -0
metadata ADDED
@@ -0,0 +1,338 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: disco_app
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.4
5
+ platform: ruby
6
+ authors:
7
+ - Gavin Ballard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-03-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: shopify_app
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 6.1.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 6.1.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: puma
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.11.3
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.11.3
55
+ - !ruby/object:Gem::Dependency
56
+ name: sidekiq
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 3.4.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.4.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: bootstrap-sass
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 3.3.5.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 3.3.5.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: pg
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.18.2
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.18.2
97
+ - !ruby/object:Gem::Dependency
98
+ name: rails_12factor
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 0.0.3
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 0.0.3
111
+ - !ruby/object:Gem::Dependency
112
+ name: sqlite3
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 1.3.10
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 1.3.10
125
+ - !ruby/object:Gem::Dependency
126
+ name: dotenv-rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 2.0.2
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 2.0.2
139
+ - !ruby/object:Gem::Dependency
140
+ name: minitest-reporters
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.0.19
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.0.19
153
+ - !ruby/object:Gem::Dependency
154
+ name: guard
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 2.13.0
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 2.13.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: guard-minitest
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 2.4.4
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 2.4.4
181
+ description: Rails engine for Shopify applications.
182
+ email:
183
+ - gavin@gavinballard.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - Rakefile
189
+ - 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
192
+ - app/assets/stylesheets/disco_app/disco_app.scss
193
+ - app/controllers/disco_app/app_proxy_controller.rb
194
+ - app/controllers/disco_app/authenticated_controller.rb
195
+ - app/controllers/disco_app/carrier_request_controller.rb
196
+ - app/controllers/disco_app/charges_controller.rb
197
+ - app/controllers/disco_app/install_controller.rb
198
+ - app/controllers/disco_app/webhooks_controller.rb
199
+ - app/helpers/disco_app/application_helper.rb
200
+ - app/jobs/disco_app/app_installed_job.rb
201
+ - app/jobs/disco_app/app_uninstalled_job.rb
202
+ - app/jobs/disco_app/shop_job.rb
203
+ - app/jobs/disco_app/shop_update_job.rb
204
+ - app/models/disco_app/shop.rb
205
+ - app/services/disco_app/charges_service.rb
206
+ - app/views/disco_app/charges/activate.html.erb
207
+ - app/views/disco_app/charges/create.html.erb
208
+ - app/views/disco_app/charges/new.html.erb
209
+ - app/views/disco_app/install/installing.html.erb
210
+ - app/views/disco_app/install/uninstalling.html.erb
211
+ - app/views/disco_app/proxy_errors/404.html.erb
212
+ - config/routes.rb
213
+ - db/migrate/20150525162112_add_status_to_shops.rb
214
+ - db/migrate/20150525171422_add_meta_to_shops.rb
215
+ - db/migrate/20150629210346_add_charge_status_to_shop.rb
216
+ - db/migrate/20150814214025_add_more_meta_to_shops.rb
217
+ - lib/disco_app.rb
218
+ - lib/disco_app/engine.rb
219
+ - lib/disco_app/version.rb
220
+ - lib/generators/disco_app/USAGE
221
+ - lib/generators/disco_app/disco_app_generator.rb
222
+ - lib/generators/disco_app/reactify/reactify_generator.rb
223
+ - lib/generators/disco_app/templates/assets/javascripts/application.js
224
+ - lib/generators/disco_app/templates/assets/stylesheets/application.scss
225
+ - lib/generators/disco_app/templates/config/puma.rb
226
+ - lib/generators/disco_app/templates/controllers/home_controller.rb
227
+ - lib/generators/disco_app/templates/initializers/disco_app.rb
228
+ - 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
233
+ - lib/generators/disco_app/templates/root/Procfile
234
+ - 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
238
+ - test/disco_app_test.rb
239
+ - test/dummy/README.rdoc
240
+ - test/dummy/Rakefile
241
+ - test/dummy/app/assets/javascripts/application.js
242
+ - test/dummy/app/assets/stylesheets/application.css
243
+ - test/dummy/app/controllers/application_controller.rb
244
+ - test/dummy/app/helpers/application_helper.rb
245
+ - test/dummy/app/views/layouts/application.html.erb
246
+ - test/dummy/bin/bundle
247
+ - test/dummy/bin/rails
248
+ - test/dummy/bin/rake
249
+ - test/dummy/bin/setup
250
+ - test/dummy/config.ru
251
+ - test/dummy/config/application.rb
252
+ - test/dummy/config/boot.rb
253
+ - test/dummy/config/database.yml
254
+ - test/dummy/config/environment.rb
255
+ - test/dummy/config/environments/development.rb
256
+ - test/dummy/config/environments/production.rb
257
+ - test/dummy/config/environments/test.rb
258
+ - test/dummy/config/initializers/assets.rb
259
+ - test/dummy/config/initializers/backtrace_silencers.rb
260
+ - test/dummy/config/initializers/cookies_serializer.rb
261
+ - test/dummy/config/initializers/filter_parameter_logging.rb
262
+ - test/dummy/config/initializers/inflections.rb
263
+ - test/dummy/config/initializers/mime_types.rb
264
+ - test/dummy/config/initializers/session_store.rb
265
+ - test/dummy/config/initializers/wrap_parameters.rb
266
+ - test/dummy/config/locales/en.yml
267
+ - test/dummy/config/routes.rb
268
+ - test/dummy/config/secrets.yml
269
+ - test/dummy/public/404.html
270
+ - test/dummy/public/422.html
271
+ - test/dummy/public/500.html
272
+ - test/dummy/public/favicon.ico
273
+ - test/integration/navigation_test.rb
274
+ - test/lib/generators/disco_app/disco_app_generator_test.rb
275
+ - test/test_helper.rb
276
+ homepage: https://github.com/discolabs/disco_app/
277
+ licenses:
278
+ - MIT
279
+ metadata: {}
280
+ post_install_message:
281
+ rdoc_options: []
282
+ require_paths:
283
+ - lib
284
+ required_ruby_version: !ruby/object:Gem::Requirement
285
+ requirements:
286
+ - - ">="
287
+ - !ruby/object:Gem::Version
288
+ version: '0'
289
+ required_rubygems_version: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - ">="
292
+ - !ruby/object:Gem::Version
293
+ version: '0'
294
+ requirements: []
295
+ rubyforge_project:
296
+ rubygems_version: 2.7.6
297
+ signing_key:
298
+ specification_version: 4
299
+ summary: Rails engine for Shopify applications.
300
+ test_files:
301
+ - test/dummy/public/500.html
302
+ - test/dummy/public/favicon.ico
303
+ - test/dummy/public/422.html
304
+ - test/dummy/public/404.html
305
+ - test/dummy/bin/rake
306
+ - test/dummy/bin/rails
307
+ - test/dummy/bin/setup
308
+ - test/dummy/bin/bundle
309
+ - test/dummy/Rakefile
310
+ - test/dummy/config.ru
311
+ - test/dummy/app/assets/stylesheets/application.css
312
+ - test/dummy/app/assets/javascripts/application.js
313
+ - test/dummy/app/controllers/application_controller.rb
314
+ - test/dummy/app/helpers/application_helper.rb
315
+ - test/dummy/app/views/layouts/application.html.erb
316
+ - test/dummy/config/locales/en.yml
317
+ - test/dummy/config/initializers/filter_parameter_logging.rb
318
+ - test/dummy/config/initializers/assets.rb
319
+ - test/dummy/config/initializers/session_store.rb
320
+ - test/dummy/config/initializers/inflections.rb
321
+ - test/dummy/config/initializers/mime_types.rb
322
+ - test/dummy/config/initializers/wrap_parameters.rb
323
+ - test/dummy/config/initializers/backtrace_silencers.rb
324
+ - test/dummy/config/initializers/cookies_serializer.rb
325
+ - test/dummy/config/secrets.yml
326
+ - test/dummy/config/routes.rb
327
+ - test/dummy/config/environments/production.rb
328
+ - test/dummy/config/environments/test.rb
329
+ - test/dummy/config/environments/development.rb
330
+ - test/dummy/config/environment.rb
331
+ - test/dummy/config/boot.rb
332
+ - test/dummy/config/database.yml
333
+ - test/dummy/config/application.rb
334
+ - test/dummy/README.rdoc
335
+ - test/lib/generators/disco_app/disco_app_generator_test.rb
336
+ - test/test_helper.rb
337
+ - test/disco_app_test.rb
338
+ - test/integration/navigation_test.rb