sucker 1.3.0 → 1.3.1

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.
@@ -1,3 +1,3 @@
1
1
  module Sucker
2
- VERSION = '1.3.0'
2
+ VERSION = '1.3.1'
3
3
  end
@@ -48,6 +48,29 @@ module Sucker
48
48
  end
49
49
  end
50
50
 
51
+ describe "#each" do
52
+ context "when a block is given" do
53
+ it "yields each match to a block" do
54
+ has_yielded = false
55
+
56
+ response.each("ItemAttributes") do |item|
57
+ has_yielded = true
58
+ item.should be_an_instance_of Hash
59
+ end
60
+
61
+ has_yielded.should be_true
62
+ end
63
+ end
64
+
65
+ context "when no block is given" do
66
+ it "raises error" do
67
+ expect do
68
+ response.each("ItemAttributes")
69
+ end.to raise_error(LocalJumpError)
70
+ end
71
+ end
72
+ end
73
+
51
74
  describe '#find' do
52
75
  context 'when there are matches' do
53
76
  it 'returns an array of matching nodes' do
@@ -63,6 +86,24 @@ module Sucker
63
86
  end
64
87
  end
65
88
 
89
+ describe "#map" do
90
+ context "when a block is given" do
91
+ it "yields each match to a block and maps returned values" do
92
+ titles = response.map("ItemAttributes") { |item| item["Title"] }
93
+
94
+ titles.count.should eql 2
95
+ end
96
+ end
97
+
98
+ context "when no block is given" do
99
+ it "raises error" do
100
+ expect do
101
+ response.map("ItemAttributes")
102
+ end.to raise_error(LocalJumpError)
103
+ end
104
+ end
105
+ end
106
+
66
107
  describe '#[]' do
67
108
  it 'is an alias of #find' do
68
109
  response['Foo'].should eql response.find('Foo')
@@ -123,7 +123,7 @@ x
123
123
  6
124
124
  Sucker
125
125
  i
126
- 122
126
+ 144
127
127
  5
128
128
  7
129
129
  0
@@ -245,6 +245,28 @@ i
245
245
  50
246
246
  14
247
247
  1
248
+ 15
249
+ 5
250
+ 7
251
+ 28
252
+ 64
253
+ 56
254
+ 29
255
+ 47
256
+ 50
257
+ 14
258
+ 1
259
+ 15
260
+ 5
261
+ 7
262
+ 30
263
+ 64
264
+ 56
265
+ 31
266
+ 47
267
+ 50
268
+ 14
269
+ 1
248
270
  11
249
271
  I
250
272
  7
@@ -257,7 +279,7 @@ I
257
279
  I
258
280
  -2
259
281
  p
260
- 28
282
+ 32
261
283
  s
262
284
  20
263
285
  spec/sucker/response
@@ -1316,7 +1338,7 @@ x
1316
1338
  context
1317
1339
  s
1318
1340
  5
1319
- #find
1341
+ #each
1320
1342
  M
1321
1343
  1
1322
1344
  p
@@ -1366,8 +1388,8 @@ I
1366
1388
  p
1367
1389
  5
1368
1390
  s
1369
- 22
1370
- when there are matches
1391
+ 21
1392
+ when a block is given
1371
1393
  M
1372
1394
  1
1373
1395
  p
@@ -1406,8 +1428,8 @@ I
1406
1428
  p
1407
1429
  3
1408
1430
  s
1409
- 34
1410
- returns an array of matching nodes
1431
+ 28
1432
+ yields each match to a block
1411
1433
  M
1412
1434
  1
1413
1435
  p
@@ -1421,32 +1443,36 @@ x
1421
1443
  6
1422
1444
  Sucker
1423
1445
  i
1424
- 21
1446
+ 25
1447
+ 3
1448
+ 19
1449
+ 0
1450
+ 15
1425
1451
  5
1426
1452
  48
1427
1453
  0
1428
1454
  7
1429
1455
  1
1430
1456
  64
1431
- 49
1457
+ 56
1432
1458
  2
1459
+ 50
1460
+ 3
1433
1461
  1
1434
- 5
1462
+ 15
1463
+ 20
1464
+ 0
1435
1465
  5
1436
1466
  48
1437
- 3
1438
- 47
1439
- 49
1440
1467
  4
1441
- 1
1442
1468
  49
1443
1469
  5
1444
1470
  1
1445
1471
  11
1446
1472
  I
1447
- 4
1473
+ 5
1448
1474
  I
