disco_app 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +37 -0
  3. data/app/assets/images/disco_app/icon.svg +1 -0
  4. data/app/assets/javascripts/disco_app/components/shopify_admin_link.js.jsx +29 -0
  5. data/app/assets/javascripts/disco_app/components.js +5 -0
  6. data/app/assets/javascripts/disco_app/disco_app.js +7 -0
  7. data/app/assets/javascripts/disco_app/frame.js +152 -0
  8. data/app/assets/javascripts/disco_app/shopify-turbolinks.js +7 -0
  9. data/app/assets/stylesheets/disco_app/bootstrap/_custom.scss +54 -0
  10. data/app/assets/stylesheets/disco_app/bootstrap/_variables.scss +872 -0
  11. data/app/assets/stylesheets/disco_app/disco/_buttons.scss +31 -0
  12. data/app/assets/stylesheets/disco_app/disco/_cards.scss +51 -0
  13. data/app/assets/stylesheets/disco_app/disco/_forms.scss +23 -0
  14. data/app/assets/stylesheets/disco_app/disco/_grid.scss +58 -0
  15. data/app/assets/stylesheets/disco_app/disco/_sections.scss +61 -0
  16. data/app/assets/stylesheets/disco_app/disco/_tables.scss +57 -0
  17. data/app/assets/stylesheets/disco_app/disco/_tabs.scss +61 -0
  18. data/app/assets/stylesheets/disco_app/disco/_type.scss +39 -0
  19. data/app/assets/stylesheets/disco_app/disco/mixins/_flexbox.scss +394 -0
  20. data/app/assets/stylesheets/disco_app/disco_app.scss +16 -0
  21. data/app/assets/stylesheets/disco_app/frame/_buttons.scss +54 -0
  22. data/app/assets/stylesheets/disco_app/frame/_forms.scss +26 -0
  23. data/app/assets/stylesheets/disco_app/frame/_layout.scss +77 -0
  24. data/app/assets/stylesheets/disco_app/frame/_type.scss +32 -0
  25. data/app/assets/stylesheets/disco_app/frame.scss +9 -0
  26. data/app/controllers/disco_app/app_proxy_controller.rb +42 -0
  27. data/app/controllers/disco_app/authenticated_controller.rb +44 -0
  28. data/app/controllers/disco_app/carrier_request_controller.rb +23 -0
  29. data/app/controllers/disco_app/charges_controller.rb +30 -0
  30. data/app/controllers/disco_app/frame_controller.rb +9 -0
  31. data/app/controllers/disco_app/install_controller.rb +26 -0
  32. data/app/controllers/disco_app/webhooks_controller.rb +46 -0
  33. data/app/helpers/disco_app/application_helper.rb +28 -0
  34. data/app/jobs/disco_app/app_installed_job.rb +3 -0
  35. data/app/jobs/disco_app/app_uninstalled_job.rb +3 -0
  36. data/app/jobs/disco_app/concerns/app_installed_job.rb +22 -0
  37. data/app/jobs/disco_app/concerns/app_uninstalled_job.rb +23 -0
  38. data/app/jobs/disco_app/concerns/shop_update_job.rb +16 -0
  39. data/app/jobs/disco_app/concerns/synchronise_carrier_service_job.rb +52 -0
  40. data/app/jobs/disco_app/concerns/synchronise_webhooks_job.rb +61 -0
  41. data/app/jobs/disco_app/shop_job.rb +27 -0
  42. data/app/jobs/disco_app/shop_update_job.rb +3 -0
  43. data/app/jobs/disco_app/synchronise_carrier_service_job.rb +3 -0
  44. data/app/jobs/disco_app/synchronise_webhooks_job.rb +3 -0
  45. data/app/models/disco_app/concerns/plan.rb +14 -0
  46. data/app/models/disco_app/concerns/shop.rb +70 -0
  47. data/app/models/disco_app/concerns/subscription.rb +14 -0
  48. data/app/models/disco_app/concerns/synchronises_with_shopify.rb +26 -0
  49. data/app/models/disco_app/plan.rb +3 -0
  50. data/app/models/disco_app/session_storage.rb +18 -0
  51. data/app/models/disco_app/shop.rb +3 -0
  52. data/app/models/disco_app/subscription.rb +3 -0
  53. data/app/services/disco_app/carrier_request_service.rb +15 -0
  54. data/app/services/disco_app/charges_service.rb +73 -0
  55. data/app/services/disco_app/proxy_service.rb +17 -0
  56. data/app/services/disco_app/subscription_service.rb +25 -0
  57. data/app/services/disco_app/webhook_service.rb +30 -0
  58. data/app/views/disco_app/charges/activate.html.erb +1 -0
  59. data/app/views/disco_app/charges/create.html.erb +1 -0
  60. data/app/views/disco_app/charges/new.html.erb +45 -0
  61. data/app/views/disco_app/frame/frame.html.erb +36 -0
  62. data/app/views/disco_app/install/installing.html.erb +7 -0
  63. data/app/views/disco_app/install/uninstalling.html.erb +1 -0
  64. data/app/views/disco_app/proxy_errors/404.html.erb +1 -0
  65. data/app/views/disco_app/shared/_card.html.erb +14 -0
  66. data/app/views/disco_app/shared/_section.html.erb +17 -0
  67. data/app/views/layouts/application.html.erb +18 -0
  68. data/app/views/layouts/embedded_app.html.erb +41 -0
  69. data/app/views/layouts/embedded_app_modal.html.erb +17 -0
  70. data/app/views/sessions/new.html.erb +26 -0
  71. data/config/routes.rb +26 -0
  72. data/db/migrate/20150525000000_create_shops_if_not_existent.rb +15 -0
  73. data/db/migrate/20150525162112_add_status_to_shops.rb +5 -0
  74. data/db/migrate/20150525171422_add_meta_to_shops.rb +11 -0
  75. data/db/migrate/20150629210346_add_charge_status_to_shop.rb +5 -0
  76. data/db/migrate/20150814214025_add_more_meta_to_shops.rb +15 -0
  77. data/db/migrate/20151017231302_create_disco_app_plans.rb +13 -0
  78. data/db/migrate/20151017232027_create_disco_app_subscriptions.rb +15 -0
  79. data/db/migrate/20151017234409_move_shop_to_disco_app_engine.rb +5 -0
  80. data/db/migrate/20160112233706_create_disco_app_sessions.rb +12 -0
  81. data/db/migrate/20160113194418_add_shop_id_to_disco_app_sessions.rb +6 -0
  82. data/lib/disco_app/configuration.rb +33 -0
  83. data/lib/disco_app/engine.rb +25 -0
  84. data/lib/disco_app/session.rb +14 -0
  85. data/lib/disco_app/support/file_fixtures.rb +23 -0
  86. data/lib/disco_app/test_help.rb +11 -0
  87. data/lib/disco_app/version.rb +3 -0
  88. data/lib/disco_app.rb +6 -0
  89. data/lib/generators/disco_app/USAGE +5 -0
  90. data/lib/generators/disco_app/disco_app_generator.rb +163 -0
  91. data/lib/generators/disco_app/mailify/mailify_generator.rb +54 -0
  92. data/lib/generators/disco_app/monitorify/monitorify_generator.rb +28 -0
  93. data/lib/generators/disco_app/monitorify/templates/config/newrelic.yml +26 -0
  94. data/lib/generators/disco_app/monitorify/templates/initializers/rollbar.rb +12 -0
  95. data/lib/generators/disco_app/reactify/reactify_generator.rb +45 -0
  96. data/lib/generators/disco_app/templates/assets/javascripts/application.js +17 -0
  97. data/lib/generators/disco_app/templates/assets/stylesheets/application.scss +5 -0
  98. data/lib/generators/disco_app/templates/config/puma.rb +15 -0
  99. data/lib/generators/disco_app/templates/controllers/home_controller.rb +7 -0
  100. data/lib/generators/disco_app/templates/initializers/disco_app.rb +14 -0
  101. data/lib/generators/disco_app/templates/initializers/session_store.rb +2 -0
  102. data/lib/generators/disco_app/templates/initializers/shopify_app.rb +7 -0
  103. data/lib/generators/disco_app/templates/initializers/shopify_session_repository.rb +7 -0
  104. data/lib/generators/disco_app/templates/root/Procfile +2 -0
  105. data/lib/generators/disco_app/templates/views/home/index.html.erb +2 -0
  106. data/lib/tasks/carrier_service.rake +10 -0
  107. data/lib/tasks/sessions.rake +9 -0
  108. data/lib/tasks/start.rake +3 -0
  109. data/lib/tasks/webhooks.rake +10 -0
  110. data/test/controllers/disco_app/install_controller_test.rb +50 -0
  111. data/test/controllers/disco_app/webhooks_controller_test.rb +58 -0
  112. data/test/controllers/home_controller_test.rb +61 -0
  113. data/test/controllers/proxy_controller_test.rb +42 -0
  114. data/test/disco_app_test.rb +7 -0
  115. data/test/dummy/Rakefile +6 -0
  116. data/test/dummy/app/assets/javascripts/application.js +17 -0
  117. data/test/dummy/app/assets/stylesheets/application.scss +5 -0
  118. data/test/dummy/app/controllers/application_controller.rb +6 -0
  119. data/test/dummy/app/controllers/home_controller.rb +7 -0
  120. data/test/dummy/app/controllers/proxy_controller.rb +8 -0
  121. data/test/dummy/app/helpers/application_helper.rb +2 -0
  122. data/test/dummy/app/jobs/disco_app/app_uninstalled_job.rb +11 -0
  123. data/test/dummy/app/models/disco_app/shop.rb +15 -0
  124. data/test/dummy/app/views/home/index.html.erb +2 -0
  125. data/test/dummy/bin/bundle +3 -0
  126. data/test/dummy/bin/rails +4 -0
  127. data/test/dummy/bin/rake +4 -0
  128. data/test/dummy/bin/setup +29 -0
  129. data/test/dummy/config/application.rb +38 -0
  130. data/test/dummy/config/boot.rb +5 -0
  131. data/test/dummy/config/database.yml +25 -0
  132. data/test/dummy/config/environment.rb +5 -0
  133. data/test/dummy/config/environments/development.rb +41 -0
  134. data/test/dummy/config/environments/production.rb +85 -0
  135. data/test/dummy/config/environments/test.rb +42 -0
  136. data/test/dummy/config/initializers/assets.rb +11 -0
  137. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  138. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  139. data/test/dummy/config/initializers/disco_app.rb +14 -0
  140. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  141. data/test/dummy/config/initializers/inflections.rb +16 -0
  142. data/test/dummy/config/initializers/mime_types.rb +4 -0
  143. data/test/dummy/config/initializers/omniauth.rb +9 -0
  144. data/test/dummy/config/initializers/session_store.rb +2 -0
  145. data/test/dummy/config/initializers/shopify_app.rb +7 -0
  146. data/test/dummy/config/initializers/shopify_session_repository.rb +7 -0
  147. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  148. data/test/dummy/config/locales/en.yml +23 -0
  149. data/test/dummy/config/routes.rb +10 -0
  150. data/test/dummy/config/secrets.yml +22 -0
  151. data/test/dummy/config.ru +4 -0
  152. data/test/dummy/db/schema.rb +81 -0
  153. data/test/dummy/public/404.html +67 -0
  154. data/test/dummy/public/422.html +67 -0
  155. data/test/dummy/public/500.html +66 -0
  156. data/test/dummy/public/favicon.ico +0 -0
  157. data/test/fixtures/api/widget_store/shop.json +46 -0
  158. data/test/fixtures/api/widget_store/webhooks.json +1 -0
  159. data/test/fixtures/disco_app/plans.yml +32 -0
  160. data/test/fixtures/disco_app/shops.yml +10 -0
  161. data/test/fixtures/disco_app/subscriptions.yml +26 -0
  162. data/test/fixtures/webhooks/app_uninstalled.json +46 -0
  163. data/test/integration/navigation_test.rb +10 -0
  164. data/test/jobs/disco_app/app_installed_job_test.rb +30 -0
  165. data/test/jobs/disco_app/app_uninstalled_job_test.rb +32 -0
  166. data/test/models/disco_app/plan_test.rb +5 -0
  167. data/test/models/disco_app/session_test.rb +31 -0
  168. data/test/models/disco_app/shop_test.rb +26 -0
  169. data/test/models/disco_app/subscription_test.rb +6 -0
  170. data/test/services/disco_app/subscription_service_test.rb +28 -0
  171. data/test/support/test_file_fixtures.rb +29 -0
  172. data/test/test_helper.rb +51 -0
  173. metadata +530 -0
