validate_url 1.0.6 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/locale/pl.yml +4 -0
- data/lib/validate_url.rb +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2f24b722e790d48ad428b1d8249bc7782770a38
|
4
|
+
data.tar.gz: a63f7504960fede22e2d179a9dddab4e35cf30e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 152ed2ee4b0e25d6425e58a7e802389a98b2eadd10b511c81fa02c8e164d212553eb2eccd71e0dbbd39d58dd3807a7e7f9501c5fbb82ea9e7d3f4877349521cc
|
7
|
+
data.tar.gz: 2e96898b898c4c7f675dc81577cf81ae0b22910278ac036088a5db86f4d0b3f5ce05001c0a59c38c01a4337c1fb1f143df24398e9c34f2beef52154765062777
|
data/lib/locale/pl.yml
ADDED
data/lib/validate_url.rb
CHANGED
@@ -20,7 +20,8 @@ module ActiveModel
|
|
20
20
|
def validate_each(record, attribute, value)
|
21
21
|
schemes = [*options.fetch(:schemes)].map(&:to_s)
|
22
22
|
begin
|
23
|
-
|
23
|
+
escaped_uri = value ? URI.escape(value) : nil
|
24
|
+
uri = URI.parse(escaped_uri)
|
24
25
|
host = uri && uri.host
|
25
26
|
scheme = uri && uri.scheme
|
26
27
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: validate_url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tanel Suurhans
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2019-03
|
13
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: jeweler
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- lib/locale/it.yml
|
132
132
|
- lib/locale/ja.yml
|
133
133
|
- lib/locale/km.yml
|
134
|
+
- lib/locale/pl.yml
|
134
135
|
- lib/locale/pt-BR.yml
|
135
136
|
- lib/locale/ro.yml
|
136
137
|
- lib/locale/ru.yml
|