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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55a7599182a806b1f6ba4fe9e3ced1cec5a182d6
4
- data.tar.gz: f2febdf072c6c5fe5ed7c60746b9492021a3b85b
3
+ metadata.gz: e2f24b722e790d48ad428b1d8249bc7782770a38
4
+ data.tar.gz: a63f7504960fede22e2d179a9dddab4e35cf30e3
5
5
  SHA512:
6
- metadata.gz: e252ae11f1ed403b7fd2e8d97cf93912eb8e6eb621be5ba58379873e7d5de5f4a1f41d36497855293d25263d4364f5ba6d11bd5730498d3cb6b7e9f10acf3bd7
7
- data.tar.gz: 5cab41a14dffcdcbcd50832a02fa6f86bd9ae1816f2ec0ced5ad4285e0b733902f70a5b0c6c4ae492921f0ae103ec10c5ee00b25b20dd48b6030e5266820cd1c
6
+ metadata.gz: 152ed2ee4b0e25d6425e58a7e802389a98b2eadd10b511c81fa02c8e164d212553eb2eccd71e0dbbd39d58dd3807a7e7f9501c5fbb82ea9e7d3f4877349521cc
7
+ data.tar.gz: 2e96898b898c4c7f675dc81577cf81ae0b22910278ac036088a5db86f4d0b3f5ce05001c0a59c38c01a4337c1fb1f143df24398e9c34f2beef52154765062777
@@ -0,0 +1,4 @@
1
+ pl:
2
+ errors:
3
+ messages:
4
+ url: nie jest poprawnym adresem URL.
@@ -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
- uri = URI.parse(URI.escape(value))
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.6
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 00:00:00.000000000 Z
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