gris 0.4.2 → 0.4.3

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: 9d466b03d28285650e9e80343a13c2937cdd8687
4
- data.tar.gz: bd36651baf560be5a54148460b4b1ec1d7a47a2d
3
+ metadata.gz: e96164641eef10ebe5b1b0ef9585128b9dab21a2
4
+ data.tar.gz: 0766137f4a9db102e5395d5bc13c6a7cab92663b
5
5
  SHA512:
6
- metadata.gz: 72e27c2761c148dfc0a36a7a5e5da119458451077dfc9cd07a4ebd55184d49112afead1396a542b3bd1a1b6fd7ec54709fd78f09868d188e4108eb996789d00f
7
- data.tar.gz: fd41e4bcd217adc3db9652c2ef8eec2e83618a307cf8889ef3171fc6abc52fb3b44f85cc10ae16282b9e3a0ee5221b7e20e3dc4eb58b2163e7d4a6f9d5f4266b
6
+ metadata.gz: 58888cb5cc8a00967780a977879657610f50b0a362f10a931340919fcc1d479cb71eaacc45de6989b77a8ef036f57a6cbededa8c6274aa9861b11f5f0abc7a93
7
+ data.tar.gz: c6e15aaa11a99516c9e4353876b9bc2b5f82bbcfe4c16c52e59bf18fc286bb23fce78676edb4643e79e4457578baff98dff086b068faa933277e3307c65d6a6c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gris (0.4.2)
4
+ gris (0.4.3)
5
5
  activesupport (~> 4.2, >= 4.2.0)
6
6
  chronic (~> 0.10.0)
7
7
  dalli (~> 2.7)
@@ -113,7 +113,7 @@ GEM
113
113
  logging (2.0.0)
114
114
  little-plugger (~> 1.1)
115
115
  multi_json (~> 1.10)
116
- minitest (5.7.0)
116
+ minitest (5.8.0)
117
117
  multi_json (1.11.2)
118
118
  multi_xml (0.5.5)
119
119
  multipart-post (2.0.0)
@@ -25,11 +25,10 @@ module Gris
25
25
 
26
26
  def call(env)
27
27
  response = ApplicationEndpoint.call(env)
28
- # Render error pages or return API response
29
28
  case response[0]
30
29
  when 404, 500
31
30
  body = { code: response[0], message: response[2] }.to_json
32
- [response[0], response[1], body]
31
+ [response[0], response[1], [body]]
33
32
  else
34
33
  response
35
34
  end
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
 
4
4
  class Version
5
5
  class << self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Fareed