1449
- 0
1475
+ 1
1450
1476
  I
1451
1477
  0
1452
1478
  I
@@ -1459,55 +1485,8 @@ x
1459
1485
  8
1460
1486
  response
1461
1487
  s
1462
- 4
1463
- ASIN
1464
- x
1465
- 4
1466
- find
1467
- x
1468
- 5
1469
- asins
1470
- x
1471
- 3
1472
- eql
1473
- x
1474
- 6
1475
- should
1476
- p
1477
- 3
1478
- I
1479
- 0
1480
- I
1481
- 36
1482
- I
1483
- 15
1484
- x
1485
- 51
1486
- /Users/snl/code/sucker/spec/sucker/response_spec.rb
1487
- p
1488
- 0
1489
- x
1490
- 2
1491
- it
1492
- p
1493
- 3
1494
- I
1495
- 0
1496
- I
1497
- 35
1498
- I
1499
- b
1500
- x
1501
- 51
1502
- /Users/snl/code/sucker/spec/sucker/response_spec.rb
1503
- p
1504
- 0
1505
- x
1506
- 7
1507
- context
1508
- s
1509
- 25
1510
- when there are no matches
1488
+ 14
1489
+ ItemAttributes
1511
1490
  M
1512
1491
  1
1513
1492
  p
@@ -1521,70 +1500,28 @@ x
1521
1500
  6
1522
1501
  Sucker
1523
1502
  i
1524
- 11
1525
- 5
1526
- 7
1503
+ 23
1504
+ 57
1505
+ 19
1527
1506
  0
1528
- 64
1529
- 56
1530
- 1
1531
- 47
1532
- 50
1507
+ 15
1533
1508
  2
1534
- 1
1535
- 11
1536
- I
1537
- 4
1538
- I
1539
- 0
1540
- I
1541
- 0
1542
- I
1543
- 0
1544
- I
1545
- -2
1546
- p
1547
- 3
1548
- s
1549
1509
  22
1550
- returns an empty array
1551
- M
1552
- 1
1553
- p
1554
- 2
1555
- x
1556
- 9
1557
- for_block
1558
- t
1559
- n
1560
- x
1561
- 6
1562
- Sucker
1563
- i
1564
- 25
1565
- 5
1566
- 48
1567
- 0
1568
- 7
1569
- 1
1570
- 64
1571
- 49
1572
- 2
1573
1510
  1
1574
- 19
1575
1511
  0
1576
1512
  15
1577
1513
  20
1578
1514
  0
1579
1515
  5
1580
- 35
1516
+ 45
1581
1517
  0
1518
+ 1
1582
1519
  47
1583
1520
  49
1584
- 3
1521
+ 2
1585
1522
  1
1586
1523
  49
1587
- 4
1524
+ 3
1588
1525
  1
1589
1526
  11
1590
1527
  I
@@ -1592,40 +1529,38 @@ I
1592
1529
  I
1593
1530
  1
1594
1531
  I
1595
- 0
1596
- I
1597
- 0
1532
+ 1
1598
1533
  I
1599
- -2
1534
+ 1
1535
+ n
1600
1536
  p
1601
- 5
1602
- x
1603
- 8
1604
- response
1605
- s
1606
- 3
1607
- Foo
1537
+ 4
1608
1538
  x
1609
1539
  4
1610
- find
1540
+ Hash
1541
+ n
1611
1542
  x
1612
- 3
1613
- eql
1543
+ 17
1544
+ be_an_instance_of
1614
1545
  x
1615
1546
  6
1616
1547
  should
1617
1548
  p
1618
- 5
1549
+ 7
1619
1550
  I
1620
1551
  0
1621
1552
  I
1622
- 3c
1553
+ 38
1554
+ I
1555
+ 4
1623
1556
  I
1624
- c
1557
+ 39
1625
1558
  I
1626
- 3d
1559
+ 9
1627
1560
  I
1628
- 19
1561
+ 3a
1562
+ I
1563
+ 17
1629
1564
  x
1630
1565
  51
1631
1566
  /Users/snl/code/sucker/spec/sucker/response_spec.rb
@@ -1633,43 +1568,62 @@ p
1633
1568
  1
1634
1569
  x
1635
1570
  4
1636
- node
1571
+ item
1637
1572
  x
1638
- 2
1639
- it
1573
+ 4
1574
+ each
1575
+ x
1576
+ 7
1577
+ be_true
1578
+ x
1579
+ 6
1580
+ should
1640
1581
  p
