public
Rubygem
Description: Makes http fun! Also, makes consuming restful web services dead easy.
Homepage:
Clone URL: git://github.com/jnunemaker/httparty.git
Click here to lend your support to: httparty and make a donation at www.pledgie.com !
nodoc'd some stuff
jnunemaker (author)
Wed Jul 30 21:30:52 -0700 2008
commit  b3094fc1bbb9adc32d73957ec4bf4518c862777f
tree    5a15224c6f31d462ba6e9d9ab540a0af5a8b3849
parent  3a9b0b1b390408b16a3a2ff9b8086d774e97f0ba
...
78
79
80
81
 
82
83
84
...
94
95
96
97
 
98
99
100
...
119
120
121
122
 
123
124
125
...
132
133
134
135
 
136
137
138
...
140
141
142
143
 
144
145
146
...
78
79
80
 
81
82
83
84
...
94
95
96
 
97
98
99
100
...
119
120
121
 
122
123
124
125
...
132
133
134
 
135
136
137
138
...
140
141
142
 
143
144
145
146
0
@@ -78,7 +78,7 @@ module HTTParty
0
     end
0
     
0
     private
0
-      def http(uri)
0
+      def http(uri) #:nodoc:
0
         if @http.blank?
0
           @http = Net::HTTP.new(uri.host, uri.port)
0
           @http.use_ssl = (uri.port == 443)
0
@@ -94,7 +94,7 @@ module HTTParty
0
       #   body        => hash of keys/values or a query string (foo=bar&baz=poo)
0
       #   headers     => hash of headers to send request with
0
       #   basic_auth  => :username and :password to use as basic http authentication (overrides @auth class instance variable)
0
-      def send_request(method, path, options={})
0
+      def send_request(method, path, options={}) #:nodoc:
0
         raise ArgumentError, 'only get, post, put and delete methods are supported' unless %w[get post put delete].include?(method.to_s)
0
         raise ArgumentError, ':headers must be a hash' if options[:headers] && !options[:headers].is_a?(Hash)
0
         raise ArgumentError, ':basic_auth must be a hash' if options[:basic_auth] && !options[:basic_auth].is_a?(Hash)
0
@@ -119,7 +119,7 @@ module HTTParty
0
         parse_response(response.body)
0
       end
0
       
0
-      def parse_response(body)
0
+      def parse_response(body) #:nodoc:
0
         case @format
0
         when 'xml'
0
           Hash.from_xml(body)
0
@@ -132,7 +132,7 @@ module HTTParty
0
       end
0
     
0
       # Makes it so uri is sure to parse stuff like google.com with the http
0
-      def normalize_base_uri(str)
0
+      def normalize_base_uri(str) #:nodoc:
0
         str =~ /^https?:\/\// ? str : "http#{'s' if str.include?(':443')}://#{str}"
0
       end
0
       
0
@@ -140,7 +140,7 @@ module HTTParty
0
       # Just does simple pattern matching on file extention:
0
       #   /foobar.xml => 'xml'
0
       #   /foobar.json => 'json'
0
-      def format_from_path(path)
0
+      def format_from_path(path) #:nodoc:
0
         ext = File.extname(path)[1..-1]
0
         !ext.blank? && AllowedFormats.include?(ext) ? ext : nil
0
       end
...
14
15
16
17
 
...
14
15
16
 
17
0
@@ -14,4 +14,4 @@ task :website_upload do
0
 end
0
 
0
 desc 'Generate and upload website files'
0
-task :website => [:website_generate, :website_upload, :publish_docs]
0
+task :website => [:website_upload, :publish_docs]

Comments