typero 0.2.2 → 0.2.3

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: 5e53fdd5e7024ca60abd597bdbd8af5905514de5
4
- data.tar.gz: 900c6df136d07645a84eaaf4e05c59bb094eb891
3
+ metadata.gz: 041634ffb9e23cb893ef64b89769a4d7c9a6a991
4
+ data.tar.gz: 71985d6075cda25963f0a55dc15ab8b8017c7a53
5
5
  SHA512:
6
- metadata.gz: 4b919829574fbb83e69f07451337db229ae38eae5ff001824032323f4278f6636efa373cdc607c3b75d72cab0336bb67ddf569a45f24ad527c9b96e36944ff19
7
- data.tar.gz: 6b43c2db3dfbfbabe42428e8ebd240180574f7bb3c61ab7fac9e7713e674df298371512aafb14df677185db356219a2124c9f5fd04eca0b9f5dd0a80b3b3d0fa
6
+ metadata.gz: 9564d4609fb8fd8e2150046fcf63c69409c4870f68298f64800babcd1afaa75c36358984daca317726e0fe40c4e63cb039e34fa27af99a47a99f80ec992f330b
7
+ data.tar.gz: 55891ab5ae341ce5b089e9b0c8b2403d36ef7de8f6a5563f9e56eff51834e996d287644356b0d0788cf460ef0f95031f3152f8b26cec3f686233103b855be779
@@ -44,7 +44,7 @@ module Typero
44
44
  return [] unless opts
45
45
  errors = []
46
46
  for k, v in opts
47
- errors.push [k, v.opts[:req]] if v.opts[:req] && !v.present?(self[k])
47
+ errors.push [k, v.opts[:req]] if v.opts[:req] && self[k].blank?
48
48
  end
49
49
  errors
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module Typero
2
- VERSION = "0.2.2".freeze
2
+ VERSION = "0.2.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: typero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Reic
@@ -32,7 +32,7 @@ files:
32
32
  - "./lib/typero/type/string.rb"
33
33
  - "./lib/typero/type/url.rb"
34
34
  - "./lib/typero/version.rb"
35
- homepage: http://rubygems.org/dux/typero
35
+ homepage: https://github.com/dux/typero
36
36
  licenses:
37
37
  - MIT
38
38
  metadata: {}