disco_app 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/disco_app/app_proxy_controller.rb +9 -0
- data/app/views/disco_app/proxy_errors/404.html.erb +1 -0
- data/lib/disco_app/version.rb +1 -1
- data/lib/generators/disco_app/disco_app_generator.rb +3 -0
- data/lib/generators/disco_app/reactify/reactify_generator.rb +1 -1
- metadata +44 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfde7107b9cdb0de640f3358353f9c34a4a7daab73625a233970d4be0f914f64
|
4
|
+
data.tar.gz: a592683bdc19557edb0024bd2f9266701b51dc053e2b2f6b0ad3d7335411e41f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d19fb76b17ecb36b93cbeee6c2939c0a83f8c028dbb0199f52c941dd9edda4319c1a85b864a167c87562a9394d5bf39fdf6e5fafbb4db39174cccd0646cb0e8e
|
7
|
+
data.tar.gz: c98f03e3c2119ed8ea4047371217055caede069cb528a4b741a8149bf8492ba68c58f83b7c8935bb69485353e19b546c3fa35abcfa93598430a5130d516c0a9f
|
@@ -5,6 +5,10 @@ module DiscoApp
|
|
5
5
|
included do
|
6
6
|
before_action :verify_proxy_signature
|
7
7
|
after_action :add_liquid_header
|
8
|
+
|
9
|
+
rescue_from ActiveRecord::RecordNotFound do |exception|
|
10
|
+
render_error 404
|
11
|
+
end
|
8
12
|
end
|
9
13
|
|
10
14
|
private
|
@@ -28,5 +32,10 @@ module DiscoApp
|
|
28
32
|
response.headers['Content-Type'] = 'application/liquid'
|
29
33
|
end
|
30
34
|
|
35
|
+
def render_error(status)
|
36
|
+
add_liquid_header
|
37
|
+
render "disco_app/proxy_errors/#{status}", status: status
|
38
|
+
end
|
39
|
+
|
31
40
|
end
|
32
41
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
404 Not Found
|
data/lib/disco_app/version.rb
CHANGED
@@ -36,6 +36,9 @@ class DiscoAppGenerator < Rails::Generators::Base
|
|
36
36
|
gem_group :development, :test do
|
37
37
|
gem 'sqlite3', '~> 1.3.10'
|
38
38
|
gem 'dotenv-rails', '~> 2.0.2'
|
39
|
+
gem 'minitest-reporters', '~> 1.0.19'
|
40
|
+
gem 'guard', '~> 2.13.0'
|
41
|
+
gem 'guard-minitest', '~> 2.4.4'
|
39
42
|
end
|
40
43
|
|
41
44
|
# Add gems for production only.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: disco_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gavin Ballard
|
@@ -136,6 +136,48 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
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
|
139
181
|
description: Rails engine for Shopify applications.
|
140
182
|
email:
|
141
183
|
- gavin@gavinballard.com
|
@@ -165,6 +207,7 @@ files:
|
|
165
207
|
- app/views/disco_app/charges/new.html.erb
|
166
208
|
- app/views/disco_app/install/installing.html.erb
|
167
209
|
- app/views/disco_app/install/uninstalling.html.erb
|
210
|
+
- app/views/disco_app/proxy_errors/404.html.erb
|
168
211
|
- config/routes.rb
|
169
212
|
- db/migrate/20150525162112_add_status_to_shops.rb
|
170
213
|
- db/migrate/20150525171422_add_meta_to_shops.rb
|