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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17772e0cbf9e727f3f7faa1cb164fde24a25d962
4
- data.tar.gz: 54b00c21a99e3b706c4d3154a35bea05f4b8e8f7
3
+ metadata.gz: 82234edb82fd4b50e0a65fa4895ba17aedf8853a
4
+ data.tar.gz: f8d466c6461c446e37ff84fe5229e8eb9d83914e
5
5
  SHA512:
6
- metadata.gz: 85558cd6b04bb398969a19b635df243401246ea8ce5a05b72f08bd4fd9995636a5eed3e33bb8b7c2b249803e0e9863cb8b95e15601c5f472acb85b432f0cc3f4
7
- data.tar.gz: d734305118e77162d4122696df034cf9cf29394d11a49eea3ed251c44e4d9af85bc9fe1e7adf64258e563463018f7f00651efe1a544515a58503483984b93847
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
- singular_entity(@collection.send(method))
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie