vidibus-resource 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ class Api::ResourcesController < ApiController
17
17
  attributes[:realm_uuid] = params[:realm] if klass_with_realm?
18
18
  klass.create!(attributes)
19
19
  end
20
- render(:nothing => true)
20
+ render(:nothing => true, :status => :no_content)
21
21
  end
22
22
  end
23
23
 
@@ -25,7 +25,7 @@ class Api::ResourcesController < ApiController
25
25
  def update
26
26
  begin
27
27
  instance.update_resource_attributes(params['resource'])
28
- render :nothing => true
28
+ render(:nothing => true, :status => :no_content)
29
29
  rescue => e
30
30
  Rails.logger.error "Error while updating resource consumer:\n#{e.inspect}"
31
31
  render(:json => {:error => e}, :status => :bad_request)
@@ -39,7 +39,7 @@ class Api::ResourcesController < ApiController
39
39
  else
40
40
  instance.destroy_without_callback
41
41
  end
42
- render(:nothing => true)
42
+ render(:nothing => true, :status => :no_content)
43
43
  end
44
44
 
45
45
  private
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module Resource
3
- VERSION = "0.3.1"
3
+ VERSION = '0.3.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-resource
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Pankratz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-13 00:00:00 +02:00
18
+ date: 2011-09-14 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency