file-uri 1.3.0 → 1.3.1

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/file-uri/common.rb +1 -1
  3. metadata +8 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d537ba0d3f1ad8625553e3c475ca2d49f3d270cec59f0974e446f8af67e9db3
4
- data.tar.gz: 30df84986a3f81dd4bb5091540176e613a1bdce9732341990dc9b915328423c3
3
+ metadata.gz: f98d72595db11aacc19b9c3a5fa23de03d54fddd60df57af6f9c445e709a3243
4
+ data.tar.gz: 2031024dde78ffba0caf443ccba7c926dc7ea6fec7aa3b7c1745e80cc04f873a
5
5
  SHA512:
6
- metadata.gz: e556520f46523bbd45c7033b60aac060182bede9dc35daca4f90481a4ff97ec4d76c9d43f40ecbc812e3904ddc0fca8225c93cf2964e7d60e37bdee42505506d
7
- data.tar.gz: 744329508030c1c422be8ecff4b2ff3b1a23320ea6165cc86e4a65f6804210f4fd91ddf5a9b04daecf3fa486326061e2702b3b9c4189bc3caf5a3ad49f2d86a0
6
+ metadata.gz: 9e68f8f743f835c83997d72e512d9112833fa2a9f363dd167c040b51de35e7512e9a2689eb8f8582af824a3314b8a42922f154fdfd9c0437645725bac02895f0
7
+ data.tar.gz: c8e690e793b959be1614304e097c441b8073c43212c8e78f6172d1088ed9b5759cef35e4d228849152e462c8f1f43e8a9401a7abea377de6583a1a80b6430960
@@ -27,7 +27,7 @@ module URI
27
27
  if host && !host.empty?
28
28
  return true if localhost == :any
29
29
  return localhost && (host.downcase == LOCALHOST)
30
- elsif path.start_with? DBL_SLASH
30
+ elsif path && path.start_with?(DBL_SLASH)
31
31
  return false
32
32
  end
33
33
  true
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: file-uri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Kerwin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-07 00:00:00.000000000 Z
11
+ date: 2019-05-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
- == file-uri the "file" URI Scheme
14
+ == file-uri : the "file" URI Scheme
15
15
 
16
16
  Adds explicit handling for 'file' URIs to the 'uri' library.
17
17
 
18
- See the documentation at http://phluid61.github.io/file-uri/
18
+ See the documentation at https://phluid61.github.io/file-uri/
19
19
  email:
20
20
  - matthew@kerwin.net.au
21
21
  executables: []
@@ -27,7 +27,7 @@ files:
27
27
  - lib/file-uri/win.rb
28
28
  - test/test-file-uri.rb
29
29
  - test/test-win-file-uri.rb
30
- homepage: http://phluid61.github.com/file-uri
30
+ homepage: https://phluid61.github.com/file-uri
31
31
  licenses:
32
32
  - ISC
33
33
  metadata: {}
@@ -46,10 +46,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  requirements: []
49
- rubygems_version: 3.0.1
49
+ rubyforge_project:
50
+ rubygems_version: 2.7.6
50
51
  signing_key:
51
52
  specification_version: 4
52
53
  summary: file-uri – the "file" URI Scheme
53
54
  test_files:
54
- - test/test-win-file-uri.rb
55
55
  - test/test-file-uri.rb
56
+ - test/test-win-file-uri.rb