tungsten 0.1.28 → 0.1.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/tungsten/errors_controller.rb +10 -2
- data/lib/tungsten/version.rb +1 -1
- data/public/{code-0.1.28.js → code-0.1.29.js} +1 -1
- data/public/{code-0.1.28.js.gz → code-0.1.29.js.gz} +0 -0
- data/public/{code-0.1.28.map.json → code-0.1.29.map.json} +0 -0
- data/public/{tungsten-0.1.28.css → tungsten-0.1.29.css} +0 -0
- data/public/{tungsten-0.1.28.css.gz → tungsten-0.1.29.css.gz} +0 -0
- data/public/{tungsten-0.1.28.js → tungsten-0.1.29.js} +1 -1
- data/public/{tungsten-0.1.28.js.gz → tungsten-0.1.29.js.gz} +0 -0
- data/public/{tungsten-0.1.28.map.json → tungsten-0.1.29.map.json} +0 -0
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28ac2facf2307d64ce31ffa136eb3a459c5927c2
|
4
|
+
data.tar.gz: ecd2aa03fc678e93056843f0b9d4f495577de86d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 705244cee6947f1e3a5aae013dca50524395fe24d48f5dbe33df4b41213ed5fdd4614119f5aecb4e487095200e29d058cb2c51ad59e86994297f7f44723a0538
|
7
|
+
data.tar.gz: 40cac562cfb6677d1ff6195f6a125497e083e4d719b0777ddb32a81e62fafe891eef5f0dc620ea4ca14665b8e96a42527d644a0a75074f3d40c3ec8679f002e0
|
@@ -8,8 +8,16 @@ module Tungsten
|
|
8
8
|
# Render the correct template based on the exception "standard" code.
|
9
9
|
# Eg. For a 404 error, the `errors/not_found` template will be rendered.
|
10
10
|
def show
|
11
|
-
|
12
|
-
|
11
|
+
respond_to do |format|
|
12
|
+
format.html do
|
13
|
+
# Here, the `@exception` variable contains the original raised error
|
14
|
+
render "tungsten/errors/#{@rescue_response}", status: @status_code
|
15
|
+
end
|
16
|
+
|
17
|
+
format.json do
|
18
|
+
render json: { status: @status_code, error: @rescue_response }, status: @status_code
|
19
|
+
end
|
20
|
+
end
|
13
21
|
end
|
14
22
|
end
|
15
23
|
end
|
data/lib/tungsten/version.rb
CHANGED
Binary file
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tungsten
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Mathis
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-09-
|
12
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -276,14 +276,14 @@ files:
|
|
276
276
|
- lib/tungsten.rb
|
277
277
|
- lib/tungsten/helper.rb
|
278
278
|
- lib/tungsten/version.rb
|
279
|
-
- public/code-0.1.
|
280
|
-
- public/code-0.1.
|
281
|
-
- public/code-0.1.
|
282
|
-
- public/tungsten-0.1.
|
283
|
-
- public/tungsten-0.1.
|
284
|
-
- public/tungsten-0.1.
|
285
|
-
- public/tungsten-0.1.
|
286
|
-
- public/tungsten-0.1.
|
279
|
+
- public/code-0.1.29.js
|
280
|
+
- public/code-0.1.29.js.gz
|
281
|
+
- public/code-0.1.29.map.json
|
282
|
+
- public/tungsten-0.1.29.css
|
283
|
+
- public/tungsten-0.1.29.css.gz
|
284
|
+
- public/tungsten-0.1.29.js
|
285
|
+
- public/tungsten-0.1.29.js.gz
|
286
|
+
- public/tungsten-0.1.29.map.json
|
287
287
|
homepage:
|
288
288
|
licenses:
|
289
289
|
- MIT
|