horza 0.3.6 → 0.3.7

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: 3e0c5a3f309830bcdf12d45b896c194edd65564a
4
- data.tar.gz: 0abdd19ad225b57350ef96861620ef52b5977d7b
3
+ metadata.gz: 05dd9c81a7128460e1e4e68fc2a7214e1f8b28eb
4
+ data.tar.gz: 878cfc3f40041b1e01bf468665a0713d938a065c
5
5
  SHA512:
6
- metadata.gz: 96e4b16fb9944e3b4e5ea6bbdf9d0cf90902a59316f35facda683b3831d6e37d9f189121293c922e6a68800910dc7f7df9b00ffe7633ee8faaf9cb6f237580c3
7
- data.tar.gz: 21a843a404376023ed172d82c7d6bc4f0638f599a113b6219e853464656fa3b131a04f33b01ab5455697f7aa632940040093fd2147600e1467b0ae5c5b437122
6
+ metadata.gz: daf5afc2b94e15a5942eae34bf9fb2b2eda269d72af382142d3c6b824b2f2984aa2c1f3d7bd82de616341467ead3b0224b601dec9503cff756bb96cd0ea8d291
7
+ data.tar.gz: 2169c668e3d96fff261200af72127bcd9b145e6490c169bf8542a1b8a97b06a08918f1f53aae560c383380acaa69b468e8a33c7b5bbf5ee1878ee3be8987235e
@@ -75,7 +75,7 @@ module Horza
75
75
  result = walk_family_tree(base, options)
76
76
  return nil unless result
77
77
 
78
- collection?(result) ? entity_class(query(options, result)) : entity_class(result.attributes)
78
+ options.target.to_s.plural? ? entity_class(query(options, result)) : entity_class(result.attributes)
79
79
  end
80
80
  end
81
81
 
@@ -14,7 +14,7 @@ module Horza
14
14
  end
15
15
 
16
16
  def collection_entities
17
- @singles ||= ::Horza.descendants_map(::Horza::Entities::Collection)
17
+ @collections ||= ::Horza.descendants_map(::Horza::Entities::Collection)
18
18
  end
19
19
  end
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: horza
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Blake Turner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-23 00:00:00.000000000 Z
11
+ date: 2015-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie