validate_url 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/validate_url.rb +1 -1
  3. metadata +38 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f28fe4da1f93c77418d9d1cd6ea529c7975a439
4
- data.tar.gz: c8495b475e179bd8d789739d025b2ff5d90aacbe
3
+ metadata.gz: 9066c0cb3e834d5b0e96e2139ec361c77cfe2773
4
+ data.tar.gz: ab77b9972c3ba2bc84cefcace5555e1e64ca8b5e
5
5
  SHA512:
6
- metadata.gz: 38e4768c27ddb7685d8525b2ab3a4d92ac9dc5bde8d2e24c1db9dc1b8faea9a35729f098b26eb5b2c2e69f1db44ae1de8418756148e633a0956caea3b16a6c92
7
- data.tar.gz: 98b31de14eaa003131f459039c90258e4649b7f10d6a7b8754a5ff8b14524767da6ba77a85f55a5d12c9cb8dc994158dcf5a0ec6e8245472e2071ee6b1ca924b
6
+ metadata.gz: 48d108e119a6b7e2bb4d3e59cf42bf77a8899d44219be838b63bef239e91ce0eee2ea01c68af9ce9b0889d237fa7cbc511a1bb6128a8297d5b9280d44ed2c41e
7
+ data.tar.gz: 0b10e61df4800b2b46120cc3aef7eafa37fc5fe1ca1aaeefdef560c8b9cd9edbd4e048ce1335083dd0e5fb208dd14be9780c78d03bac4ab04c673dbb9dfd1b67
@@ -20,7 +20,7 @@ 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(value)
23
+ uri = URI.parse(URI.escape(value))
24
24
  host = uri && uri.host
25
25
  scheme = uri && uri.scheme
26
26
 
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
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanel Suurhans
@@ -10,16 +10,16 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-03-01 00:00:00.000000000 Z
13
+ date: 2019-03-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: jeweler
16
+ name: validate_url
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
19
  - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
- type: :development
22
+ type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
@@ -27,7 +27,7 @@ dependencies:
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
- name: sqlite3
30
+ name: jeweler
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - ">="
@@ -41,7 +41,7 @@ dependencies:
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
- name: activerecord
44
+ name: sqlite3
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
@@ -55,19 +55,19 @@ dependencies:
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
- name: activemodel
58
+ name: activerecord
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
62
62
  - !ruby/object:Gem::Version
63
- version: 3.0.0
64
- type: :runtime
63
+ version: '0'
64
+ type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- version: 3.0.0
70
+ version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: rspec
73
73
  requirement: !ruby/object:Gem::Requirement
@@ -96,6 +96,34 @@ dependencies:
96
96
  - - ">="
97
97
  - !ruby/object:Gem::Version
98
98
  version: 1.1.2
99
+ - !ruby/object:Gem::Dependency
100
+ name: activemodel
101
+ requirement: !ruby/object:Gem::Requirement
102
+ requirements:
103
+ - - ">="
104
+ - !ruby/object:Gem::Version
105
+ version: 3.0.0
106
+ type: :runtime
107
+ prerelease: false
108
+ version_requirements: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 3.0.0
113
+ - !ruby/object:Gem::Dependency
114
+ name: public_suffix
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: '0'
120
+ type: :runtime
121
+ prerelease: false
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: '0'
99
127
  description: Library for validating urls in Rails.
100
128
  email:
101
129
  - tanel.suurhans@perfectline.co