vayacondios-server 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/app/http_shim.rb CHANGED
@@ -45,7 +45,7 @@ class HttpShim < Goliath::API
45
45
 
46
46
  when :show
47
47
  record = klass.find(mongo, path_params)
48
- [200, {}, MultiJson.dump(record.body)]
48
+ [200, {}, record.body]
49
49
 
50
50
  when :update
51
51
  record = klass.new(mongo).update(document, path_params)
@@ -57,7 +57,7 @@ class HttpShim < Goliath::API
57
57
 
58
58
  when :delete
59
59
  record = klass.find(mongo, path_params).destroy(document)
60
- [200, {}, MultiJson.dump(record.body)]
60
+ [200, {}, record.body]
61
61
  end
62
62
  rescue Vayacondios::Error::NotFound => ex
63
63
  return [404, {}, MultiJson.dump({ error: "Not Found" })]
@@ -1,3 +1,3 @@
1
1
  class Vayacondios
2
- VERSION = '0.2.7'
2
+ VERSION = '0.2.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vayacondios-server
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -280,7 +280,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
280
280
  version: '0'
281
281
  segments:
282
282
  - 0
283
- hash: 1685170955492084086
283
+ hash: 2663491117038590557
284
284
  required_rubygems_version: !ruby/object:Gem::Requirement
285
285
  none: false
286
286
  requirements:
@@ -289,7 +289,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
289
289
  version: '0'
290
290
  segments:
291
291
  - 0
292
- hash: 1685170955492084086
292
+ hash: 2663491117038590557
293
293
  requirements: []
294
294
  rubyforge_project:
295
295
  rubygems_version: 1.8.25