horza 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/horza/entities/collection.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82234edb82fd4b50e0a65fa4895ba17aedf8853a
|
4
|
+
data.tar.gz: f8d466c6461c446e37ff84fe5229e8eb9d83914e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a1e84159513ae9aa56a417b505462be83e736e1090565b74426deee7e6fb3c61426eb9fed2a921250c10a1306d950c99c119768848f8cacfc8334b548165403
|
7
|
+
data.tar.gz: 4a98fce473b84a6af169d763ad183ed1c0264b392be0054e94498e0e32243566ed6a060f1f6689f732434a3d7ec42b95109e6b019140b984c2fb010b3c50b71a
|
@@ -15,7 +15,8 @@ module Horza
|
|
15
15
|
if [:length, :size, :empty?, :present?].include? method
|
16
16
|
@collection.send(method)
|
17
17
|
elsif [:first, :last, :pop].include? method
|
18
|
-
|
18
|
+
result = @collection.send(method)
|
19
|
+
singular_entity(result) unless result.nil?
|
19
20
|
elsif [:each, :map, :collect]
|
20
21
|
enum_method(method, &block)
|
21
22
|
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.5.
|
4
|
+
version: 0.5.1
|
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-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|