disco_app 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) 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 +32 -0
  8. data/app/controllers/disco_app/authenticated_controller.rb +44 -0
  9. data/app/controllers/disco_app/charges_controller.rb +30 -0
  10. data/app/controllers/disco_app/install_controller.rb +26 -0
  11. data/app/controllers/disco_app/webhooks_controller.rb +40 -0
  12. data/app/helpers/disco_app/application_helper.rb +4 -0
  13. data/app/jobs/disco_app/app_installed_job.rb +41 -0
  14. data/app/jobs/disco_app/shop_job.rb +29 -0
  15. data/app/models/disco_app/shop.rb +39 -0
  16. data/app/services/disco_app/charges_service.rb +73 -0
  17. data/app/views/disco_app/charges/activate.html.erb +1 -0
  18. data/app/views/disco_app/charges/create.html.erb +1 -0
  19. data/app/views/disco_app/charges/new.html.erb +45 -0
  20. data/app/views/disco_app/install/installing.html.erb +7 -0
  21. data/app/views/disco_app/install/uninstalling.html.erb +1 -0
  22. data/config/routes.rb +19 -0
  23. data/db/migrate/20150525162112_add_status_to_shops.rb +5 -0
  24. data/db/migrate/20150525171422_add_meta_to_shops.rb +11 -0
  25. data/db/migrate/20150629210346_add_charge_status_to_shop.rb +5 -0
  26. data/lib/disco_app/engine.rb +6 -0
  27. data/lib/disco_app/version.rb +3 -0
  28. data/lib/disco_app.rb +4 -0
  29. data/lib/generators/disco_app/USAGE +5 -0
  30. data/lib/generators/disco_app/disco_app_generator.rb +179 -0
  31. data/lib/generators/disco_app/reactify/reactify_generator.rb +31 -0
  32. data/lib/generators/disco_app/templates/assets/javascripts/application.js +17 -0
  33. data/lib/generators/disco_app/templates/assets/stylesheets/application.scss +5 -0
  34. data/lib/generators/disco_app/templates/config/puma.rb +15 -0
  35. data/lib/generators/disco_app/templates/controllers/home_controller.rb +7 -0
  36. data/lib/generators/disco_app/templates/initializers/disco_app.rb +1 -0
  37. data/lib/generators/disco_app/templates/initializers/shopify_app.rb +6 -0
  38. data/lib/generators/disco_app/templates/jobs/app_installed_job.rb +2 -0
  39. data/lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb +16 -0
  40. data/lib/generators/disco_app/templates/jobs/shop_update_job.rb +14 -0
  41. data/lib/generators/disco_app/templates/models/shop.rb +3 -0
  42. data/lib/generators/disco_app/templates/root/Procfile +2 -0
  43. data/lib/generators/disco_app/templates/views/home/index.html.erb +2 -0
  44. data/lib/generators/disco_app/templates/views/layouts/application.html.erb +18 -0
  45. data/lib/generators/disco_app/templates/views/layouts/embedded_app.html.erb +33 -0
  46. data/lib/generators/disco_app/templates/views/sessions/new.html.erb +26 -0
  47. data/test/disco_app_test.rb +7 -0
  48. data/test/dummy/README.rdoc +28 -0
  49. data/test/dummy/Rakefile +6 -0
  50. data/test/dummy/app/assets/javascripts/application.js +13 -0
  51. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  52. data/test/dummy/app/controllers/application_controller.rb +5 -0
  53. data/test/dummy/app/helpers/application_helper.rb +2 -0
  54. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  55. data/test/dummy/bin/bundle +3 -0
  56. data/test/dummy/bin/rails +4 -0
  57. data/test/dummy/bin/rake +4 -0
  58. data/test/dummy/bin/setup +29 -0
  59. data/test/dummy/config/application.rb +26 -0
  60. data/test/dummy/config/boot.rb +5 -0
  61. data/test/dummy/config/database.yml +25 -0
  62. data/test/dummy/config/environment.rb +5 -0
  63. data/test/dummy/config/environments/development.rb +41 -0
  64. data/test/dummy/config/environments/production.rb +79 -0
  65. data/test/dummy/config/environments/test.rb +42 -0
  66. data/test/dummy/config/initializers/assets.rb +11 -0
  67. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  68. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  69. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  70. data/test/dummy/config/initializers/inflections.rb +16 -0
  71. data/test/dummy/config/initializers/mime_types.rb +4 -0
  72. data/test/dummy/config/initializers/session_store.rb +3 -0
  73. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  74. data/test/dummy/config/locales/en.yml +23 -0
  75. data/test/dummy/config/routes.rb +4 -0
  76. data/test/dummy/config/secrets.yml +22 -0
  77. data/test/dummy/config.ru +4 -0
  78. data/test/dummy/public/404.html +67 -0
  79. data/test/dummy/public/422.html +67 -0
  80. data/test/dummy/public/500.html +66 -0
  81. data/test/dummy/public/favicon.ico +0 -0
  82. data/test/integration/navigation_test.rb +10 -0
  83. data/test/lib/generators/disco_app/disco_app_generator_test.rb +16 -0
  84. data/test/test_helper.rb +20 -0
  85. metadata +291 -0
metadata ADDED
@@ -0,0 +1,291 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: disco_app
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
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.3.4
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 3.3.4
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
+ description: Rails engine for Shopify applications.
140
+ email:
141
+ - gavin@gavinballard.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - Rakefile
147
+ - app/assets/javascripts/disco_app/disco_app.js
148
+ - app/assets/stylesheets/disco_app/bootstrap-custom.scss
149
+ - app/assets/stylesheets/disco_app/bootstrap-variables.scss
150
+ - app/assets/stylesheets/disco_app/disco_app.scss
151
+ - app/controllers/disco_app/app_proxy_controller.rb
152
+ - app/controllers/disco_app/authenticated_controller.rb
153
+ - app/controllers/disco_app/charges_controller.rb
154
+ - app/controllers/disco_app/install_controller.rb
155
+ - app/controllers/disco_app/webhooks_controller.rb
156
+ - app/helpers/disco_app/application_helper.rb
157
+ - app/jobs/disco_app/app_installed_job.rb
158
+ - app/jobs/disco_app/shop_job.rb
159
+ - app/models/disco_app/shop.rb
160
+ - app/services/disco_app/charges_service.rb
161
+ - app/views/disco_app/charges/activate.html.erb
162
+ - app/views/disco_app/charges/create.html.erb
163
+ - app/views/disco_app/charges/new.html.erb
164
+ - app/views/disco_app/install/installing.html.erb
165
+ - app/views/disco_app/install/uninstalling.html.erb
166
+ - config/routes.rb
167
+ - db/migrate/20150525162112_add_status_to_shops.rb
168
+ - db/migrate/20150525171422_add_meta_to_shops.rb
169
+ - db/migrate/20150629210346_add_charge_status_to_shop.rb
170
+ - lib/disco_app.rb
171
+ - lib/disco_app/engine.rb
172
+ - lib/disco_app/version.rb
173
+ - lib/generators/disco_app/USAGE
174
+ - lib/generators/disco_app/disco_app_generator.rb
175
+ - lib/generators/disco_app/reactify/reactify_generator.rb
176
+ - lib/generators/disco_app/templates/assets/javascripts/application.js
177
+ - lib/generators/disco_app/templates/assets/stylesheets/application.scss
178
+ - lib/generators/disco_app/templates/config/puma.rb
179
+ - lib/generators/disco_app/templates/controllers/home_controller.rb
180
+ - lib/generators/disco_app/templates/initializers/disco_app.rb
181
+ - lib/generators/disco_app/templates/initializers/shopify_app.rb
182
+ - lib/generators/disco_app/templates/jobs/app_installed_job.rb
183
+ - lib/generators/disco_app/templates/jobs/app_uninstalled_job.rb
184
+ - lib/generators/disco_app/templates/jobs/shop_update_job.rb
185
+ - lib/generators/disco_app/templates/models/shop.rb
186
+ - lib/generators/disco_app/templates/root/Procfile
187
+ - lib/generators/disco_app/templates/views/home/index.html.erb
188
+ - lib/generators/disco_app/templates/views/layouts/application.html.erb
189
+ - lib/generators/disco_app/templates/views/layouts/embedded_app.html.erb
190
+ - lib/generators/disco_app/templates/views/sessions/new.html.erb
191
+ - test/disco_app_test.rb
192
+ - test/dummy/README.rdoc
193
+ - test/dummy/Rakefile
194
+ - test/dummy/app/assets/javascripts/application.js
195
+ - test/dummy/app/assets/stylesheets/application.css
196
+ - test/dummy/app/controllers/application_controller.rb
197
+ - test/dummy/app/helpers/application_helper.rb
198
+ - test/dummy/app/views/layouts/application.html.erb
199
+ - test/dummy/bin/bundle
200
+ - test/dummy/bin/rails
201
+ - test/dummy/bin/rake
202
+ - test/dummy/bin/setup
203
+ - test/dummy/config.ru
204
+ - test/dummy/config/application.rb
205
+ - test/dummy/config/boot.rb
206
+ - test/dummy/config/database.yml
207
+ - test/dummy/config/environment.rb
208
+ - test/dummy/config/environments/development.rb
209
+ - test/dummy/config/environments/production.rb
210
+ - test/dummy/config/environments/test.rb
211
+ - test/dummy/config/initializers/assets.rb
212
+ - test/dummy/config/initializers/backtrace_silencers.rb
213
+ - test/dummy/config/initializers/cookies_serializer.rb
214
+ - test/dummy/config/initializers/filter_parameter_logging.rb
215
+ - test/dummy/config/initializers/inflections.rb
216
+ - test/dummy/config/initializers/mime_types.rb
217
+ - test/dummy/config/initializers/session_store.rb
218
+ - test/dummy/config/initializers/wrap_parameters.rb
219
+ - test/dummy/config/locales/en.yml
220
+ - test/dummy/config/routes.rb
221
+ - test/dummy/config/secrets.yml
222
+ - test/dummy/public/404.html
223
+ - test/dummy/public/422.html
224
+ - test/dummy/public/500.html
225
+ - test/dummy/public/favicon.ico
226
+ - test/integration/navigation_test.rb
227
+ - test/lib/generators/disco_app/disco_app_generator_test.rb
228
+ - test/test_helper.rb
229
+ homepage: https://github.com/discolabs/disco_app/
230
+ licenses:
231
+ - MIT
232
+ metadata: {}
233
+ post_install_message:
234
+ rdoc_options: []
235
+ require_paths:
236
+ - lib
237
+ required_ruby_version: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ required_rubygems_version: !ruby/object:Gem::Requirement
243
+ requirements:
244
+ - - ">="
245
+ - !ruby/object:Gem::Version
246
+ version: '0'
247
+ requirements: []
248
+ rubyforge_project:
249
+ rubygems_version: 2.7.6
250
+ signing_key:
251
+ specification_version: 4
252
+ summary: Rails engine for Shopify applications.
253
+ test_files:
254
+ - test/dummy/public/500.html
255
+ - test/dummy/public/favicon.ico
256
+ - test/dummy/public/422.html
257
+ - test/dummy/public/404.html
258
+ - test/dummy/bin/rake
259
+ - test/dummy/bin/rails
260
+ - test/dummy/bin/setup
261
+ - test/dummy/bin/bundle
262
+ - test/dummy/Rakefile
263
+ - test/dummy/config.ru
264
+ - test/dummy/app/assets/stylesheets/application.css
265
+ - test/dummy/app/assets/javascripts/application.js
266
+ - test/dummy/app/controllers/application_controller.rb
267
+ - test/dummy/app/helpers/application_helper.rb
268
+ - test/dummy/app/views/layouts/application.html.erb
269
+ - test/dummy/config/locales/en.yml
270
+ - test/dummy/config/initializers/filter_parameter_logging.rb
271
+ - test/dummy/config/initializers/assets.rb
272
+ - test/dummy/config/initializers/session_store.rb
273
+ - test/dummy/config/initializers/inflections.rb
274
+ - test/dummy/config/initializers/mime_types.rb
275
+ - test/dummy/config/initializers/wrap_parameters.rb
276
+ - test/dummy/config/initializers/backtrace_silencers.rb
277
+ - test/dummy/config/initializers/cookies_serializer.rb
278
+ - test/dummy/config/secrets.yml
279
+ - test/dummy/config/routes.rb
280
+ - test/dummy/config/environments/production.rb
281
+ - test/dummy/config/environments/test.rb
282
+ - test/dummy/config/environments/development.rb
283
+ - test/dummy/config/environment.rb
284
+ - test/dummy/config/boot.rb
285
+ - test/dummy/config/database.yml
286
+ - test/dummy/config/application.rb
287
+ - test/dummy/README.rdoc
288
+ - test/lib/generators/disco_app/disco_app_generator_test.rb
289
+ - test/test_helper.rb
290
+ - test/disco_app_test.rb
291
+ - test/integration/navigation_test.rb