1641
- 3
1582
+ 7
1642
1583
  I
1643
1584
  0
1644
1585
  I
1645
- 3b
1586
+ 36
1646
1587
  I
1647
- b
1588
+ 4
1589
+ I
1590
+ 38
1591
+ I
1592
+ 10
1593
+ I
1594
+ 3d
1595
+ I
1596
+ 19
1648
1597
  x
1649
1598
  51
1650
1599
  /Users/snl/code/sucker/spec/sucker/response_spec.rb
1651
1600
  p
1652
- 0
1601
+ 1
1602
+ x
1603
+ 11
1604
+ has_yielded
1605
+ x
1606
+ 2
1607
+ it
1653
1608
  p
1654
- 5
1609
+ 3
1655
1610
  I
1656
1611
  0
1657
1612
  I
1658
- 34
1613
+ 35
1659
1614
  I
1660
1615
  b
1661
- I
1662
- 3a
1663
- I
1664
- 16
1665
1616
  x
1666
1617
  51
1667
1618
  /Users/snl/code/sucker/spec/sucker/response_spec.rb
1668
1619
  p
1669
1620
  0
1621
+ x
1622
+ 7
1623
+ context
1670
1624
  s
1671
- 3
1672
- #[]
1625
+ 22
1626
+ when no block is given
1673
1627
  M
1674
1628
  1
1675
1629
  p
@@ -1708,8 +1662,8 @@ I
1708
1662
  p
1709
1663
  3
1710
1664
  s
1711
- 20
1712
- is an alias of #find
1665
+ 12
1666
+ raises error
1713
1667
  M
1714
1668
  1
1715
1669
  p
@@ -1723,14 +1677,1059 @@ x
1723
1677
  6
1724
1678
  Sucker
1725
1679
  i
1726
- 27
1680
+ 19
1727
1681
  5
1728
- 48
1682
+ 56
1729
1683
  0
1730
- 7
1684
+ 47
1685
+ 50
1731
1686
  1
