gorilla-patch 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gorilla-patch/blank.rb +6 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ede789ae045a0cfa8eeaf0847a96d7789c3a5df
4
- data.tar.gz: 0beea969664882f656681213546fe3c08c077b4c
3
+ metadata.gz: d3b8091bbe6834df6e74d2ac117f5e6e154dfb5b
4
+ data.tar.gz: d84a9766821b8cc6361418f816b5318e2f78056b
5
5
  SHA512:
6
- metadata.gz: 959f82186bb78c8acc7e9405ada61957582d25cf62308e7a150d441d1370bb3b88d185ed75488fac0824930bfb8d9e95f727fc4fd7b39a45135600564645c510
7
- data.tar.gz: d58d0ac6dc553543e1a26f7448758e0fd49d0df4be8b1f033a2ac793e54573e0fffc087f10a74aee7dc4356a8e86aa72f9943a9052a35f2a52c95fa5c4c2eaf3
6
+ metadata.gz: a690f35928ec2b5ba83f21635566386fa34ac59a03b41df6987b37ff50cc3925e2331d6dcef35efd043e55135aa0de0820178dc5cdb6faba9b50dcb7a33c2f44
7
+ data.tar.gz: add547da8415514477a1313611d6daefcb149bff5da33b52cc2c490da50c1c142f90fff896bbc54ea67879a985dc60516a48276efa19abfb0930c4f292367b9b
@@ -9,6 +9,12 @@ module GorillaPatch
9
9
  end
10
10
  end
11
11
 
12
+ refine NilClass do
13
+ def blank?
14
+ true
15
+ end
16
+ end
17
+
12
18
  [Array, Hash].each do |klass|
13
19
  refine klass do
14
20
  def reject_blank_strings!
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorilla-patch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-19 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake