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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/gris/application.rb +1 -2
- data/lib/gris/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e96164641eef10ebe5b1b0ef9585128b9dab21a2
|
4
|
+
data.tar.gz: 0766137f4a9db102e5395d5bc13c6a7cab92663b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58888cb5cc8a00967780a977879657610f50b0a362f10a931340919fcc1d479cb71eaacc45de6989b77a8ef036f57a6cbededa8c6274aa9861b11f5f0abc7a93
|
7
|
+
data.tar.gz: c6e15aaa11a99516c9e4353876b9bc2b5f82bbcfe4c16c52e59bf18fc286bb23fce78676edb4643e79e4457578baff98dff086b068faa933277e3307c65d6a6c
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
gris (0.4.
|
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.
|
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)
|
data/lib/gris/application.rb
CHANGED
@@ -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
|
data/lib/gris/version.rb
CHANGED