http_request.rb 1.0.5 → 1.0.6

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.
Files changed (4) hide show
  1. data/Changelog +3 -0
  2. data/README.rdoc +1 -1
  3. data/lib/http_request.rb +4 -4
  4. metadata +4 -6
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ v1.0.6
2
+ * bug fixing for the 'attr_accessor :url'
3
+
1
4
  v1.0.5
2
5
  * add 2 options ":xhr" and ":ajax", can send a request looks like AJAX calling.
3
6
 
data/README.rdoc CHANGED
@@ -225,7 +225,7 @@ download multiple files from a directory
225
225
  bug fixing, testing and testing...
226
226
 
227
227
  == LATEST VERSION
228
- 1.0.5
228
+ 1.0.6
229
229
 
230
230
  == Author
231
231
 
data/lib/http_request.rb CHANGED
@@ -11,9 +11,9 @@
11
11
  #
12
12
  # == Version
13
13
  #
14
- # v1.0.5
14
+ # v1.0.6
15
15
  #
16
- # Last Change: 6 July, 2009
16
+ # Last Change: 7 July, 2009
17
17
  #
18
18
  # == Author
19
19
  #
@@ -286,7 +286,7 @@ class HttpRequest
286
286
  # GO !!
287
287
  if @options[:method] =~ /^(get|head|options|delete|move|copy|trace|)$/
288
288
  @options[:parameters] = "?#{@options[:parameters]}" if @options[:parameters]
289
- http.method(@options[:method]).call("#{@uri.path}#{@options[:parameters]}", @headers)
289
+ http.method(@options[:method]).call("#{@uri.path}#{@options[:parameters] unless @options[:parameters].eql?('?')}", @headers)
290
290
  else
291
291
  http.method(@options[:method]).call(@uri.path, @options[:parameters], @headers)
292
292
  end
@@ -298,7 +298,7 @@ end
298
298
  module Net
299
299
  class HTTPResponse
300
300
 
301
- attr :url
301
+ attr_accessor :url
302
302
 
303
303
  # get cookies as a hash
304
304
  def cookies
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_request.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - xianhua.zhou
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-06 00:00:00 +08:00
12
+ date: 2009-07-07 00:00:00 +08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -27,8 +27,6 @@ files:
27
27
  - lib/http_request.rb
28
28
  has_rdoc: true
29
29
  homepage: http://my.cnzxh.net
30
- licenses: []
31
-
32
30
  post_install_message:
33
31
  rdoc_options: []
34
32
 
@@ -49,9 +47,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
47
  requirements: []
50
48
 
51
49
  rubyforge_project: http_request.rb
52
- rubygems_version: 1.3.4
50
+ rubygems_version: 1.3.1
53
51
  signing_key:
54
- specification_version: 3
52
+ specification_version: 2
55
53
  summary: http_request.rb is a small, lightweight, powerful HttpRequest class based on the 'net/http' and 'net/ftp' libraries
56
54
  test_files: []
57
55