Changeset 16100

Show
Ignore:
Timestamp:
07/23/08 00:40:07 (5 years ago)
Author:
drry
Message:
  • fixed the API path in #api.
Location:
lang/ruby/net-irc/trunk/examples
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/net-irc/trunk/examples/iig.rb

    r16095 r16100  
    651651 
    652652                uri = api_base.dup 
    653                 uri.path  = path.sub(%r{^/*}, "/") << ".json" 
     653                uri.path  += "#{path.sub(%r{^/+}, "")}.json" 
    654654                uri.query = q 
    655655 
  • lang/ruby/net-irc/trunk/examples/tig.rb

    r16095 r16100  
    686686 
    687687                uri = api_base.dup 
    688                 uri.path  = path.sub(%r{^/*}, "/") << ".json" 
     688                uri.path  += "#{path.sub(%r{^/+}, "")}.json" 
    689689                uri.query = q 
    690690