1732
- 64
1733
- 49
1687
+ 0
1688
+ 5
1689
+ 45
1690
+ 2
1691
+ 3
1692
+ 47
1693
+ 49
1694
+ 4
1695
+ 1
1696
+ 49
1697
+ 5
1698
+ 1
1699
+ 11
1700
+ I
1701
+ 4
1702
+ I
1703
+ 0
1704
+ I
1705
+ 0
1706
+ I
1707
+ 0
1708
+ I
1709
+ -2
1710
+ p
1711
+ 6
1712
+ M
1713
+ 1
1714
+ p
1715
+ 2
1716
+ x
1717
+ 9
1718
+ for_block
1719
+ t
1720
+ n
1721
+ x
1722
+ 6
1723
+ Sucker
1724
+ i
1725
+ 10
1726
+ 5
1727
+ 48
1728
+ 0
1729
+ 7
1730
+ 1
1731
+ 64
1732
+ 49
1733
+ 2
1734
+ 1
1735
+ 11
1736
+ I
1737
+ 3
1738
+ I
1739
+ 0
1740
+ I
1741
+ 0
1742
+ I
1743
+ 0
1744
+ I
1745
+ -2
1746
+ p
1747
+ 3
1748
+ x
1749
+ 8
1750
+ response
1751
+ s
1752
+ 14
1753
+ ItemAttributes
1754
+ x
1755
+ 4
1756
+ each
1757
+ p
1758
+ 3
1759
+ I
1760
+ 0
1761
+ I
1762
+ 44
1763
+ I
1764
+ a
1765
+ x
1766
+ 51
1767
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
1768
+ p
1769
+ 0
1770
+ x
1771
+ 6
1772
+ expect
1773
+ x
1774
+ 14
1775
+ LocalJumpError
1776
+ n
1777
+ x
1778
+ 11
1779
+ raise_error
1780
+ x
1781
+ 2
1782
+ to
1783
+ p
1784
+ 7
1785
+ I
1786
+ 0
1787
+ I
1788
+ 43
1789
+ I
1790
+ 7
1791
+ I
1792
+ 45
1793
+ I
1794
+ f
1795
+ I
1796
+ 43
1797
+ I
1798
+ 13
1799
+ x
1800
+ 51
1801
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
1802
+ p
1803
+ 0
1804
+ x
1805
+ 2
1806
+ it
1807
+ p
1808
+ 3
1809
+ I
1810
+ 0
1811
+ I
1812
+ 42
1813
+ I
1814
+ b
1815
+ x
1816
+ 51
1817
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
1818
+ p
1819
+ 0
1820
+ p
1821
+ 5
1822
+ I
1823
+ 0
1824
+ I
1825
+ 34
1826
+ I
1827
+ b
1828
+ I
1829
+ 41
1830
+ I
1831
+ 16
1832
+ x
1833
+ 51
1834
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
1835
+ p
1836
+ 0
1837
+ s
1838
+ 5
1839
+ #find
1840
+ M
1841
+ 1
1842
+ p
1843
+ 2
1844
+ x
1845
+ 9
1846
+ for_block
1847
+ t
1848
+ n
1849
+ x
1850
+ 6
1851
+ Sucker
1852
+ i
1853
+ 22
1854
+ 5
1855
+ 7
1856
+ 0
1857
+ 64
1858
+ 56
1859
+ 1
1860
+ 47
1861
+ 50
1862
+ 2
1863
+ 1
1864
+ 15
1865
+ 5
1866
+ 7
1867
+ 3
1868
+ 64
1869
+ 56
1870
+ 4
1871
+ 47
1872
+ 50
1873
+ 2
1874
+ 1
1875
+ 11
1876
+ I
1877
+ 4
1878
+ I
1879
+ 0
1880
+ I
1881
+ 0
1882
+ I
1883
+ 0
1884
+ I
1885
+ -2
1886
+ p
1887
+ 5
1888
+ s
1889
+ 22
1890
+ when there are matches
1891
+ M
1892
+ 1
1893
+ p
1894
+ 2
1895
+ x
1896
+ 9
1897
+ for_block
1898
+ t
1899
+ n
1900
+ x
1901
+ 6
1902
+ Sucker
1903
+ i
1904
+ 11
1905
+ 5
1906
+ 7
1907
+ 0
1908
+ 64
1909
+ 56
1910
+ 1
1911
+ 47
1912
+ 50
1913
+ 2
1914
+ 1
1915
+ 11
1916
+ I
1917
+ 4
1918
+ I
1919
+ 0
1920
+ I
1921
+ 0
1922
+ I
1923
+ 0
1924
+ I
1925
+ -2
1926
+ p
1927
+ 3
1928
+ s
1929
+ 34
1930
+ returns an array of matching nodes
1931
+ M
1932
+ 1
1933
+ p
1934
+ 2
1935
+ x
1936
+ 9
1937
+ for_block
1938
+ t
1939
+ n
1940
+ x
1941
+ 6
1942
+ Sucker
1943
+ i
1944
+ 21
1945
+ 5
1946
+ 48
1947
+ 0
1948
+ 7
1949
+ 1
1950
+ 64
1951
+ 49
1952
+ 2
1953
+ 1
1954
+ 5
1955
+ 5
1956
+ 48
1957
+ 3
1958
+ 47
1959
+ 49
1960
+ 4
1961
+ 1
1962
+ 49
1963
+ 5
1964
+ 1
1965
+ 11
1966
+ I
1967
+ 4
1968
+ I
1969
+ 0
1970
+ I
1971
+ 0
1972
+ I
1973
+ 0
1974
+ I
1975
+ -2
1976
+ p
1977
+ 6
1978
+ x
1979
+ 8
1980
+ response
1981
+ s
1982
+ 4
1983
+ ASIN
1984
+ x
1985
+ 4
1986
+ find
1987
+ x
1988
+ 5
1989
+ asins
1990
+ x
1991
+ 3
1992
+ eql
1993
+ x
1994
+ 6
1995
+ should
1996
+ p
1997
+ 3
1998
+ I
1999
+ 0
2000
+ I
2001
+ 4d
2002
+ I
2003
+ 15
2004
+ x
2005
+ 51
2006
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2007
+ p
2008
+ 0
2009
+ x
2010
+ 2
2011
+ it
2012
+ p
2013
+ 3
2014
+ I
2015
+ 0
2016
+ I
2017
+ 4c
2018
+ I
2019
+ b
2020
+ x
2021
+ 51
2022
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2023
+ p
2024
+ 0
2025
+ x
2026
+ 7
2027
+ context
2028
+ s
2029
+ 25
2030
+ when there are no matches
2031
+ M
2032
+ 1
2033
+ p
2034
+ 2
2035
+ x
2036
+ 9
2037
+ for_block
2038
+ t
2039
+ n
2040
+ x
2041
+ 6
2042
+ Sucker
2043
+ i
2044
+ 11
2045
+ 5
2046
+ 7
2047
+ 0
2048
+ 64
2049
+ 56
2050
+ 1
2051
+ 47
2052
+ 50
2053
+ 2
2054
+ 1
2055
+ 11
2056
+ I
2057
+ 4
2058
+ I
2059
+ 0
2060
+ I
2061
+ 0
2062
+ I
2063
+ 0
2064
+ I
2065
+ -2
2066
+ p
2067
+ 3
2068
+ s
2069
+ 22
2070
+ returns an empty array
2071
+ M
2072
+ 1
2073
+ p
2074
+ 2
2075
+ x
2076
+ 9
2077
+ for_block
2078
+ t
2079
+ n
2080
+ x
2081
+ 6
2082
+ Sucker
2083
+ i
2084
+ 25
2085
+ 5
2086
+ 48
2087
+ 0
2088
+ 7
2089
+ 1
2090
+ 64
2091
+ 49
2092
+ 2
2093
+ 1
2094
+ 19
2095
+ 0
2096
+ 15
2097
+ 20
2098
+ 0
2099
+ 5
2100
+ 35
2101
+ 0
2102
+ 47
2103
+ 49
2104
+ 3
2105
+ 1
2106
+ 49
2107
+ 4
2108
+ 1
2109
+ 11
2110
+ I
2111
+ 5
2112
+ I
2113
+ 1
2114
+ I
2115
+ 0
2116
+ I
2117
+ 0
2118
+ I
2119
+ -2
2120
+ p
2121
+ 5
2122
+ x
2123
+ 8
2124
+ response
2125
+ s
2126
+ 3
2127
+ Foo
2128
+ x
2129
+ 4
2130
+ find
2131
+ x
2132
+ 3
2133
+ eql
2134
+ x
2135
+ 6
2136
+ should
2137
+ p
2138
+ 5
2139
+ I
2140
+ 0
2141
+ I
2142
+ 53
2143
+ I
2144
+ c
2145
+ I
2146
+ 54
2147
+ I
2148
+ 19
2149
+ x
2150
+ 51
2151
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2152
+ p
2153
+ 1
2154
+ x
2155
+ 4
2156
+ node
2157
+ x
2158
+ 2
2159
+ it
2160
+ p
2161
+ 3
2162
+ I
2163
+ 0
2164
+ I
2165
+ 52
2166
+ I
2167
+ b
2168
+ x
2169
+ 51
2170
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2171
+ p
2172
+ 0
2173
+ p
2174
+ 5
2175
+ I
2176
+ 0
2177
+ I
2178
+ 4b
2179
+ I
2180
+ b
2181
+ I
2182
+ 51
2183
+ I
2184
+ 16
2185
+ x
2186
+ 51
2187
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2188
+ p
2189
+ 0
2190
+ s
2191
+ 4
2192
+ #map
2193
+ M
2194
+ 1
2195
+ p
2196
+ 2
2197
+ x
2198
+ 9
2199
+ for_block
2200
+ t
2201
+ n
2202
+ x
2203
+ 6
2204
+ Sucker
2205
+ i
2206
+ 22
2207
+ 5
2208
+ 7
2209
+ 0
2210
+ 64
2211
+ 56
2212
+ 1
2213
+ 47
2214
+ 50
2215
+ 2
2216
+ 1
2217
+ 15
2218
+ 5
2219
+ 7
2220
+ 3
2221
+ 64
2222
+ 56
2223
+ 4
2224
+ 47
2225
+ 50
2226
+ 2
2227
+ 1
2228
+ 11
2229
+ I
2230
+ 4
2231
+ I
2232
+ 0
2233
+ I
2234
+ 0
2235
+ I
2236
+ 0
2237
+ I
2238
+ -2
2239
+ p
2240
+ 5
2241
+ s
2242
+ 21
2243
+ when a block is given
2244
+ M
2245
+ 1
2246
+ p
2247
+ 2
2248
+ x
2249
+ 9
2250
+ for_block
2251
+ t
2252
+ n
2253
+ x
2254
+ 6
2255
+ Sucker
2256
+ i
2257
+ 11
2258
+ 5
2259
+ 7
2260
+ 0
2261
+ 64
2262
+ 56
2263
+ 1
2264
+ 47
2265
+ 50
2266
+ 2
2267
+ 1
2268
+ 11
2269
+ I
2270
+ 4
2271
+ I
2272
+ 0
2273
+ I
2274
+ 0
2275
+ I
2276
+ 0
2277
+ I
2278
+ -2
2279
+ p
2280
+ 3
2281
+ s
2282
+ 53
2283
+ yields each match to a block and maps returned values
2284
+ M
2285
+ 1
2286
+ p
2287
+ 2
2288
+ x
2289
+ 9
2290
+ for_block
2291
+ t
2292
+ n
2293
+ x
2294
+ 6
2295
+ Sucker
2296
+ i
2297
+ 29
2298
+ 5
2299
+ 48
2300
+ 0
2301
+ 7
2302
+ 1
2303
+ 64
2304
+ 56
2305
+ 2
2306
+ 50
2307
+ 3
2308
+ 1
2309
+ 19
2310
+ 0
2311
+ 15
2312
+ 20
2313
+ 0
2314
+ 49
2315
+ 4
2316
+ 0
2317
+ 5
2318
+ 80
2319
+ 47
2320
+ 49
2321
+ 5
2322
+ 1
2323
+ 49
2324
+ 6
2325
+ 1
2326
+ 11
2327
+ I
2328
+ 5
2329
+ I
2330
+ 1
2331
+ I
2332
+ 0
2333
+ I
2334
+ 0
2335
+ I
2336
+ -2
2337
+ p
2338
+ 7
2339
+ x
2340
+ 8
2341
+ response
2342
+ s
2343
+ 14
2344
+ ItemAttributes
2345
+ M
2346
+ 1
2347
+ p
2348
+ 2
2349
+ x
2350
+ 9
2351
+ for_block
2352
+ t
2353
+ n
2354
+ x
2355
+ 6
2356
+ Sucker
2357
+ i
2358
+ 13
2359
+ 57
2360
+ 19
2361
+ 0
2362
+ 15
2363
+ 20
2364
+ 0
2365
+ 7
2366
+ 0
2367
+ 64
2368
+ 49
2369
+ 1
2370
+ 1
2371
+ 11
2372
+ I
2373
+ 4
2374
+ I
2375
+ 1
2376
+ I
2377
+ 1
2378
+ I
2379
+ 1
2380
+ n
2381
+ p
2382
+ 2
2383
+ s
2384
+ 5
2385
+ Title
2386
+ x
2387
+ 2
2388
+ []
2389
+ p
2390
+ 3
2391
+ I
2392
+ 0
2393
+ I
2394
+ 5c
2395
+ I
2396
+ d
2397
+ x
2398
+ 51
2399
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2400
+ p
2401
+ 1
2402
+ x
2403
+ 4
2404
+ item
2405
+ x
2406
+ 3
2407
+ map
2408
+ x
2409
+ 5
2410
+ count
2411
+ x
2412
+ 3
2413
+ eql
2414
+ x
2415
+ 6
2416
+ should
2417
+ p
2418
+ 5
2419
+ I
2420
+ 0
2421
+ I
2422
+ 5c
2423
+ I
2424
+ e
2425
+ I
2426
+ 5e
2427
+ I
2428
+ 1d
2429
+ x
2430
+ 51
2431
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2432
+ p
2433
+ 1
2434
+ x
2435
+ 6
2436
+ titles
2437
+ x
2438
+ 2
2439
+ it
2440
+ p
2441
+ 3
2442
+ I
2443
+ 0
2444
+ I
2445
+ 5b
2446
+ I
2447
+ b
2448
+ x
2449
+ 51
2450
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2451
+ p
2452
+ 0
2453
+ x
2454
+ 7
2455
+ context
2456
+ s
2457
+ 22
2458
+ when no block is given
2459
+ M
2460
+ 1
2461
+ p
2462
+ 2
2463
+ x
2464
+ 9
2465
+ for_block
2466
+ t
2467
+ n
2468
+ x
2469
+ 6
2470
+ Sucker
2471
+ i
2472
+ 11
2473
+ 5
2474
+ 7
2475
+ 0
2476
+ 64
2477
+ 56
2478
+ 1
2479
+ 47
2480
+ 50
2481
+ 2
2482
+ 1
2483
+ 11
2484
+ I
2485
+ 4
2486
+ I
2487
+ 0
2488
+ I
2489
+ 0
2490
+ I
2491
+ 0
2492
+ I
2493
+ -2
2494
+ p
2495
+ 3
2496
+ s
2497
+ 12
2498
+ raises error
2499
+ M
2500
+ 1
2501
+ p
2502
+ 2
2503
+ x
2504
+ 9
2505
+ for_block
2506
+ t
2507
+ n
2508
+ x
2509
+ 6
2510
+ Sucker
2511
+ i
2512
+ 19
2513
+ 5
2514
+ 56
2515
+ 0
2516
+ 47
2517
+ 50
2518
+ 1
2519
+ 0
2520
+ 5
2521
+ 45
2522
+ 2
2523
+ 3
2524
+ 47
2525
+ 49
2526
+ 4
2527
+ 1
2528
+ 49
2529
+ 5
2530
+ 1
2531
+ 11
2532
+ I
2533
+ 4
2534
+ I
2535
+ 0
2536
+ I
2537
+ 0
2538
+ I
2539
+ 0
2540
+ I
2541
+ -2
2542
+ p
2543
+ 6
2544
+ M
2545
+ 1
2546
+ p
2547
+ 2
2548
+ x
2549
+ 9
2550
+ for_block
2551
+ t
2552
+ n
2553
+ x
2554
+ 6
2555
+ Sucker
2556
+ i
2557
+ 10
2558
+ 5
2559
+ 48
2560
+ 0
2561
+ 7
2562
+ 1
2563
+ 64
2564
+ 49
2565
+ 2
2566
+ 1
2567
+ 11
2568
+ I
2569
+ 3
2570
+ I
2571
+ 0
2572
+ I
2573
+ 0
2574
+ I
2575
+ 0
2576
+ I
2577
+ -2
2578
+ p
2579
+ 3
2580
+ x
2581
+ 8
2582
+ response
2583
+ s
2584
+ 14
2585
+ ItemAttributes
2586
+ x
2587
+ 3
2588
+ map
2589
+ p
2590
+ 3
2591
+ I
2592
+ 0
2593
+ I
2594
+ 65
2595
+ I
2596
+ a
2597
+ x
2598
+ 51
2599
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2600
+ p
2601
+ 0
2602
+ x
2603
+ 6
2604
+ expect
2605
+ x
2606
+ 14
2607
+ LocalJumpError
2608
+ n
2609
+ x
2610
+ 11
2611
+ raise_error
2612
+ x
2613
+ 2
2614
+ to
2615
+ p
2616
+ 7
2617
+ I
2618
+ 0
2619
+ I
2620
+ 64
2621
+ I
2622
+ 7
2623
+ I
2624
+ 66
2625
+ I
2626
+ f
2627
+ I
2628
+ 64
2629
+ I
2630
+ 13
2631
+ x
2632
+ 51
2633
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2634
+ p
2635
+ 0
2636
+ x
2637
+ 2
2638
+ it
2639
+ p
2640
+ 3
2641
+ I
2642
+ 0
2643
+ I
2644
+ 63
2645
+ I
2646
+ b
2647
+ x
2648
+ 51
2649
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2650
+ p
2651
+ 0
2652
+ p
2653
+ 5
2654
+ I
2655
+ 0
2656
+ I
2657
+ 5a
2658
+ I
2659
+ b
2660
+ I
2661
+ 62
2662
+ I
2663
+ 16
2664
+ x
2665
+ 51
2666
+ /Users/snl/code/sucker/spec/sucker/response_spec.rb
2667
+ p
2668
+ 0
2669
+ s
2670
+ 3
2671
+ #[]
2672
+ M
2673
+ 1
2674
+ p
2675
+ 2
2676
+ x
2677
+ 9
2678
+ for_block
2679
+ t
2680
+ n
2681
+ x
2682
+ 6
2683
+ Sucker
2684
+ i
2685
+ 11
2686
+ 5
2687
+ 7
2688
+ 0
2689
+ 64
2690
+ 56
2691
+ 1
2692
+ 47
2693
+ 50
2694
+ 2
2695
+ 1
2696
+ 11
2697
+ I
2698
+ 4
2699
+ I
2700
+ 0
2701
+ I
2702
+ 0
2703
+ I
2704
+ 0
2705
+ I
2706
+ -2
2707
+ p
2708
+ 3
2709
+ s
2710
+ 20
2711
+ is an alias of #find
2712
+ M
2713
+ 1
2714
+ p
2715
+ 2
2716
+ x
2717
+ 9
2718
+ for_block
2719
+ t
2720
+ n
2721
+ x
2722
+ 6
2723
+ Sucker
2724
+ i
2725
+ 27
2726
+ 5
2727
+ 48
2728
+ 0
2729
+ 7
2730
+ 1
2731
+ 64
2732
+ 49
1734
2733
  2
