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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 51df5228e93760350ad608d44a2fcba99d5025c5e15c1698aa77f62925fcd737
4
- data.tar.gz: 69c051d636b71953583bf996e975d619246ab59fdbdc08925fc76f5582366edf
3
+ metadata.gz: bfde7107b9cdb0de640f3358353f9c34a4a7daab73625a233970d4be0f914f64
4
+ data.tar.gz: a592683bdc19557edb0024bd2f9266701b51dc053e2b2f6b0ad3d7335411e41f
5
5
  SHA512:
6
- metadata.gz: 0edf00974329538404e8ca34362c60e514f9ec4c8fd15aca7c63a0177557d25c26e7c59a355d80c4eedb6f564126e8361affbf67b5fe12733550e80fbdebe3c5
7
- data.tar.gz: 0f9059c29371ed0c98a1a429b2f315a50d3a7319090be70027688b4aca8b2711bc9a26e35982d61819cbb294212d33aba07c4b26cd5e75ca8218e36688424421
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
@@ -1,3 +1,3 @@
1
1
  module DiscoApp
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -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.
@@ -7,7 +7,7 @@ module DiscoApp
7
7
  # Install the react-rails gem and run its setup.
8
8
  def install_gem
9
9
  # Add gem to Gemfile
10
- gem 'react-rails', '~> 1.0.0'
10
+ gem 'react-rails', '~> 1.1.0'
11
11
 
12
12
  # Install gem.
13
13
  Bundler.with_clean_env do
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.1
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