@@ -0,0 +1,51 @@
1
+ # Configure Rails Environment
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'
10
+
11
+ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
12
+ ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
13
+ ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
14
+ require "rails/test_help"
15
+
16
+ # Require our additional test support helpers.
17
+ require 'support/test_file_fixtures'
18
+
19
+ # Require WebMock
20
+ require 'webmock/minitest'
21
+
22
+ # Filter out Minitest backtrace while allowing backtrace from other libraries
23
+ # to be shown.
24
+ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
25
+
26
+ # Load support files
27
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
28
+
29
+ # Load fixtures from the engine
30
+ if ActiveSupport::TestCase.respond_to?(:fixture_path=)
31
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
32
+ ActiveSupport::TestCase.fixtures :all
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 ADDED
@@ -0,0 +1,530 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: disco_app
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.5
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.5.1
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.5.1
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.4.1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 6.4.1
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.14.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.14.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: sidekiq
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 4.0.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 4.0.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: 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
111
+ - !ruby/object:Gem::Dependency
112
+ name: pg
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.18.3
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.18.3
125
+ - !ruby/object:Gem::Dependency
126
+ name: rails_12factor
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.0.3
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
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
153
+ - !ruby/object:Gem::Dependency
154
+ name: activerecord-session_store
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.1.2
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 0.1.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: omniauth-shopify-oauth2
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 1.1.11
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '='
179
+ - !ruby/object:Gem::Version
180
+ version: 1.1.11
181
+ - !ruby/object:Gem::Dependency
182
+ name: sqlite3
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 1.3.11
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 1.3.11
195
+ - !ruby/object:Gem::Dependency
196
+ name: dotenv-rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 2.0.2
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 2.0.2
209
+ - !ruby/object:Gem::Dependency
210
+ name: minitest-reporters
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 1.0.19
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 1.0.19
223
+ - !ruby/object:Gem::Dependency
224
+ name: guard
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - "~>"
228
+ - !ruby/object:Gem::Version
229
+ version: 2.13.0
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - "~>"
235
+ - !ruby/object:Gem::Version
236
+ version: 2.13.0
237
+ - !ruby/object:Gem::Dependency
238
+ name: guard-minitest
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - "~>"
242
+ - !ruby/object:Gem::Version
243
+ version: 2.4.4
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - "~>"
249
+ - !ruby/object:Gem::Version
250
+ version: 2.4.4
251
+ - !ruby/object:Gem::Dependency
252
+ name: webmock
253
+ requirement: !ruby/object:Gem::Requirement
254
+ requirements:
255
+ - - "~>"
256
+ - !ruby/object:Gem::Version
257
+ version: 1.22.1
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
263
+ - !ruby/object:Gem::Version
264
+ version: 1.22.1
265
+ description: Rails engine for Shopify applications.
266
+ email:
267
+ - gavin@gavinballard.com
268
+ executables: []
269
+ extensions: []
270
+ extra_rdoc_files: []
271
+ files:
272
+ - Rakefile
273
+ - app/assets/images/disco_app/icon.svg
274
+ - app/assets/javascripts/disco_app/components.js
275
+ - app/assets/javascripts/disco_app/components/shopify_admin_link.js.jsx
276
+ - app/assets/javascripts/disco_app/disco_app.js
277
+ - app/assets/javascripts/disco_app/frame.js
278
+ - app/assets/javascripts/disco_app/shopify-turbolinks.js
279
+ - app/assets/stylesheets/disco_app/bootstrap/_custom.scss
280
+ - app/assets/stylesheets/disco_app/bootstrap/_variables.scss
281
+ - app/assets/stylesheets/disco_app/disco/_buttons.scss
282
+ - app/assets/stylesheets/disco_app/disco/_cards.scss
283
+ - app/assets/stylesheets/disco_app/disco/_forms.scss
284
+ - app/assets/stylesheets/disco_app/disco/_grid.scss
285
+ - app/assets/stylesheets/disco_app/disco/_sections.scss
286
+ - app/assets/stylesheets/disco_app/disco/_tables.scss
287
+ - app/assets/stylesheets/disco_app/disco/_tabs.scss
288
+ - app/assets/stylesheets/disco_app/disco/_type.scss
289
+ - app/assets/stylesheets/disco_app/disco/mixins/_flexbox.scss
290
+ - app/assets/stylesheets/disco_app/disco_app.scss
291
+ - app/assets/stylesheets/disco_app/frame.scss
292
+ - app/assets/stylesheets/disco_app/frame/_buttons.scss
293
+ - app/assets/stylesheets/disco_app/frame/_forms.scss
294
+ - app/assets/stylesheets/disco_app/frame/_layout.scss
295
+ - app/assets/stylesheets/disco_app/frame/_type.scss
296
+ - app/controllers/disco_app/app_proxy_controller.rb
297
+ - app/controllers/disco_app/authenticated_controller.rb
298
+ - app/controllers/disco_app/carrier_request_controller.rb
299
+ - app/controllers/disco_app/charges_controller.rb
300
+ - app/controllers/disco_app/frame_controller.rb
301
+ - app/controllers/disco_app/install_controller.rb
302
+ - app/controllers/disco_app/webhooks_controller.rb
303
+ - app/helpers/disco_app/application_helper.rb
304
+ - app/jobs/disco_app/app_installed_job.rb
305
+ - app/jobs/disco_app/app_uninstalled_job.rb
306
+ - app/jobs/disco_app/concerns/app_installed_job.rb
307
+ - app/jobs/disco_app/concerns/app_uninstalled_job.rb
308
+ - app/jobs/disco_app/concerns/shop_update_job.rb
309
+ - app/jobs/disco_app/concerns/synchronise_carrier_service_job.rb
310
+ - app/jobs/disco_app/concerns/synchronise_webhooks_job.rb
311
+ - app/jobs/disco_app/shop_job.rb
312
+ - app/jobs/disco_app/shop_update_job.rb
313
+ - app/jobs/disco_app/synchronise_carrier_service_job.rb
314
+ - app/jobs/disco_app/synchronise_webhooks_job.rb
315
+ - app/models/disco_app/concerns/plan.rb
316
+ - app/models/disco_app/concerns/shop.rb
317
+ - app/models/disco_app/concerns/subscription.rb
318
+ - app/models/disco_app/concerns/synchronises_with_shopify.rb
319
+ - app/models/disco_app/plan.rb
320
+ - app/models/disco_app/session_storage.rb
321
+ - app/models/disco_app/shop.rb
322
+ - app/models/disco_app/subscription.rb
323
+ - app/services/disco_app/carrier_request_service.rb
324
+ - app/services/disco_app/charges_service.rb
325
+ - app/services/disco_app/proxy_service.rb
326
+ - app/services/disco_app/subscription_service.rb
327
+ - app/services/disco_app/webhook_service.rb
328
+ - app/views/disco_app/charges/activate.html.erb
329
+ - app/views/disco_app/charges/create.html.erb
330
+ - app/views/disco_app/charges/new.html.erb
331
+ - app/views/disco_app/frame/frame.html.erb
332
+ - app/views/disco_app/install/installing.html.erb
333
+ - app/views/disco_app/install/uninstalling.html.erb
334
+ - app/views/disco_app/proxy_errors/404.html.erb
335
+ - app/views/disco_app/shared/_card.html.erb
336
+ - app/views/disco_app/shared/_section.html.erb
337
+ - app/views/layouts/application.html.erb
338
+ - app/views/layouts/embedded_app.html.erb
339
+ - app/views/layouts/embedded_app_modal.html.erb
340
+ - app/views/sessions/new.html.erb
341
+ - config/routes.rb
342
+ - db/migrate/20150525000000_create_shops_if_not_existent.rb
343
+ - db/migrate/20150525162112_add_status_to_shops.rb
344
+ - db/migrate/20150525171422_add_meta_to_shops.rb
345
+ - db/migrate/20150629210346_add_charge_status_to_shop.rb
346
+ - db/migrate/20150814214025_add_more_meta_to_shops.rb
347
+ - db/migrate/20151017231302_create_disco_app_plans.rb
348
+ - db/migrate/20151017232027_create_disco_app_subscriptions.rb
349
+ - db/migrate/20151017234409_move_shop_to_disco_app_engine.rb
350
+ - db/migrate/20160112233706_create_disco_app_sessions.rb
351
+ - db/migrate/20160113194418_add_shop_id_to_disco_app_sessions.rb
352
+ - lib/disco_app.rb
353
+ - lib/disco_app/configuration.rb
354
+ - lib/disco_app/engine.rb
355
+ - lib/disco_app/session.rb
356
+ - lib/disco_app/support/file_fixtures.rb
357
+ - lib/disco_app/test_help.rb
358
+ - lib/disco_app/version.rb
359
+ - lib/generators/disco_app/USAGE
360
+ - lib/generators/disco_app/disco_app_generator.rb
361
+ - lib/generators/disco_app/mailify/mailify_generator.rb
362
+ - lib/generators/disco_app/monitorify/monitorify_generator.rb
363
+ - lib/generators/disco_app/monitorify/templates/config/newrelic.yml
364
+ - lib/generators/disco_app/monitorify/templates/initializers/rollbar.rb
365
+ - lib/generators/disco_app/reactify/reactify_generator.rb
366
+ - lib/generators/disco_app/templates/assets/javascripts/application.js
367
+ - lib/generators/disco_app/templates/assets/stylesheets/application.scss
368
+ - lib/generators/disco_app/templates/config/puma.rb
369
+ - lib/generators/disco_app/templates/controllers/home_controller.rb
370
+ - lib/generators/disco_app/templates/initializers/disco_app.rb
371
+ - lib/generators/disco_app/templates/initializers/session_store.rb
372
+ - lib/generators/disco_app/templates/initializers/shopify_app.rb
373
+ - lib/generators/disco_app/templates/initializers/shopify_session_repository.rb
374
+ - lib/generators/disco_app/templates/root/Procfile
375
+ - lib/generators/disco_app/templates/views/home/index.html.erb
376
+ - lib/tasks/carrier_service.rake
377
+ - lib/tasks/sessions.rake
378
+ - lib/tasks/start.rake
379
+ - lib/tasks/webhooks.rake
380
+ - test/controllers/disco_app/install_controller_test.rb
381
+ - test/controllers/disco_app/webhooks_controller_test.rb
382
+ - test/controllers/home_controller_test.rb
383
+ - test/controllers/proxy_controller_test.rb
384
+ - test/disco_app_test.rb
385
+ - test/dummy/Rakefile
386
+ - test/dummy/app/assets/javascripts/application.js
387
+ - test/dummy/app/assets/stylesheets/application.scss
388
+ - test/dummy/app/controllers/application_controller.rb
389
+ - test/dummy/app/controllers/home_controller.rb
390
+ - test/dummy/app/controllers/proxy_controller.rb
391
+ - test/dummy/app/helpers/application_helper.rb
392
+ - test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
393
+ - test/dummy/app/models/disco_app/shop.rb
394
+ - test/dummy/app/views/home/index.html.erb
395
+ - test/dummy/bin/bundle
396
+ - test/dummy/bin/rails
397
+ - test/dummy/bin/rake
398
+ - test/dummy/bin/setup
399
+ - test/dummy/config.ru
400
+ - test/dummy/config/application.rb
401
+ - test/dummy/config/boot.rb
402
+ - test/dummy/config/database.yml
403
+ - test/dummy/config/environment.rb
404
+ - test/dummy/config/environments/development.rb
405
+ - test/dummy/config/environments/production.rb
406
+ - test/dummy/config/environments/test.rb
407
+ - test/dummy/config/initializers/assets.rb
408
+ - test/dummy/config/initializers/backtrace_silencers.rb
409
+ - test/dummy/config/initializers/cookies_serializer.rb
410
+ - test/dummy/config/initializers/disco_app.rb
411
+ - test/dummy/config/initializers/filter_parameter_logging.rb
412
+ - test/dummy/config/initializers/inflections.rb
413
+ - test/dummy/config/initializers/mime_types.rb
414
+ - test/dummy/config/initializers/omniauth.rb
415
+ - test/dummy/config/initializers/session_store.rb
416
+ - test/dummy/config/initializers/shopify_app.rb
417
+ - test/dummy/config/initializers/shopify_session_repository.rb
418
+ - test/dummy/config/initializers/wrap_parameters.rb
419
+ - test/dummy/config/locales/en.yml
420
+ - test/dummy/config/routes.rb
421
+ - test/dummy/config/secrets.yml
422
+ - test/dummy/db/schema.rb
423
+ - test/dummy/public/404.html
424
+ - test/dummy/public/422.html
425
+ - test/dummy/public/500.html
426
+ - test/dummy/public/favicon.ico
427
+ - test/fixtures/api/widget_store/shop.json
428
+ - test/fixtures/api/widget_store/webhooks.json
429
+ - test/fixtures/disco_app/plans.yml
430
+ - test/fixtures/disco_app/shops.yml
431
+ - test/fixtures/disco_app/subscriptions.yml
432
+ - test/fixtures/webhooks/app_uninstalled.json
433
+ - test/integration/navigation_test.rb
434
+ - test/jobs/disco_app/app_installed_job_test.rb
435
+ - test/jobs/disco_app/app_uninstalled_job_test.rb
436
+ - test/models/disco_app/plan_test.rb
437
+ - test/models/disco_app/session_test.rb
438
+ - test/models/disco_app/shop_test.rb
439
+ - test/models/disco_app/subscription_test.rb
440
+ - test/services/disco_app/subscription_service_test.rb
441
+ - test/support/test_file_fixtures.rb
442
+ - test/test_helper.rb
443
+ homepage: https://github.com/discolabs/disco_app/
444
+ licenses:
445
+ - MIT
446
+ metadata: {}
447
+ post_install_message:
448
+ rdoc_options: []
449
+ require_paths:
450
+ - lib
451
+ required_ruby_version: !ruby/object:Gem::Requirement
452
+ requirements:
453
+ - - ">="
454
+ - !ruby/object:Gem::Version
455
+ version: '0'
456
+ required_rubygems_version: !ruby/object:Gem::Requirement
457
+ requirements:
458
+ - - ">="
459
+ - !ruby/object:Gem::Version
460
+ version: '0'
461
+ requirements: []
462
+ rubyforge_project:
463
+ rubygems_version: 2.7.6
464
+ signing_key:
465
+ specification_version: 4
466
+ summary: Rails engine for Shopify applications.
467
+ test_files:
468
+ - test/dummy/public/500.html
469
+ - test/dummy/public/favicon.ico
470
+ - test/dummy/public/422.html
471
+ - test/dummy/public/404.html
472
+ - test/dummy/bin/rake
473
+ - test/dummy/bin/rails
474
+ - test/dummy/bin/setup
475
+ - test/dummy/bin/bundle
476
+ - test/dummy/Rakefile
477
+ - test/dummy/config.ru
478
+ - test/dummy/app/assets/stylesheets/application.scss
479
+ - test/dummy/app/assets/javascripts/application.js
480
+ - test/dummy/app/jobs/disco_app/app_uninstalled_job.rb
481
+ - test/dummy/app/controllers/home_controller.rb
482
+ - test/dummy/app/controllers/proxy_controller.rb
483
+ - test/dummy/app/controllers/application_controller.rb
484
+ - test/dummy/app/helpers/application_helper.rb
485
+ - test/dummy/app/models/disco_app/shop.rb
486
+ - test/dummy/app/views/home/index.html.erb
487
+ - test/dummy/db/schema.rb
488
+ - test/dummy/config/locales/en.yml
489
+ - test/dummy/config/initializers/filter_parameter_logging.rb
490
+ - test/dummy/config/initializers/assets.rb
491
+ - test/dummy/config/initializers/session_store.rb
492
+ - test/dummy/config/initializers/inflections.rb
493
+ - test/dummy/config/initializers/mime_types.rb
494
+ - test/dummy/config/initializers/wrap_parameters.rb
495
+ - test/dummy/config/initializers/disco_app.rb
496
+ - test/dummy/config/initializers/shopify_app.rb
497
+ - test/dummy/config/initializers/shopify_session_repository.rb
498
+ - test/dummy/config/initializers/backtrace_silencers.rb
499
+ - test/dummy/config/initializers/omniauth.rb
500
+ - test/dummy/config/initializers/cookies_serializer.rb
501
+ - test/dummy/config/secrets.yml
502
+ - test/dummy/config/routes.rb
503
+ - test/dummy/config/environments/production.rb
504
+ - test/dummy/config/environments/test.rb
505
+ - test/dummy/config/environments/development.rb
506
+ - test/dummy/config/environment.rb
507
+ - test/dummy/config/boot.rb
508
+ - test/dummy/config/database.yml
509
+ - test/dummy/config/application.rb
510
+ - test/fixtures/api/widget_store/webhooks.json
511
+ - test/fixtures/api/widget_store/shop.json
512
+ - test/fixtures/disco_app/shops.yml
513
+ - test/fixtures/disco_app/subscriptions.yml
514
+ - test/fixtures/disco_app/plans.yml
515
+ - test/fixtures/webhooks/app_uninstalled.json
516
+ - test/support/test_file_fixtures.rb
517
+ - test/test_helper.rb
518
+ - test/disco_app_test.rb
519
+ - test/jobs/disco_app/app_uninstalled_job_test.rb
520
+ - test/jobs/disco_app/app_installed_job_test.rb
521
+ - test/controllers/disco_app/install_controller_test.rb
522
+ - test/controllers/disco_app/webhooks_controller_test.rb
523
+ - test/controllers/proxy_controller_test.rb
524
+ - test/controllers/home_controller_test.rb
525
+ - test/integration/navigation_test.rb
526
+ - test/models/disco_app/plan_test.rb
527
+ - test/models/disco_app/shop_test.rb
528
+ - test/models/disco_app/session_test.rb
529
+ - test/models/disco_app/subscription_test.rb
530
+ - test/services/disco_app/subscription_service_test.rb