tungsten 0.1.28 → 0.1.29

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
  SHA1:
3
- metadata.gz: a686f2ead7aaa7be41739cd9eb37105aec669b0d
4
- data.tar.gz: 708d3bcdc1fbc4ec2d48290cb4225c269181eb90
3
+ metadata.gz: 28ac2facf2307d64ce31ffa136eb3a459c5927c2
4
+ data.tar.gz: ecd2aa03fc678e93056843f0b9d4f495577de86d
5
5
  SHA512:
6
- metadata.gz: 4b85307de5e0ed94cb0d9af30f8c4ccbc3cc83fa14f895d777200406f662a434485a58915c6c0da7ed674544e4160c10986404bf77d32232b11b6f15759ec33e
7
- data.tar.gz: 2bc1ce6202b169ce4fec0edf061cef4d68c7ec2ec417b2576b41e5648320f2fed195f3a1fded57fb1c27eaadfe4cef66aa7d1a80ba3660807a27787076581fd4
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
- # Here, the `@exception` variable contains the original raised error
12
- render "tungsten/errors/#{@rescue_response}", status: @status_code
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
@@ -1,3 +1,3 @@
1
1
  module Tungsten
2
- VERSION = "0.1.28"
2
+ VERSION = "0.1.29"
3
3
  end
@@ -89,4 +89,4 @@ function move(o){document.documentElement.scrollTop=o,document.body.parentNode.s
89
89
  });
90
90
 
91
91
 
92
- //# sourceMappingURL=/assets/tungsten/code-0.1.28.map.json
92
+ //# sourceMappingURL=/assets/tungsten/code-0.1.29.map.json
@@ -96,4 +96,4 @@ function request(e,n,t){return"function"==typeof t?new e("GET",n).end(t):2==argu
96
96
  });
97
97
 
98
98
 
99
- //# sourceMappingURL=/assets/tungsten/tungsten-0.1.28.map.json
99
+ //# sourceMappingURL=/assets/tungsten/tungsten-0.1.29.map.json
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.28
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-14 00:00:00.000000000 Z
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.28.js
280
- - public/code-0.1.28.js.gz
281
- - public/code-0.1.28.map.json
282
- - public/tungsten-0.1.28.css
283
- - public/tungsten-0.1.28.css.gz
284
- - public/tungsten-0.1.28.js
285
- - public/tungsten-0.1.28.js.gz
286
- - public/tungsten-0.1.28.map.json
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