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 +2 -1
- data/VERSION +1 -1
- data/jruby-httpclient.gemspec +8 -8
- data/lib/http_client/jruby/methods.rb +7 -2
- metadata +106 -87
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.
|
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.
|
1
|
+
1.1.1
|
data/jruby-httpclient.gemspec
CHANGED
@@ -4,15 +4,15 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "1.1.
|
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 =
|
14
|
-
s.description =
|
15
|
-
s.email =
|
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 =
|
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 =
|
60
|
-
s.summary =
|
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
|
-
|
10
|
-
|
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
|
-
|
6
|
+
segments:
|
7
|
+
- 1
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 1.1.1
|
6
11
|
platform: java
|
7
12
|
authors:
|
8
|
-
|
9
|
-
|
13
|
+
- Adam Esterline
|
14
|
+
- Aaron Spiegel
|
10
15
|
autorequire:
|
11
16
|
bindir: bin
|
12
17
|
cert_chain: []
|
13
18
|
|
14
|
-
date: 2012-
|
15
|
-
default_executable:
|
19
|
+
date: 2012-12-20 00:00:00 Z
|
16
20
|
dependencies:
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
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
|
-
|
58
|
-
|
74
|
+
- LICENSE.txt
|
75
|
+
- README.rdoc
|
59
76
|
files:
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
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
|
-
|
113
|
+
- Apache 2.0
|
98
114
|
post_install_message:
|
99
115
|
rdoc_options: []
|
100
116
|
|
101
117
|
require_paths:
|
102
|
-
|
118
|
+
- lib
|
103
119
|
required_ruby_version: !ruby/object:Gem::Requirement
|
104
120
|
none: false
|
105
121
|
requirements:
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
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
|
-
|
117
|
-
|
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.
|
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
|