jruby-httpclient 1.1.0-java → 1.1.1-java

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -28,8 +28,9 @@ Jeweler::RubygemsDotOrgTasks.new
28
28
 
29
29
  require 'rake/testtask'
30
30
  Rake::TestTask.new(:test) do |test|
31
+ puts Dir.pwd
31
32
  test.libs << 'lib' << 'test'
32
- test.pattern = 'test/**/test_*.rb'
33
+ test.test_files = FileList["#{Dir.pwd}/test/**/test_*.rb"]
33
34
  test.verbose = true
34
35
  end
35
36
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{jruby-httpclient}
8
- s.version = "1.1.0"
7
+ s.name = "jruby-httpclient"
8
+ s.version = "1.1.1"
9
9
  s.platform = Gem::Platform.new([nil, "java", nil])
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.authors = ["Adam Esterline", "Aaron Spiegel"]
13
- s.date = %q{2012-01-01}
14
- s.description = %q{An HTTP client designed for use with JRuby in a threaded environment}
15
- s.email = %q{adam@esterlines.com}
13
+ s.date = "2012-12-20"
14
+ s.description = "An HTTP client designed for use with JRuby in a threaded environment"
15
+ s.email = "adam@esterlines.com"
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc"
@@ -53,11 +53,11 @@ Gem::Specification.new do |s|
53
53
  "vendor/httpcore-4.1.jar",
54
54
  "vendor/httpmime-4.1.1.jar"
55
55
  ]
