skinny_controllers 0.5.5 → 0.5.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 419e3bc9c106e0b57c32825a4a18ff5c694c9804
4
- data.tar.gz: 3bb9c41ea1e44ad8ff34d937b6f6dcbfe2dc3302
3
+ metadata.gz: e421158402ef37ad4aedb544359ada894d6ba616
4
+ data.tar.gz: 7c084cdbf5699bee2ca251abeec24ff98cfbb060
5
5
  SHA512:
6
- metadata.gz: 3c7d72792ecf3144feec8dee69a2cb130c37ed168109dae026c52c65c2ca3c6275320acb4668c5a338b6450b9299a0d3f34fb82f35f525f549cb3af520731288
7
- data.tar.gz: 545806ac926d754f67770ed11266d17b8518d0dcec901c329a641ceac9c4aa2d417c03faab42d37269c142e8add81aeac6745b7590df9f453478dde45fd7ba83
6
+ metadata.gz: 10dad383fd05c9c5454a583cb93555962833c389936ff1366ff193a567b5ac96f31fa5d8b2afbdd72c5cc1804247b2d7f020289ffb9262e5c5398dcb314fd903
7
+ data.tar.gz: b5cd1fe9e58ef4168a6858e05da1e2ebaf89e723261c37e811d85657778b7b9f28c595167bd35a5e5ea97906b409d92369af3d27a64681cb1fe658c5d6abd517
@@ -10,8 +10,8 @@ module SkinnyControllers
10
10
  json = JSON.parse(json) if json.is_a?(String)
11
11
 
12
12
  self.data = json['data']
13
- self.id = json['id'] || data['id']
14
- self.attributes = format_keys(data['attributes'], key_formatter)
13
+ self.id = json['id'] || data.try(:[], 'id')
14
+ self.attributes = format_keys(data.try(:[], 'attributes'), key_formatter)
15
15
  end
16
16
 
17
17
  private
@@ -1,3 +1,3 @@
1
1
  module SkinnyControllers
2
- VERSION = '0.5.5'
2
+ VERSION = '0.5.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skinny_controllers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - L. Preston Sego III
@@ -227,5 +227,5 @@ rubyforge_project:
227
227
  rubygems_version: 2.4.8
228
228
  signing_key:
229
229
  specification_version: 4
230
- summary: SkinnyControllers-0.5.5
230
+ summary: SkinnyControllers-0.5.6
231
231
  test_files: []