1735
2734
  1
1736
2735
  5
@@ -1786,7 +2785,7 @@ p
1786
2785
  I
1787
2786
  0
1788
2787
  I
1789
- 44
2788
+ 6d
1790
2789
  I
1791
2790
  1b
1792
2791
  x
@@ -1802,7 +2801,7 @@ p
1802
2801
  I
1803
2802
  0
1804
2803
  I
1805
- 43
2804
+ 6c
1806
2805
  I
1807
2806
  b
1808
2807
  x
@@ -1929,7 +2928,7 @@ p
1929
2928
  I
1930
2929
  0
1931
2930
  I
1932
- 4a
2931
+ 73
1933
2932
  I
1934
2933
  12
1935
2934
  x
@@ -2039,11 +3038,11 @@ p
2039
3038
  I
2040
3039
  0
2041
3040
  I
2042
- 4e
3041
+ 77
2043
3042
  I
2044
3043
  e
2045
3044
  I
2046
- 4f
3045
+ 78
2047
3046
  I
2048
3047
  26
2049
3048
  x
@@ -2056,11 +3055,11 @@ p
2056
3055
  I
2057
3056
  0
2058
3057
  I
2059
- 49
3058
+ 72
2060
3059
  I
2061
3060
  b
2062
3061
  I
2063
- 4d
3062
+ 76
2064
3063
  I
