conversocial 0.1.5 → 0.1.6

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
2
  SHA1:
3
- metadata.gz: 7657ce29c4f21a315a2f78068efbf2fbbe3b96f7
4
- data.tar.gz: d5a4045ccf70b6852a7666548076024bdb8bbc8a
3
+ metadata.gz: 71ebb3c5bca00bfc41f2110905d87609297146d0
4
+ data.tar.gz: bab8e4fd2d7e16adedef1d57d9afda6975e1b4cd
5
5
  SHA512:
6
- metadata.gz: 3dde988aab662b12c9081ea9210cbb8e9e765dfe8bb03f314979bbde1b6937115b185115581b153271a221062d3938567810bf271a45c389d732612f38417481
7
- data.tar.gz: 40bcc015fa0666f6e2aea2ade329a3822f351fa0829a347358b606d8499ba4baaea85332977324f57b1c11e4ef4a1e9525da76b4acd8405889201518e8932243
6
+ metadata.gz: 18fb460e2d4c8732f125da04e0707244190e87d669cdac48ecbd34b28df48c4e9ac28de4bbb81d47cdcf22994fc220d4721db3d3fdf3364e06d154e6faa2ec0d
7
+ data.tar.gz: b46339d9199763a9bf0467fdfb9e07954c75786b3adb54b4cb7b739aa1d5c2cf1bae0fe59882d06877610b1d972fd719651d6109f268d370d6ab9a7f317f506d
@@ -139,8 +139,8 @@ module Conversocial
139
139
  end
140
140
 
141
141
  def association_attribute? attribute_value
142
- attribute_value.kind_of?(Hash) && attribute_value.keys.sort == %w{id url}
143
- end
142
+ attribute_value.kind_of?(Hash) && (attribute_value.keys.sort == %w{id url} || attribute_value.keys.sort == %w{id name url})
143
+ end
144
144
 
145
145
  def pluralized_resource_type_from_association_attribute attribute_value
146
146
  attribute_value['url'].split('v1.1/').last.split('/').first
@@ -1,3 +1,3 @@
1
1
  module Conversocial
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conversocial
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Misha Conway
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler