absolutize 0.0.6 → 0.0.7

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.
data/README.textile CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- h1. Absolutize v0.0.6
2
+ h1. Absolutize v0.0.7
3
3
 
4
4
  h2. Intro
5
5
 
data/lib/absolutize.rb CHANGED
@@ -40,7 +40,7 @@ class Absolutize
40
40
  end
41
41
 
42
42
  # remove any double slashes in the path
43
- absolute_url.path = absolute_url.path.gsub("//", "/")
43
+ absolute_url.path = absolute_url.path.gsub("//", "/") unless absolute_url.path.nil?
44
44
 
45
45
  absolute_url
46
46
  end
data/lib/absolutize.rb~ CHANGED
@@ -40,7 +40,7 @@ class Absolutize
40
40
  end
41
41
 
42
42
  # remove any double slashes in the path
43
- absolute_url.path = absolute_url.path.gsub("//", "/")
43
+ absolute_url.path = absolute_url.path.gsub("//", "/") unless absolute_url.path.nil?
44
44
 
45
45
  absolute_url
46
46
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: absolutize
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stewart McKee
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-05 00:00:00 +01:00
18
+ date: 2010-08-06 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21