2065
3064
  16
2066
3065
  x
@@ -2212,7 +3211,7 @@ p
2212
3211
  I
2213
3212
  0
2214
3213
  I
2215
- 56
3214
+ 7f
2216
3215
  I
2217
3216
  a
2218
3217
  x
@@ -2228,7 +3227,7 @@ p
2228
3227
  I
2229
3228
  0
2230
3229
  I
2231
- 55
3230
+ 7e
2232
3231
  I
2233
3232
  b
2234
3233
  x
@@ -2350,11 +3349,11 @@ p
2350
3349
  I
2351
3350
  0
2352
3351
  I
2353
- 5c
3352
+ 85
2354
3353
  I
2355
3354
  d
2356
3355
  I
2357
- 5d
3356
+ 86
2358
3357
  I
2359
3358
  17
2360
3359
  x
@@ -2370,7 +3369,7 @@ p
2370
3369
  I
2371
3370
  0
2372
3371
  I
2373
- 5b
3372
+ 84
2374
3373
  I
2375
3374
  b
2376
3375
  x
@@ -2383,11 +3382,11 @@ p
2383
3382
  I
2384
3383
  0
2385
3384
  I
2386
- 54
3385
+ 7d
2387
3386
  I
2388
3387
  b
2389
3388
  I
2390
- 5a
3389
+ 83
2391
3390
  I
