simple_validate 2.0.1 → 2.0.2

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
  SHA256:
3
- metadata.gz: 215eb056ff7677f32a10c721a53879a52cf3c08f2b8567ba63b86a6aff81d544
4
- data.tar.gz: 4340fa2cfb67c41853f9e5aa4f2d6d1ff8303916d648916bceb799503461dc59
3
+ metadata.gz: 633fbb10accca5c33bc717619ef5392f40f53ffea6ccf4dc9e62fa19f934287c
4
+ data.tar.gz: 3a93d9d8e9e9fb896dd150f7137893694339c005b87953f5c2c5d6b6e5f03a90
5
5
  SHA512:
6
- metadata.gz: a0a854c7b4fd9005eb7e86b035aa585c709d25d33c2b784948ab9d824804c0fdffb04b6e29703bd330f69037d8f9043edf168ca6ede3055a91da5a543ff44db7
7
- data.tar.gz: 67c997ae9cc465d5b54e68b11b5c8438d04cc6b138c981953958c7b8761ba77c472f4a09d9af6a1178ba96271ba2bb8b0bb9cdf81d968b17594f61998a20f68f
6
+ metadata.gz: '070947710fb4ceecf88974d5126073b8f02b37af1cd185d02e6019281934836655733b6f622bc2ac47f4dba8f5c68eac1c8f8ba4d27f0f31f25d6a01234bc35c'
7
+ data.tar.gz: 81ecd04c13e0ef128b16aa7fbce0c845e86dabcc259f9c61f5ad066058359c5a6ca4867360cfa9e65d86ab699975a1554c01fad7ad31970278ca2ea51a7c7285
data/.rspec_status CHANGED
@@ -1,5 +1,8 @@
1
1
  example_id | status | run_time |
2
2
  ------------------------------------- | ------ | --------------- |
3
3
  ./spec/simple_validate_spec.rb[1:1:1] | passed | 0.00127 seconds |
4
- ./spec/simple_validate_spec.rb[1:2:1] | passed | 0.0001 seconds |
5
- ./spec/simple_validate_spec.rb[1:3:1] | passed | 0.00106 seconds |
4
+ ./spec/simple_validate_spec.rb[1:2:1] | passed | 0.00012 seconds |
5
+ ./spec/simple_validate_spec.rb[1:3:1] | passed | 0.00104 seconds |
6
+ ./spec/simple_validate_spec.rb[1:4:1] | passed | 0.00009 seconds |
7
+ ./spec/simple_validate_spec.rb[1:5:1] | passed | 0.00006 seconds |
8
+ ./spec/simple_validate_spec.rb[1:6:1] | passed | 0.00005 seconds |
@@ -53,7 +53,7 @@ module SimpleValidate
53
53
  raise InvalidLengthOption, "Invalid length option given #{options.keys}"
54
54
  end
55
55
 
56
- actual_length = instance.send(attribute).length
56
+ actual_length = instance.send(attribute)&.length
57
57
  valid_length?(actual_length)
58
58
  end
59
59
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SimpleValidate
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_validate
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Palaniuk