http_request.rb 1.1.5 → 1.1.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 -5
  3. data/lib/http_request.rb +4 -4
  4. metadata +9 -4
data/Changelog CHANGED
@@ -1,3 +1,6 @@
1
+ v1.1.6
2
+ * fixed parsing cookies
3
+
1
4
  v1.1.5
2
5
  * use get(url, :parameters => 'a=3') instead of get(:url => url,
3
6
  :parameters => 'a=3'), old style still works.
data/README.rdoc CHANGED
@@ -227,8 +227,4 @@ download multiple files from a directory
227
227
  bug fixing, testing and testing...
228
228
 
229
229
  == LATEST VERSION
230
- 1.1.5
231
-
232
- == Author
233
-
234
- xianhua.zhou<xianhua.zhou at gmail.com>
230
+ 1.1.6
data/lib/http_request.rb CHANGED
@@ -11,9 +11,9 @@
11
11
  #
12
12
  # == Version
13
13
  #
14
- # v1.1.5
14
+ # v1.1.6
15
15
  #
16
- # Last Change: 8 May, 2010
16
+ # Last Change: 4 Aug, 2010
17
17
  #
18
18
  # == Author
19
19
  #
@@ -32,7 +32,7 @@ class HttpRequest
32
32
  include Singleton
33
33
  class << self
34
34
  # version
35
- VERSION = '1.1.5'.freeze
35
+ VERSION = '1.1.6'.freeze
36
36
  def version;VERSION;end
37
37
 
38
38
  # avaiabled http methods
@@ -49,7 +49,7 @@ class HttpRequest
49
49
  # update cookies
50
50
  def update_cookies(response)
51
51
  return unless response.header['set-cookie']
52
- response.header['set-cookie'].each_line {|k|
52
+ response.get_fields('set-cookie').each {|k|
53
53
  k, v = k.split(';')[0].split('=')
54
54
  @@__cookies[k] = v
55
55
  }
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_request.rb
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 31
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 5
9
- version: 1.1.5
9
+ - 6
10
+ version: 1.1.6
10
11
  platform: ruby
11
12
  authors:
12
13
  - xianhua.zhou
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-08 00:00:00 +08:00
18
+ date: 2010-08-04 00:00:00 +08:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -42,23 +43,27 @@ rdoc_options: []
42
43
  require_paths:
43
44
  - lib
44
45
  required_ruby_version: !ruby/object:Gem::Requirement
46
+ none: false
45
47
  requirements:
46
48
  - - ">="
47
49
  - !ruby/object:Gem::Version
50
+ hash: 3
48
51
  segments:
49
52
  - 0
50
53
  version: "0"
51
54
  required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
52
56
  requirements:
53
57
  - - ">="
54
58
  - !ruby/object:Gem::Version
59
+ hash: 3
55
60
  segments:
56
61
  - 0
57
62
  version: "0"
58
63
  requirements: []
59
64
 
60
65
  rubyforge_project: http_request.rb
61
- rubygems_version: 1.3.6
66
+ rubygems_version: 1.3.7
62
67
  signing_key:
63
68
  specification_version: 3
64
69
  summary: http_request.rb is a small, lightweight, powerful HttpRequest class based on the 'net/http' and 'net/ftp' libraries