2392
3391
  16
2393
3392
  x
@@ -2513,7 +3512,7 @@ p
2513
3512
  I
2514
3513
  0
2515
3514
  I
2516
- 64
3515
+ 8d
2517
3516
  I
2518
3517
  16
2519
3518
  x
@@ -2529,7 +3528,7 @@ p
2529
3528
  I
2530
3529
  0
2531
3530
  I
2532
- 63
3531
+ 8c
2533
3532
  I
2534
3533
  b
2535
3534
  x
@@ -2538,7 +3537,7 @@ x
2538
3537
  p
2539
3538
  0
2540
3539
  p
2541
- 21
3540
+ 25
2542
3541
  I
2543
3542
  0
2544
3543
  I
@@ -2566,21 +3565,29 @@ I
2566
3565
  I
2567
3566
  4e
2568
3567
  I
2569
- 42
3568
+ 4a
2570
3569
  I
2571
3570
  59
2572
3571
  I
2573
- 48
3572
+ 59
2574
3573
  I
2575
3574
  64
2576
3575
  I
2577
- 53
3576
+ 6b
2578
3577
  I
2579
3578
  6f
2580
3579
  I
2581
- 62
3580
+ 71
2582
3581
  I
2583
3582
  7a
3583
+ I
3584
+ 7c
3585
+ I
3586
+ 85
3587
+ I
3588
+ 8b
3589
+ I
3590
+ 90
2584
3591
  x
2585
3592
  51
2586
3593
  /Users/snl/code/sucker/spec/sucker/response_spec.rb