mumukit-service 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/mumukit/service/routes.rb +5 -2
- data/lib/mumukit/service/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1b9375b83eb3f1cc314ad2ce6a4636947174ad5eaa908934a16c05acecb277f3
|
4
|
+
data.tar.gz: 71dcbdedc3a23eb7f625dcda54c59d3c217d03a69eba84aafb0954fe77a7f169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 635d8991e08bd60b1d8131215180483ca383986fe814213fb53901a1ef24ae5b3d117c2b3a993626b4eff8bcf69ba91dd5c5ebe81964ac0fd2ae052a7e933fcc
|
7
|
+
data.tar.gz: 3f1ecd508c8112650777126a603d2985bbb4938e99f6ef1a43044765a55932c27a614e7d8ec11fb67a3d00c85c7a12d311a95471bb690a98d1c17e558d531b45
|
@@ -50,14 +50,17 @@ end
|
|
50
50
|
after do
|
51
51
|
error_message = env['sinatra.error']
|
52
52
|
if response.body.is_a?(Array)&& response.body[0].is_a?(String)
|
53
|
-
content_type '
|
54
|
-
|
53
|
+
if content_type != 'application/csv'
|
54
|
+
content_type 'text/html'
|
55
|
+
response.body[0] = <<HTML
|
55
56
|
<html>
|
56
57
|
<body>
|
57
58
|
#{response.body[0]}
|
58
59
|
</body>
|
59
60
|
</html>
|
60
61
|
HTML
|
62
|
+
end
|
63
|
+
response.body = response.body[0]
|
61
64
|
elsif error_message.blank?
|
62
65
|
response.body = response.body.to_json
|
63
66
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
187
|
version: '0'
|
188
188
|
requirements: []
|
189
189
|
rubyforge_project:
|
190
|
-
rubygems_version: 2.
|
190
|
+
rubygems_version: 2.7.3
|
191
191
|
signing_key:
|
192
192
|
specification_version: 4
|
193
193
|
summary: Little framework for building stateful mumuki services
|