mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* lib/optparse/uri.rb: require standard uri module. thanks to
Minero Aoki. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									30bc60cfe4
								
							
						
					
					
						commit
						0a85c65859
					
				
					 2 changed files with 8 additions and 12 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| Wed Aug  7 09:45:24 2002  Nobuyoshi Nakada  <nobu.nokada@softhome.net> | ||||
| 
 | ||||
| 	* lib/optparse/uri.rb: require standard uri module.  thanks to | ||||
| 	  Minero Aoki. | ||||
| 
 | ||||
| Wed Aug  7 08:44:32 2002  Minero Aoki  <aamine@loveruby.net> | ||||
| 
 | ||||
| 	* ext/racc/cparse/cparse.c: reduce goto. | ||||
|  |  | |||
|  | @ -1,15 +1,6 @@ | |||
| # -*- ruby -*- | ||||
| 
 | ||||
| require 'optparse' | ||||
| unless defined?(URI) | ||||
|   begin | ||||
|     require 'URI/uri'		# Akira Yamada version. | ||||
|   rescue LoadError | ||||
|     require 'uri/uri'		# Tomoyuki Kosimizu version. | ||||
|   end | ||||
| end | ||||
| if URI.respond_to?(:parse) | ||||
|   OptionParser.accept(URI) {|s| [URI.parse(s)] if s} | ||||
| else | ||||
|   OptionParser.accept(URI) {|s| [URI.create(s)] if s} | ||||
| end | ||||
| require 'uri' | ||||
| 
 | ||||
| OptionParser.accept(URI) {|s| [URI.parse(s)] if s} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu