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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0a033b7a0965b0b0a8681b59a28701b6c33edf18
4
- data.tar.gz: 4e720f2df78eb9e2f4c9eeb70b69fa789779bb12
2
+ SHA256:
3
+ metadata.gz: 1b9375b83eb3f1cc314ad2ce6a4636947174ad5eaa908934a16c05acecb277f3
4
+ data.tar.gz: 71dcbdedc3a23eb7f625dcda54c59d3c217d03a69eba84aafb0954fe77a7f169
5
5
  SHA512:
6
- metadata.gz: 7a2c0e4fcf91851adc0c3c0f71793c8f2ec3d98a5722ee44726bc2a4ede75ff0b77eefa0ba3be83cbe5d705d293102570efba73127237f8ad011f6b09aaade1b
7
- data.tar.gz: 8145ba50038563161c047e9014e489219fb75151b4baa00db1110f585d7c271b616f74429b54c7267bb42ebde3f241fc14050ebb3bd409440beb9be767dfaad0
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 'text/html'
54
- response.body = <<HTML
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Service
3
- VERSION = '3.0.0'
3
+ VERSION = '3.0.1'
4
4
  end
5
5
  end
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.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-04-28 00:00:00.000000000 Z
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.4.5
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