We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Rubygem
Description: The official Ruby Library for interacting with the Lighthouse API
Homepage: http://lighthouseapp.com/api
Clone URL: git://github.com/Caged/lighthouse-api.git
nicer way of monkeypatching URI with addressable
technoweenie (author)
Sun Nov 30 21:02:37 -0800 2008
commit  781e0981e7e929ca77e87129969f0ab25d7eb760
tree    480adbed77c25fe574d78ece843d58acd9193176
parent  2902b32ee40e86649f06a186c86064e0ef81f3b9
...
3
4
5
6
7
8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
10
11
...
3
4
5
 
 
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -3,9 +3,20 @@ require 'rubygems'
0
 begin
0
   require 'uri'
0
   require 'addressable/uri'
0
- puts "Replacing URI with Addressable::URI"
0
- Addressable::URI::HTTPS = URI::HTTPS
0
- URI = Addressable::URI
0
+
0
+ module URI
0
+ def decode(*args)
0
+ Addressable::URI.decode(*args)
0
+ end
0
+
0
+ def escape(*args)
0
+ Addressable::URI.escape(*args)
0
+ end
0
+
0
+ def parse(*args)
0
+ Addressable::URI.parse(*args)
0
+ end
0
+ end
0
 rescue LoadError
0
   puts "Install the Addressable gem to support accounts with subdomains."
0
   puts "# sudo gem install addressable"

Comments

    No one has commented yet.