acts_as_hashable 1.0.4 → 1.0.5

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
  SHA256:
3
- metadata.gz: 34122d00042ad3753c5f5535693e547883977104446605839d6193a45b64f8fb
4
- data.tar.gz: 7f637e61431036291d0c83db0755a2e254e6a08a7847403ae76de976bfebbe88
3
+ metadata.gz: ff6ee1d4bdac43f6841c65d7d4621e9a02dbcfa5abd1284d9f7de45f8da91810
4
+ data.tar.gz: 1677ea47f8beee3825a42c03bf49596e1a803b0940e5c405a254112a07f9b3f1
5
5
  SHA512:
6
- metadata.gz: 9531ba6e0a23cdbdc7e32db6ee2b886e0177ab6b1a5f64b003f343556c1a5fa71b521181f9b7df1eec9175316ccb0931979663f26f0f20fd1df0a231aa1077cf
7
- data.tar.gz: b53371ea96ea5ecc81668be3adf0cb6f9c380d3e82b351a535937174ea150067bcf6a9fa8db5e2663fcc9d0010703e41161b44f112b445aa3af853b1923066f8
6
+ metadata.gz: 3080003d4ee62018ac67e47b5ed03c417526e3ccb3061321cdfbf4b838f4f722ac17b88f9e9496deb810f34b7df05f949b64dfc6de4699b5de2927b14f5c3dc6
7
+ data.tar.gz: 1766f6ab2413d21543762de7768910b51c13b69022fb3b3973405845a8e308f843a7cb8b2c5d82bde14a507c7177ce99b32e2cac05cc519912cbaf66c3477711
@@ -1,3 +1,7 @@
1
+ # 1.0.5 (February 5th, 2019)
2
+
3
+ * Fixed equality bug in array reject block.
4
+
1
5
  # 1.0.4 (January 30th, 2019)
2
6
 
3
7
  Maintenance Release
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts_as_hashable (1.0.4)
4
+ acts_as_hashable (1.0.5)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Acts as Hashable
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/acts_as_hashable.svg)](https://badge.fury.io/rb/acts_as_hashable) [![Build Status](https://travis-ci.org/bluemarblepayroll/acts_as_hashable.svg?branch=master)](https://travis-ci.org/bluemarblepayroll/acts_as_hashable) [![Maintainability](https://api.codeclimate.com/v1/badges/647dac37b9a8177f3d84/maintainability)](https://codeclimate.com/github/bluemarblepayroll/acts_as_hashable/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/647dac37b9a8177f3d84/test_coverage)](https://codeclimate.com/github/bluemarblepayroll/acts_as_hashable/test_coverage)
3
+ [![Gem Version](https://badge.fury.io/rb/acts_as_hashable.svg)](https://badge.fury.io/rb/acts_as_hashable) [![Build Status](https://travis-ci.org/bluemarblepayroll/acts_as_hashable.svg?branch=master)](https://travis-ci.org/bluemarblepayroll/acts_as_hashable) [![Maintainability](https://api.codeclimate.com/v1/badges/647dac37b9a8177f3d84/maintainability)](https://codeclimate.com/github/bluemarblepayroll/acts_as_hashable/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/647dac37b9a8177f3d84/test_coverage)](https://codeclimate.com/github/bluemarblepayroll/acts_as_hashable/test_coverage) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
4
 
5
5
  This is a small library that helps increase the pliability of object constructor signatures.
6
6
  Instead of instantiating via the constructor, this library can install helper factory
@@ -37,7 +37,7 @@ module ActsAsHashable
37
37
  def array(object, nullable: true)
38
38
  objects = object.is_a?(Hash) ? [object] : Array(object)
39
39
 
40
- objects.reject { |o| o == false || o.nil? }
40
+ objects.reject { |o| o.is_a?(FalseClass) || o.nil? }
41
41
  .map { |o| make(o, nullable: nullable) }
42
42
  end
43
43
 
@@ -8,5 +8,5 @@
8
8
  #
9
9
 
10
10
  module ActsAsHashable
11
- VERSION = '1.0.4'
11
+ VERSION = '1.0.5'
12
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_hashable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-04 00:00:00.000000000 Z
11
+ date: 2019-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard-rspec