rack-client 0.3.1.pre.e → 0.3.1.pre.f
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +0 -22
- data/lib/rack/client/adapter/base.rb +8 -5
- data/lib/rack/client/adapter/base.rbc +149 -190
- data/lib/rack/client/adapter/simple.rbc +238 -108
- data/lib/rack/client/handler/net_http.rb +2 -2
- data/lib/rack/client/handler/typhoeus.rb +10 -2
- data/lib/rack/client/parser/body_collection.rb +1 -1
- data/lib/rack/client/parser/body_collection.rbc +37 -6
- data/lib/rack/client/version.rb +1 -1
- data/lib/rack/client/version.rbc +2 -2
- data/lib/rack/client.rb +2 -1
- data/lib/rack/client.rbc +14 -8
- metadata +4 -4
data/lib/rack/client/version.rbc
CHANGED
data/lib/rack/client.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'forwardable'
|
2
|
+
require 'stringio'
|
2
3
|
require 'uri'
|
3
4
|
require 'rack'
|
4
5
|
|
@@ -12,7 +13,7 @@ module Rack
|
|
12
13
|
end
|
13
14
|
|
14
15
|
def self.new(*a, &block)
|
15
|
-
block ||= lambda { run Rack::Client::Handler::NetHTTP }
|
16
|
+
block ||= lambda {|opt| run Rack::Client::Handler::NetHTTP }
|
16
17
|
Rack::Client::Simple.new(Rack::Builder.app(&block), *a)
|
17
18
|
end
|
18
19
|
end
|
data/lib/rack/client.rbc
CHANGED
@@ -479,6 +479,10 @@ x
|
|
479
479
|
3
|
480
480
|
new
|
481
481
|
i
|
482
|
+
19
|
483
|
+
57
|
484
|
+
19
|
485
|
+
0
|
482
486
|
15
|
483
487
|
5
|
484
488
|
45
|
@@ -496,15 +500,14 @@ i
|
|
496
500
|
1
|
497
501
|
11
|
498
502
|
I
|
499
|
-
|
500
|
-
I
|
501
|
-
0
|
503
|
+
4
|
502
504
|
I
|
503
|
-
|
505
|
+
1
|
504
506
|
I
|
505
|
-
|
507
|
+
1
|
506
508
|
I
|
507
|
-
|
509
|
+
1
|
510
|
+
n
|
508
511
|
p
|
509
512
|
6
|
510
513
|
x
|
@@ -530,12 +533,15 @@ I
|
|
530
533
|
I
|
531
534
|
f
|
532
535
|
I
|
533
|
-
|
536
|
+
13
|
534
537
|
x
|
535
538
|
46
|
536
539
|
/Users/ben/code/rack-client/lib/rack/client.rb
|
537
540
|
p
|
538
|
-
|
541
|
+
1
|
542
|
+
x
|
543
|
+
3
|
544
|
+
opt
|
539
545
|
x
|
540
546
|
6
|
541
547
|
lambda
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1923832057
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
9
|
- 1
|
10
10
|
- pre
|
11
|
-
-
|
12
|
-
version: 0.3.1.pre.
|
11
|
+
- f
|
12
|
+
version: 0.3.1.pre.f
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Tim Carey-Smith
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-12-03 00:00:00 -08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|