rack-client 0.3.1.pre.f → 0.3.1.pre.g
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/client.rbc +51 -35
- data/lib/rack/client/adapter/simple.rb +36 -2
- data/lib/rack/client/adapter/simple.rbc +904 -208
- data/lib/rack/client/handler/em-http.rb +3 -0
- data/lib/rack/client/handler/excon.rbc +9 -5
- data/lib/rack/client/handler/net_http.rbc +11 -11
- data/lib/rack/client/handler/typhoeus.rbc +216 -35
- data/lib/rack/client/middleware/auth/basic.rb +7 -3
- data/lib/rack/client/middleware/cache/options.rbc +27 -26
- data/lib/rack/client/parser/json.rb +1 -1
- data/lib/rack/client/version.rb +1 -1
- data/lib/rack/client/version.rbc +1 -1
- metadata +4 -4
@@ -386,7 +386,7 @@ raise
|
|
386
386
|
p
|
387
387
|
5
|
388
388
|
I
|
389
|
-
|
389
|
+
-1
|
390
390
|
I
|
391
391
|
9
|
392
392
|
I
|
@@ -730,9 +730,9 @@ x
|
|
730
730
|
6
|
731
731
|
finish
|
732
732
|
p
|
733
|
-
|
733
|
+
39
|
734
734
|
I
|
735
|
-
|
735
|
+
-1
|
736
736
|
I
|
737
737
|
d
|
738
738
|
I
|
@@ -800,6 +800,10 @@ c2
|
|
800
800
|
I
|
801
801
|
1a
|
802
802
|
I
|
803
|
+
c6
|
804
|
+
I
|
805
|
+
17
|
806
|
+
I
|
803
807
|
c9
|
804
808
|
I
|
805
809
|
1c
|
@@ -1049,7 +1053,7 @@ n
|
|
1049
1053
|
p
|
1050
1054
|
7
|
1051
1055
|
I
|
1052
|
-
|
1056
|
+
-1
|
1053
1057
|
I
|
1054
1058
|
1f
|
1055
1059
|
I
|
@@ -1151,7 +1155,7 @@ initialize
|
|
1151
1155
|
p
|
1152
1156
|
5
|
1153
1157
|
I
|
1154
|
-
|
1158
|
+
-1
|
1155
1159
|
I
|
1156
1160
|
24
|
1157
1161
|
I
|
@@ -671,7 +671,7 @@ finish
|
|
671
671
|
p
|
672
672
|
9
|
673
673
|
I
|
674
|
-
|
674
|
+
-1
|
675
675
|
I
|
676
676
|
f
|
677
677
|
I
|
@@ -890,7 +890,7 @@ request
|
|
890
890
|
p
|
891
891
|
7
|
892
892
|
I
|
893
|
-
|
893
|
+
-1
|
894
894
|
I
|
895
895
|
16
|
896
896
|
I
|
@@ -1091,7 +1091,7 @@ start
|
|
1091
1091
|
p
|
1092
1092
|
17
|
1093
1093
|
I
|
1094
|
-
|
1094
|
+
-1
|
1095
1095
|
I
|
1096
1096
|
1e
|
1097
1097
|
I
|
@@ -1384,8 +1384,8 @@ x
|
|
1384
1384
|
8
|
1385
1385
|
allocate
|
1386
1386
|
x
|
1387
|
-
|
1388
|
-
|
1387
|
+
8
|
1388
|
+
fullpath
|
1389
1389
|
x
|
1390
1390
|
7
|
1391
1391
|
Headers
|
@@ -1406,7 +1406,7 @@ n
|
|
1406
1406
|
p
|
1407
1407
|
19
|
1408
1408
|
I
|
1409
|
-
|
1409
|
+
-1
|
1410
1410
|
I
|
1411
1411
|
2a
|
1412
1412
|
I
|
@@ -1600,7 +1600,7 @@ n
|
|
1600
1600
|
p
|
1601
1601
|
15
|
1602
1602
|
I
|
1603
|
-
|
1603
|
+
-1
|
1604
1604
|
I
|
1605
1605
|
36
|
1606
1606
|
I
|
@@ -1820,7 +1820,7 @@ parse_headers
|
|
1820
1820
|
p
|
1821
1821
|
7
|
1822
1822
|
I
|
1823
|
-
|
1823
|
+
-1
|
1824
1824
|
I
|
1825
1825
|
3f
|
1826
1826
|
I
|
@@ -1984,7 +1984,7 @@ new
|
|
1984
1984
|
p
|
1985
1985
|
5
|
1986
1986
|
I
|
1987
|
-
|
1987
|
+
-1
|
1988
1988
|
I
|
1989
1989
|
44
|
1990
1990
|
I
|
@@ -2180,7 +2180,7 @@ to_http
|
|
2180
2180
|
p
|
2181
2181
|
9
|
2182
2182
|
I
|
2183
|
-
|
2183
|
+
-1
|
2184
2184
|
I
|
2185
2185
|
48
|
2186
2186
|
I
|
@@ -2259,7 +2259,7 @@ new_from_literal
|
|
2259
2259
|
p
|
2260
2260
|
5
|
2261
2261
|
I
|
2262
|
-
|
2262
|
+
-1
|
2263
2263
|
I
|
2264
2264
|
52
|
2265
2265
|
I
|
@@ -253,7 +253,7 @@ x
|
|
253
253
|
8
|
254
254
|
Typhoeus
|
255
255
|
i
|
256
|
-
|
256
|
+
169
|
257
257
|
5
|
258
258
|
66
|
259
259
|
5
|
@@ -394,6 +394,34 @@ i
|
|
394
394
|
49
|
395
395
|
8
|
396
396
|
4
|
397
|
+
15
|
398
|
+
99
|
399
|
+
7
|
400
|
+
25
|
401
|
+
7
|
402
|
+
26
|
403
|
+
65
|
404
|
+
67
|
405
|
+
49
|
406
|
+
7
|
407
|
+
0
|
408
|
+
49
|
409
|
+
8
|
410
|
+
4
|
411
|
+
15
|
412
|
+
99
|
413
|
+
7
|
414
|
+
27
|
415
|
+
7
|
416
|
+
28
|
417
|
+
65
|
418
|
+
67
|
419
|
+
49
|
420
|
+
7
|
421
|
+
0
|
422
|
+
49
|
423
|
+
8
|
424
|
+
4
|
397
425
|
11
|
398
426
|
I
|
399
427
|
5
|
@@ -405,7 +433,7 @@ I
|
|
405
433
|
0
|
406
434
|
n
|
407
435
|
p
|
408
|
-
|
436
|
+
29
|
409
437
|
x
|
410
438
|
4
|
411
439
|
Rack
|
@@ -501,7 +529,7 @@ x
|
|
501
529
|
p
|
502
530
|
5
|
503
531
|
I
|
504
|
-
|
532
|
+
-1
|
505
533
|
I
|
506
534
|
9
|
507
535
|
I
|
@@ -705,7 +733,7 @@ queue
|
|
705
733
|
p
|
706
734
|
11
|
707
735
|
I
|
708
|
-
|
736
|
+
-1
|
709
737
|
I
|
710
738
|
d
|
711
739
|
I
|
@@ -840,7 +868,7 @@ finish
|
|
840
868
|
p
|
841
869
|
7
|
842
870
|
I
|
843
|
-
|
871
|
+
-1
|
844
872
|
I
|
845
873
|
19
|
846
874
|
I
|
@@ -1047,7 +1075,7 @@ to_http
|
|
1047
1075
|
p
|
1048
1076
|
7
|
1049
1077
|
I
|
1050
|
-
|
1078
|
+
-1
|
1051
1079
|
I
|
1052
1080
|
1f
|
1053
1081
|
I
|
@@ -1178,7 +1206,7 @@ initialize
|
|
1178
1206
|
p
|
1179
1207
|
5
|
1180
1208
|
I
|
1181
|
-
|
1209
|
+
-1
|
1182
1210
|
I
|
1183
1211
|
24
|
1184
1212
|
I
|
@@ -1348,7 +1376,7 @@ initialize
|
|
1348
1376
|
p
|
1349
1377
|
9
|
1350
1378
|
I
|
1351
|
-
|
1379
|
+
-1
|
1352
1380
|
I
|
1353
1381
|
28
|
1354
1382
|
I
|
@@ -1387,17 +1415,19 @@ x
|
|
1387
1415
|
7
|
1388
1416
|
process
|
1389
1417
|
i
|
1390
|
-
|
1418
|
+
26
|
1391
1419
|
44
|
1392
1420
|
43
|
1393
1421
|
0
|
1394
1422
|
43
|
1395
1423
|
1
|
1424
|
+
5
|
1396
1425
|
20
|
1397
1426
|
0
|
1427
|
+
47
|
1398
1428
|
49
|
1399
1429
|
2
|
1400
|
-
|
1430
|
+
1
|
1401
1431
|
49
|
1402
1432
|
3
|
1403
1433
|
0
|
@@ -1430,8 +1460,8 @@ x
|
|
1430
1460
|
7
|
1431
1461
|
Request
|
1432
1462
|
x
|
1433
|
-
|
1434
|
-
|
1463
|
+
7
|
1464
|
+
url_for
|
1435
1465
|
x
|
1436
1466
|
4
|
1437
1467
|
to_s
|
@@ -1444,7 +1474,7 @@ run
|
|
1444
1474
|
p
|
1445
1475
|
5
|
1446
1476
|
I
|
1447
|
-
|
1477
|
+
-1
|
1448
1478
|
I
|
1449
1479
|
2f
|
1450
1480
|
I
|
@@ -1452,7 +1482,77 @@ I
|
|
1452
1482
|
I
|
1453
1483
|
30
|
1454
1484
|
I
|
1455
|
-
|
1485
|
+
1a
|
1486
|
+
x
|
1487
|
+
63
|
1488
|
+
/Users/ben/code/rack-client/lib/rack/client/handler/typhoeus.rb
|
1489
|
+
p
|
1490
|
+
1
|
1491
|
+
x
|
1492
|
+
12
|
1493
|
+
rack_request
|
1494
|
+
x
|
1495
|
+
7
|
1496
|
+
url_for
|
1497
|
+
M
|
1498
|
+
1
|
1499
|
+
n
|
1500
|
+
n
|
1501
|
+
x
|
1502
|
+
7
|
1503
|
+
url_for
|
1504
|
+
i
|
1505
|
+
15
|
1506
|
+
20
|
1507
|
+
0
|
1508
|
+
49
|
1509
|
+
0
|
1510
|
+
0
|
1511
|
+
7
|
1512
|
+
1
|
1513
|
+
64
|
1514
|
+
49
|
1515
|
+
2
|
1516
|
+
1
|
1517
|
+
49
|
1518
|
+
3
|
1519
|
+
0
|
1520
|
+
11
|
1521
|
+
I
|
1522
|
+
3
|
1523
|
+
I
|
1524
|
+
1
|
1525
|
+
I
|
1526
|
+
1
|
1527
|
+
I
|
1528
|
+
1
|
1529
|
+
n
|
1530
|
+
p
|
1531
|
+
4
|
1532
|
+
x
|
1533
|
+
3
|
1534
|
+
url
|
1535
|
+
s
|
1536
|
+
1
|
1537
|
+
?
|
1538
|
+
x
|
1539
|
+
5
|
1540
|
+
split
|
1541
|
+
x
|
1542
|
+
5
|
1543
|
+
first
|
1544
|
+
p
|
1545
|
+
5
|
1546
|
+
I
|
1547
|
+
-1
|
1548
|
+
I
|
1549
|
+
33
|
1550
|
+
I
|
1551
|
+
0
|
1552
|
+
I
|
1553
|
+
34
|
1554
|
+
I
|
1555
|
+
f
|
1456
1556
|
x
|
1457
1557
|
63
|
1458
1558
|
/Users/ben/code/rack-client/lib/rack/client/handler/typhoeus.rb
|
@@ -1523,12 +1623,12 @@ i
|
|
1523
1623
|
13
|
1524
1624
|
7
|
1525
1625
|
13
|
1526
|
-
|
1527
|
-
|
1626
|
+
5
|
1627
|
+
20
|
1528
1628
|
0
|
1529
|
-
|
1629
|
+
47
|
1530
1630
|
49
|
1531
|
-
|
1631
|
+
14
|
1532
1632
|
1
|
1533
1633
|
49
|
1534
1634
|
6
|
@@ -1539,10 +1639,10 @@ i
|
|
1539
1639
|
0
|
1540
1640
|
47
|
1541
1641
|
49
|
1542
|
-
|
1642
|
+
15
|
1543
1643
|
1
|
1544
1644
|
49
|
1545
|
-
|
1645
|
+
16
|
1546
1646
|
1
|
1547
1647
|
11
|
1548
1648
|
I
|
@@ -1555,7 +1655,7 @@ I
|
|
1555
1655
|
1
|
1556
1656
|
n
|
1557
1657
|
p
|
1558
|
-
|
1658
|
+
17
|
1559
1659
|
x
|
1560
1660
|
4
|
1561
1661
|
Hash
|
@@ -1597,6 +1697,9 @@ x
|
|
1597
1697
|
6
|
1598
1698
|
params
|
1599
1699
|
x
|
1700
|
+
16
|
1701
|
+
query_params_for
|
1702
|
+
x
|
1600
1703
|
15
|
1601
1704
|
body_params_for
|
1602
1705
|
x
|
@@ -1605,29 +1708,29 @@ merge
|
|
1605
1708
|
p
|
1606
1709
|
13
|
1607
1710
|
I
|
1608
|
-
|
1711
|
+
-1
|
1609
1712
|
I
|
1610
|
-
|
1713
|
+
37
|
1611
1714
|
I
|
1612
1715
|
0
|
1613
1716
|
I
|
1614
|
-
|
1717
|
+
3c
|
1615
1718
|
I
|
1616
1719
|
9
|
1617
1720
|
I
|
1618
|
-
|
1721
|
+
39
|
1619
1722
|
I
|
1620
1723
|
1b
|
1621
1724
|
I
|
1622
|
-
|
1725
|
+
3a
|
1623
1726
|
I
|
1624
1727
|
30
|
1625
1728
|
I
|
1626
|
-
|
1729
|
+
3b
|
1627
1730
|
I
|
1628
1731
|
3d
|
1629
1732
|
I
|
1630
|
-
|
1733
|
+
3c
|
1631
1734
|
I
|
1632
1735
|
48
|
1633
1736
|
x
|
@@ -1639,6 +1742,76 @@ x
|
|
1639
1742
|
12
|
1640
1743
|
rack_request
|
1641
1744
|
x
|
1745
|
+
16
|
1746
|
+
query_params_for
|
1747
|
+
M
|
1748
|
+
1
|
1749
|
+
n
|
1750
|
+
n
|
1751
|
+
x
|
1752
|
+
16
|
1753
|
+
query_params_for
|
1754
|
+
i
|
1755
|
+
14
|
1756
|
+
45
|
1757
|
+
0
|
1758
|
+
1
|
1759
|
+
43
|
1760
|
+
2
|
1761
|
+
20
|
1762
|
+
0
|
1763
|
+
49
|
1764
|
+
3
|
1765
|
+
0
|
1766
|
+
49
|
1767
|
+
4
|
1768
|
+
1
|
1769
|
+
11
|
1770
|
+
I
|
1771
|
+
3
|
1772
|
+
I
|
1773
|
+
1
|
1774
|
+
I
|
1775
|
+
1
|
1776
|
+
I
|
1777
|
+
1
|
1778
|
+
n
|
1779
|
+
p
|
1780
|
+
5
|
1781
|
+
x
|
1782
|
+
4
|
1783
|
+
Rack
|
1784
|
+
n
|
1785
|
+
x
|
1786
|
+
5
|
1787
|
+
Utils
|
1788
|
+
x
|
1789
|
+
12
|
1790
|
+
query_string
|
1791
|
+
x
|
1792
|
+
18
|
1793
|
+
parse_nested_query
|
1794
|
+
p
|
1795
|
+
5
|
1796
|
+
I
|
1797
|
+
-1
|
1798
|
+
I
|
1799
|
+
3f
|
1800
|
+
I
|
1801
|
+
0
|
1802
|
+
I
|
1803
|
+
40
|
1804
|
+
I
|
1805
|
+
e
|
1806
|
+
x
|
1807
|
+
63
|
1808
|
+
/Users/ben/code/rack-client/lib/rack/client/handler/typhoeus.rb
|
1809
|
+
p
|
1810
|
+
1
|
1811
|
+
x
|
1812
|
+
12
|
1813
|
+
rack_request
|
1814
|
+
x
|
1642
1815
|
15
|
1643
1816
|
body_params_for
|
1644
1817
|
M
|
@@ -1741,21 +1914,21 @@ x
|
|
1741
1914
|
p
|
1742
1915
|
9
|
1743
1916
|
I
|
1744
|
-
|
1917
|
+
-1
|
1745
1918
|
I
|
1746
|
-
|
1919
|
+
43
|
1747
1920
|
I
|
1748
1921
|
0
|
1749
1922
|
I
|
1750
|
-
|
1923
|
+
44
|
1751
1924
|
I
|
1752
1925
|
12
|
1753
1926
|
I
|
1754
|
-
|
1927
|
+
47
|
1755
1928
|
I
|
1756
1929
|
1b
|
1757
1930
|
I
|
1758
|
-
|
1931
|
+
45
|
1759
1932
|
I
|
1760
1933
|
32
|
1761
1934
|
x
|
@@ -1767,7 +1940,7 @@ x
|
|
1767
1940
|
12
|
1768
1941
|
rack_request
|
1769
1942
|
p
|
1770
|
-
|
1943
|
+
25
|
1771
1944
|
I
|
1772
1945
|
2
|
1773
1946
|
I
|
@@ -1807,9 +1980,17 @@ I
|
|
1807
1980
|
I
|
1808
1981
|
7f
|
1809
1982
|
I
|
1810
|
-
|
1983
|
+
37
|
1811
1984
|
I
|
1812
1985
|
8d
|
1986
|
+
I
|
1987
|
+
3f
|
1988
|
+
I
|
1989
|
+
9b
|
1990
|
+
I
|
1991
|
+
43
|
1992
|
+
I
|
1993
|
+
a9
|
1813
1994
|
x
|
1814
1995
|
63
|
1815
1996
|
/Users/ben/code/rack-client/lib/rack/client/handler/typhoeus.rb
|