neuron-client 0.4.6 → 0.4.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,6 +59,8 @@ module Neuron
59
59
  case response.code
60
60
  when 200
61
61
  return (format == :json ? Yajl.load(response.to_str) : response.to_str)
62
+ when 204
63
+ return nil
62
64
  when 422
63
65
  throw :errors, format == :json ? Yajl.load(response.to_str) : response.to_str
64
66
  else
@@ -239,7 +239,7 @@ module Neuron
239
239
  validate_against_schema!(:update, data)
240
240
  data = connection.put("#{resources_name}/#{id}", data)
241
241
  end
242
- apply_attributes!(data[resource_name])
242
+ apply_attributes!(data[resource_name]) unless data.nil?
243
243
  []
244
244
  end
245
245
  @errors.empty?
@@ -1,5 +1,5 @@
1
1
  module Neuron
2
2
  module Client
3
- VERSION = "0.4.6"
3
+ VERSION = "0.4.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neuron-client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 6
10
- version: 0.4.6
9
+ - 7
10
+ version: 0.4.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - RMM Online
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-12 00:00:00 Z
18
+ date: 2012-03-23 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rest-client