56
- s.homepage = %q{http://github.com/aesterline/jruby-httpclient}
56
+ s.homepage = "http://github.com/aesterline/jruby-httpclient"
57
57
  s.licenses = ["Apache 2.0"]
58
58
  s.require_paths = ["lib"]
59
- s.rubygems_version = %q{1.5.1}
60
- s.summary = %q{A thin wrapper around the Apache HttpClient}
59
+ s.rubygems_version = "1.8.24"
60
+ s.summary = "A thin wrapper around the Apache HttpClient"
61
61
 
62
62
  if s.respond_to? :specification_version then
63
63
  s.specification_version = 3
@@ -6,8 +6,13 @@ module HTTP
6
6
 
7
7
  def initialize(uri, params = {})
8
8
  @scheme, @host, @port, @path, query = parse_uri(uri)
9
- combined_params = CGI.parse(query || "").merge(params)
10
- @query_params = combined_params.collect { |key, value| BasicNameValuePair.new(key.to_s, value.to_s) }
9
+
10
+ query_string_params = CGI.parse(query || "").collect do |key, value|
11
+ value.collect { |v| BasicNameValuePair.new(key.to_s, v.to_s) }
12
+ end
13
+ post_params = params.collect { |key, value| BasicNameValuePair.new(key.to_s, value.to_s) }
14
+
15
+ @query_params = (query_string_params + post_params).flatten
11
16
 
12
17
  @encoding = "UTF-8"
13
18
  @headers = {}
metadata CHANGED
@@ -1,52 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-httpclient
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease:
5
- version: 1.1.0
6
+ segments:
7
+ - 1
8
+ - 1
9
+ - 1
10
+ version: 1.1.1
6
11
  platform: java
7
12
  authors:
8
- - Adam Esterline
9
- - Aaron Spiegel
13
+ - Adam Esterline
14
+ - Aaron Spiegel
10
15
  autorequire:
11
16
  bindir: bin
12
17
  cert_chain: []
13
18
 
14
- date: 2012-01-01 00:00:00 -07:00
15
- default_executable:
19
+ date: 2012-12-20 00:00:00 Z
16
20
  dependencies:
17
- - !ruby/object:Gem::Dependency
18
- name: bundler
19
- version_requirements: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ~>
23
- - !ruby/object:Gem::Version
24
- version: 1.0.0
25
- requirement: *id001
26
- prerelease: false
27
- type: :development
28
- - !ruby/object:Gem::Dependency
29
- name: jeweler
30
- version_requirements: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ~>
34
- - !ruby/object:Gem::Version
35
- version: 1.6.2
36
- requirement: *id002
37
- prerelease: false
38
- type: :development
39
- - !ruby/object:Gem::Dependency
40
- name: rdoc
41
- version_requirements: &id003 !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: "0"
47
- requirement: *id003
48
- prerelease: false
49
- type: :development
21
+ - !ruby/object:Gem::Dependency
22
+ name: bundler
23
+ prerelease: false
24
+ type: :development
25
+ requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ hash: 23
31
+ segments:
32
+ - 1
33
+ - 0
34
+ - 0
35
+ version: 1.0.0
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: jeweler
39
+ prerelease: false
40
+ type: :development
41
+ requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ hash: 11
47
+ segments:
48
+ - 1
49
+ - 6
50
+ - 2
51
+ version: 1.6.2
52
+ version_requirements: *id002
53
+ - !ruby/object:Gem::Dependency
54
+ name: rdoc
55
+ prerelease: false
56
+ type: :development
57
+ requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ version_requirements: *id003
50
67
  description: An HTTP client designed for use with JRuby in a threaded environment
51
68
  email: adam@esterlines.com
52
69
  executables: []
@@ -54,71 +71,73 @@ executables: []
54
71
  extensions: []
55
72
 
56
73
  extra_rdoc_files:
57
- - LICENSE.txt
58
- - README.rdoc
74
+ - LICENSE.txt
75
+ - README.rdoc
59
76
  files:
60
- - .document
61
- - Gemfile
62
- - Gemfile.lock
63
- - LICENSE.txt
64
- - README.rdoc
65
- - Rakefile
66
- - VERSION
67
- - jruby-httpclient.gemspec
68
- - lib/http_client.rb
69
- - lib/http_client/jruby/client.rb
70
- - lib/http_client/jruby/client_configuration.rb
71
- - lib/http_client/jruby/methods.rb
72
- - lib/http_client/jruby/response.rb
73
- - lib/http_client/mri/client.rb
74
- - lib/http_client/mri/methods.rb
75
- - lib/http_client/mri/response.rb
76
- - lib/http_client/status.rb
77
- - test/helper.rb
78
- - test/http_client/jruby/test_client_configuration.rb
79
- - test/http_client/test_basic_auth.rb
80
- - test/http_client/test_basic_client_operations.rb
81
- - test/http_client/test_client_headers.rb
82
- - test/http_client/test_cookies.rb
83
- - test/http_client/test_redirect.rb
84
- - test/http_client/test_request_body.rb
85
- - test/http_client/test_response.rb
86
- - test/http_client/test_server_headers.rb
87
- - test/http_test_server.rb
88
- - vendor/commons-codec-1.4.jar
89
- - vendor/commons-logging-1.1.1.jar
90
- - vendor/httpclient-4.1.1.jar
91
- - vendor/httpclient-cache-4.1.1.jar
92
- - vendor/httpcore-4.1.jar
93
- - vendor/httpmime-4.1.1.jar
94
- has_rdoc: true
77
+ - .document
78
+ - Gemfile
79
+ - Gemfile.lock
80
+ - LICENSE.txt
81
+ - README.rdoc
82
+ - Rakefile
83
+ - VERSION
84
+ - jruby-httpclient.gemspec
85
+ - lib/http_client.rb
86
+ - lib/http_client/jruby/client.rb
87
+ - lib/http_client/jruby/client_configuration.rb
88
+ - lib/http_client/jruby/methods.rb
89
+ - lib/http_client/jruby/response.rb
90
+ - lib/http_client/mri/client.rb
91
+ - lib/http_client/mri/methods.rb
92
+ - lib/http_client/mri/response.rb
93
+ - lib/http_client/status.rb
94
+ - test/helper.rb
95
+ - test/http_client/jruby/test_client_configuration.rb
96
+ - test/http_client/test_basic_auth.rb
97
+ - test/http_client/test_basic_client_operations.rb
98
+ - test/http_client/test_client_headers.rb
99
+ - test/http_client/test_cookies.rb
100
+ - test/http_client/test_redirect.rb
101
+ - test/http_client/test_request_body.rb
102
+ - test/http_client/test_response.rb
103
+ - test/http_client/test_server_headers.rb
104
+ - test/http_test_server.rb
105
+ - vendor/commons-codec-1.4.jar
106
+ - vendor/commons-logging-1.1.1.jar
107
+ - vendor/httpclient-4.1.1.jar
108
+ - vendor/httpclient-cache-4.1.1.jar
109
+ - vendor/httpcore-4.1.jar
110
+ - vendor/httpmime-4.1.1.jar
95
111
  homepage: http://github.com/aesterline/jruby-httpclient
96
112
  licenses:
97
- - Apache 2.0
113
+ - Apache 2.0
98
114
  post_install_message:
99
115
  rdoc_options: []
100
116
 
101
117
  require_paths:
102
- - lib
118
+ - lib
103
119
  required_ruby_version: !ruby/object:Gem::Requirement
104
120
  none: false
105
121
  requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 2
109
- segments:
110
- - 0
111
- version: "0"
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ hash: 3
125
+ segments:
126
+ - 0
127
+ version: "0"
112
128
  required_rubygems_version: !ruby/object:Gem::Requirement
113
129
  none: false
114
130
  requirements:
115
- - - ">="
116
- - !ruby/object:Gem::Version
117
- version: "0"
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ hash: 3
134
+ segments:
135
+ - 0
136
+ version: "0"
118
137
  requirements: []
119
138
 
120
139
  rubyforge_project:
121
- rubygems_version: 1.5.1
140
+ rubygems_version: 1.8.24
122
141
  signing_key:
123
142
  specification_version: 3
124
143
  summary: A thin wrapper around the Apache HttpClient