validaty 0.0.3 → 0.0.4

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: dd38ce500188e65588670a3a621fbf20d43394084096647dd9d10f4d4ac5fa59
4
- data.tar.gz: 15fc45c052db20824ec3512e45fd88cff47508711b57ddc9e9faddc790a46142
3
+ metadata.gz: 65e36ce029f6e67e16945db50fc428805cae04fa02ddf8e0b84681f1e205dbf1
4
+ data.tar.gz: f111f5e64cf1f3378d10f027f543b9b924bfeb6698186c7c312ca6e81b36d301
5
5
  SHA512:
6
- metadata.gz: d1f7117aeff6951aeff8f5f6975071c4aff263a42e28f43ab64d1166001336cc3e6a8dd3ea6d4572f320fa50cf9f683c49d5c9100146cc638ee3830432340376
7
- data.tar.gz: 8fb94c2f5d212f59635c90d0ef42712977e5075801744d992845c9796430078a6c681af0749b71c91c0af79e86cac724193a0836550a687642e2713bc38bd236
6
+ metadata.gz: 0f5b48d0b03e45217771628c252fe649776c41c77195e9ad031ffbfbfacd578142bfeac1ef05b338a33f5ff43af5186bda61d916d9f55c007f92574fd72fb974
7
+ data.tar.gz: 60b48deb8cda274af36b38f5b0d4222c4645f1ad8e7208aff439795c59ce9a59f75a430f81b65601b01d2fef9205f2217823c807ba449dc42a161f9504317e49
@@ -6,7 +6,7 @@ class UrlValidator < Validaty::AllowBlankBase
6
6
  resource.errors.add(attribute, :domain, domain: options[:domain])
7
7
  end
8
8
 
9
- if options[:starts_with].present? && !value.starts_with?(options[:starts_with])
9
+ if options[:starts_with].present? && !value.to_s.starts_with?(options[:starts_with])
10
10
  resource.errors.add(attribute, :starts_with, start: options[:starts_with])
11
11
  end
12
12
 
@@ -1,3 +1,3 @@
1
1
  module Validaty
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validaty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lavenda Software