archivist-client 0.2.2 → 0.2.3
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.
- checksums.yaml +5 -5
- data/archivist-client.gemspec +0 -1
- data/lib/archivist/client/version.rb +1 -1
- data/lib/archivist/models/document.rb +1 -0
- data/spec/client_spec.rb +1 -1
- data/spec/fixtures/vcr/download.yml +178 -1411
- data/spec/fixtures/vcr/search.yml +117 -92
- data/spec/representations/document_spec.rb +1 -1
- data/spec/representations/query_response_spec.rb +2 -2
- data/spec/spec_helper.rb +1 -0
- metadata +16 -18
- data/spec/fixtures/vcr/links.yml +0 -127
|
@@ -2,109 +2,134 @@
|
|
|
2
2
|
http_interactions:
|
|
3
3
|
- request:
|
|
4
4
|
method: get
|
|
5
|
-
uri: http://archive.org/advancedsearch.php?fl%
|
|
5
|
+
uri: http://archive.org/advancedsearch.php?fl%5B%5D=creator&fl%5B%5D=date&fl%5B%5D=identifier&fl%5B%5D=language&fl%5B%5D=mediattype&fl%5B%5D=title&output=json&page=1&q=mediatype:texts%20AND%20-mediatype:collection%20AND%20(language:eng%20OR%20language:English)%20AND%20date:%5B1500-01-01%20TO%201550-12-31%5D&rows=50&sort%5B%5D=date%20asc
|
|
6
6
|
body:
|
|
7
7
|
encoding: US-ASCII
|
|
8
8
|
string: ''
|
|
9
9
|
headers:
|
|
10
10
|
User-Agent:
|
|
11
|
-
- Faraday v0.
|
|
11
|
+
- Faraday v0.14.0
|
|
12
12
|
Accept-Encoding:
|
|
13
13
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
14
|
Accept:
|
|
15
|
-
-
|
|
15
|
+
- "*/*"
|
|
16
16
|
response:
|
|
17
17
|
status:
|
|
18
18
|
code: 200
|
|
19
|
-
message:
|
|
20
|
-
T0s=
|
|
19
|
+
message: OK
|
|
21
20
|
headers:
|
|
22
|
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- !binary |-
|
|
33
|
-
Y2h1bmtlZA==
|
|
34
|
-
!binary "Q29ubmVjdGlvbg==":
|
|
35
|
-
- !binary |-
|
|
36
|
-
a2VlcC1hbGl2ZQ==
|
|
37
|
-
!binary "WC1Qb3dlcmVkLUJ5":
|
|
38
|
-
- !binary |-
|
|
39
|
-
UEhQLzUuMy4xMC0xdWJ1bnR1My4y
|
|
40
|
-
!binary "Q29udGVudC1FbmNvZGluZw==":
|
|
41
|
-
- !binary |-
|
|
42
|
-
Z3ppcA==
|
|
21
|
+
Server:
|
|
22
|
+
- nginx/1.4.6 (Ubuntu)
|
|
23
|
+
Date:
|
|
24
|
+
- Mon, 05 Mar 2018 04:54:24 GMT
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
Transfer-Encoding:
|
|
28
|
+
- chunked
|
|
29
|
+
Connection:
|
|
30
|
+
- keep-alive
|
|
43
31
|
body:
|
|
44
|
-
encoding:
|
|
45
|
-
string:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: '{"responseHeader":{"status":0,"QTime":51,"params":{"query":"mediatype:texts
|
|
34
|
+
AND -mediatype:collection AND ( language:eng OR language:English ) AND date:[1500-01-01T00\\:00\\:00Z
|
|
35
|
+
TO 1550-12-31T23\\:59\\:59Z]","qin":"mediatype:texts AND -mediatype:collection
|
|
36
|
+
AND (language:eng OR language:English) AND date:[1500-01-01 TO 1550-12-31]","fields":"identifier,title,creator,date,language,mediattype","wt":"json","sort":"date
|
|
37
|
+
asc","rows":"50","start":0}},"response":{"numFound":241,"start":0,"docs":[{"creator":"Savonarola,
|
|
38
|
+
Hieronymus","date":"1500-01-01T00:00:00Z","identifier":"ita-bnc-in1-00000134-001","language":"English","title":"Expositio
|
|
39
|
+
in Psalmum L (51) \"Miserere mei Deus\""},{"creator":"Lichtenberger, Johannes","date":"1500-01-01T00:00:00Z","identifier":"ita-bnc-in2-00001797-001","language":"English","title":"Prognosticatio"},{"creator":"Berris
|
|
40
|
+
Tres Riches Heures","date":"1500-01-01T00:00:00Z","identifier":"in.ernet.dli.2015.233866","language":"eng","title":"The
|
|
41
|
+
Rise Of Modern Europe(vol1)"},{"creator":"BURTON","date":"1500-01-01T00:00:00Z","identifier":"NewRichTextDocument_20170225","language":"eng","title":"New
|
|
42
|
+
Rich Text Document"},{"creator":"Aurelius Prudentius Clemens","date":"1501-01-01T00:00:00Z","identifier":"bub_gb_tNMb8PrO5yAC","language":"English","title":"Prudentii
|
|
43
|
+
poetae opera. Virtutum cum uitiis pugna, heroico carmine.. Prudentii poetae
|
|
44
|
+
opera. Virtutum cum uitiis pugna, heroico carmine. Hymni diurnarum rerum,
|
|
45
|
+
ad Gallicantum. Ad matutinum. Ante cibum. Post cibum. Ad lucernae accensionem.
|
|
46
|
+
Ante somnum .."},{"creator":"United States.: Bureau of Foreign and Domestic
|
|
47
|
+
Commerce","date":"1501-01-01T00:00:00Z","identifier":"supplementto5219152unit","language":"eng","title":"Supplement
|
|
48
|
+
to Commerce reports : daily consular and trade reports issued by the Bureau
|
|
49
|
+
of Foreign and Domestic Commerce, Department of Commerce"},{"creator":"Stephanus
|
|
50
|
+
(Byzantinus)","date":"1502-01-01T00:00:00Z","identifier":"bub_gb_1x5DAAAAcAAJ","language":"English","title":"Stephanos
|
|
51
|
+
Peri pole\u014dn De urbibus"},{"creator":["Worde, Wynkyn de, -1534?, printer","Tomkinson,
|
|
52
|
+
Michael, 1841-1921, former owner","Boule, Joannis, former owner"],"date":"1502-01-01T00:00:00Z","identifier":"chronycleofenglo00word","language":"eng","title":"Chronycle
|
|
53
|
+
of Englonde"},{"creator":"Lorenzo Astemio","date":"1502-01-01T00:00:00Z","identifier":"bub_gb_bopSAAAAcAAJ","language":"English","title":"Epaminundae
|
|
54
|
+
clarissimi Thebanorum ducis vita"},{"date":"1503-01-01T00:00:00Z","identifier":"bub_gb_ERBmAAAAcAAJ","language":"English","title":"Augustini
|
|
55
|
+
dati senensis opera. Edited by Girolamo Dati."},{"creator":"Archimedes","date":"1503-01-01T00:00:00Z","identifier":"bub_gb_9fNPAAAAcAAJ","language":"English","title":"Tetragonismus"},{"creator":"Xenophon","date":"1503-01-01T00:00:00Z","identifier":"bub_gb_UQ2ed0bfxt8C","language":"English","title":"Xenophontis
|
|
56
|
+
omissa quae & graeca gesta appellantur"},{"creator":"Xenophon","date":"1503-01-01T00:00:00Z","identifier":"bub_gb_RWb2TbT9BwkC","language":"English","title":"Xenophontis
|
|
57
|
+
omissa quae & graeca gesta appellantur"},{"creator":"Philoponus, John","date":"1504-01-01T00:00:00Z","identifier":"ita-bnc-ald-00000803-001","language":"English","title":"In
|
|
58
|
+
posteriora resolutoria Aristotelis commentaria"},{"creator":"T W Arnold","date":"1504-01-01T00:00:00Z","identifier":"in.ernet.dli.2015.169486","language":"eng","title":"The
|
|
59
|
+
Little Flowers Of S Francis Of Assisi"},{"date":"1506-01-01T00:00:00Z","identifier":"bub_gb_aI5mAAAAcAAJ","language":"English","title":"Alexandri
|
|
60
|
+
Achillini bononiensis de intelligentiis"},{"creator":"British Record Society","date":"1508-01-01T00:00:00Z","identifier":"indexlibrary8150brit_0","language":"eng","title":"The
|
|
61
|
+
Index library"},{"creator":["Page, William, 1861-1934","Huguenot Society of
|
|
62
|
+
London"],"date":"1509-01-01T00:00:00Z","identifier":"lettersofdenizat8150page","language":"eng","title":"Letters
|
|
63
|
+
of denization and acts of naturalization for aliens in England, 1509-1603"},{"creator":"United
|
|
64
|
+
States.: Bureau of Foreign and Domestic Commerce","date":"1509-01-01T00:00:00Z","identifier":"supplementto65191823unit","language":"eng","title":"Supplement
|
|
65
|
+
to Commerce reports : daily consular and trade reports issued by the Bureau
|
|
66
|
+
of Foreign and Domestic Commerce, Department of Commerce"},{"creator":"The
|
|
67
|
+
Cresset Press,london","date":"1509-01-01T00:00:00Z","identifier":"in.ernet.dli.2015.182336","language":"eng","title":"The
|
|
68
|
+
Beghinnings Of English Literature To Skelton"},{"creator":"British Record
|
|
69
|
+
Society","date":"1510-01-01T00:00:00Z","identifier":"indexlibrary1151brit_0","language":"eng","title":"The
|
|
70
|
+
Index library"},{"creator":"Antoninus (Florentinus)","date":"1511-01-01T00:00:00Z","identifier":"bub_gb_7w1KAAAAcAAJ","language":"English","title":"Tractatus
|
|
71
|
+
de censuris ecclesiasticis Item tractatus de sponsalibus & matrimoniis"},{"creator":"Helwig,
|
|
72
|
+
Andreas","date":"1512-01-01T00:00:00Z","identifier":"antichristusromanus","language":"eng","title":"Antichristus
|
|
73
|
+
Romanus"},{"creator":"Plat\u00f3n","date":"1513-01-01T00:00:00Z","identifier":"bub_gb_D9EFQicVLJMC_2","language":"English","title":"Apanta
|
|
74
|
+
ta tou Platonos"},{"creator":["Whittington, Robert, -approximately 1560","Negro,
|
|
75
|
+
Pescennio Francesco, 1452-","Worde, Wynkyn de, -1534? printer","Littlefield,
|
|
76
|
+
George Emery, 1844-1915, former owner","Shillaber, William Green, former owner","Leigh,
|
|
77
|
+
Chandos, 1791-1850, former owner"],"date":"1513-01-01T00:00:00Z","identifier":"robertiwhittinto00whit","language":"eng","title":"Roberti
|
|
78
|
+
whittintoni lichfeldiensis editio : secunda pars grammatices : De sillaba
|
|
79
|
+
et eius quantitate .."},{"date":"1514-01-01T00:00:00Z","identifier":"bub_gb_3ONLAAAAcAAJ","language":"English","title":"Erkl\u00e4rung
|
|
80
|
+
Entscheid und entlicher vortrag in den Irrungen zwischen der Geistlichkeit
|
|
81
|
+
und der Stadt Speier 1514"},{"creator":"Georg Peurbach","date":"1514-01-01T00:00:00Z","identifier":"bub_gb_SRYkk0MwYvQC","language":"English","title":"Tabulae
|
|
82
|
+
eclypsium magistri Georgij Peurbachij. Tabula primi mobilis Ioannis de Monteregio.
|
|
83
|
+
Indices praeterea monumentorum quae clarissimi uiri studii Viennensis alumni
|
|
84
|
+
in astronomia & aliis mathematicis disciplinis scripta reliquerunt. .."},{"creator":"British
|
|
85
|
+
Record Society","date":"1514-01-01T00:00:00Z","identifier":"indexlibrary1615brit_0","language":"eng","title":"The
|
|
86
|
+
Index library"},{"creator":"Macer Floridus , Macer, Odo , Aemilius Macer","date":"1515-01-01T00:00:00Z","identifier":"herbarumvariasq00macegoog","language":"eng","title":"Herbarum
|
|
87
|
+
varias qui vis cognoscere vires: huc Macer adest, quo duce doctor eris"},{"creator":"British
|
|
88
|
+
Record Society","date":"1516-01-01T00:00:00Z","identifier":"indexlibrary7151brit_0","language":"eng","title":"The
|
|
89
|
+
Index library"},{"creator":"Libanio","date":"1517-01-01T00:00:00Z","identifier":"bub_gb_qPzCHRlM5tEC","language":"English","title":"Libaniou
|
|
90
|
+
sophistou Meletai logoi te kai ekphraseis"},{"creator":"Aristides retore (retore)","date":"1517-01-01T00:00:00Z","identifier":"bub_gb_lFTiWgNN41kC","language":"English","title":"Logoi
|
|
91
|
+
Aristeidou. Orationes Aristidis"},{"creator":"United States.: Bureau of Foreign
|
|
92
|
+
and Domestic Commerce","date":"1517-01-01T00:00:00Z","identifier":"supplementtoc19191820unit","language":"eng","title":"Supplement
|
|
93
|
+
to Commerce reports : daily consular and trade reports issued by the Bureau
|
|
94
|
+
of Foreign and Domestic Commerce, Department of Commerce"},{"creator":["Llull,
|
|
95
|
+
Ramon, 1232?-1316","Lavinheta, Bernardus de"],"date":"1517-01-01T00:00:00Z","identifier":"illuminatisacrep00llul","language":"eng","title":"Illuminati
|
|
96
|
+
sacre pagine p.fessoris amplissimi magistri Raymundi Lull. Ars magna, generalis
|
|
97
|
+
et vltima : quarucunq3 artium [et] scientiarum ipsius Lull. assecutrix et
|
|
98
|
+
clauigera : [et] ad eas aditum faciliore prebes, antehac nusq3 arti impressorie
|
|
99
|
+
emuctius c\u00f5mendata"},{"creator":["Llull, Ramon, 1232?-1316","Lavinheta,
|
|
100
|
+
Bernardus de"],"date":"1517-01-01T00:00:00Z","identifier":"gri_c00033125008263424","language":"eng","title":"Illuminati
|
|
101
|
+
sacre pagine p.fessoris amplissimi magistri Raymundi Lull. Ars magna, generalis
|
|
102
|
+
et vltima : quaru\u0303cunq3 artium [et] scientiarum ipsius Lull. assecutrix
|
|
103
|
+
et clauigera : [et] ad eas aditum faciliore\u0303 prebe\u0303s, antehac nusq\u03033
|
|
104
|
+
arti impressorie emu\u0303ctius co\u0303mendata"},{"date":"1518-01-01T00:00:00Z","identifier":"bub_gb_yVjXiO4WphEC","language":"English","title":"Commentarii
|
|
105
|
+
in septem tragedias Sophoclis quae ex aliis eius compluribus iniuria temporum
|
|
106
|
+
amissis, solae superfuerunt opus exactissimum rarissimumque in Gymnasio Mediceo
|
|
107
|
+
... recognitum repurgatumque .."},{"creator":"Jakob Mennel","date":"1518-01-01T00:00:00Z","identifier":"bub_gb_qkpTAAAAcAAJ","language":"English","title":"De
|
|
108
|
+
inclito atque apud Germanos rarissimo actu ecclesiastico Kalend. Augusti Auguste,
|
|
109
|
+
celebrato anno domini 1518"},{"creator":"Ulrich Zasius","date":"1519-01-01T00:00:00Z","identifier":"bub_gb_4EpTAAAAcAAJ","language":"English","title":"Oratio
|
|
110
|
+
Friburgi in funere Maximiliani Imp. habita"},{"creator":"Aristoteles","date":"1519-01-01T00:00:00Z","identifier":"bub_gb_rzHa0ZmorUkC","language":"English","title":"Aristotelis
|
|
111
|
+
Tres de anima libri per Joannem Argyropylum e greco in latinum traducti"},{"creator":"Jakob
|
|
112
|
+
Sprenger","date":"1519-01-01T00:00:00Z","identifier":"bub_gb_TTg8AAAAcAAJ","language":"English","title":"Malleus
|
|
113
|
+
maleficarum"},{"creator":"Martin Luther","date":"1520-01-01T00:00:00Z","identifier":"bub_gb_L1ZdAAAAcAAJ","language":"English","title":"Ein
|
|
114
|
+
Sermon von dem n\u00fcwen Testament das ist von der heiligen Me\u00df"},{"creator":"\u00c9tienne
|
|
115
|
+
de La Roche","date":"1520-01-01T00:00:00Z","identifier":"bub_gb_9xg8AAAAcAAJ","language":"English","title":"L''
|
|
116
|
+
arismethique nouellement composee"},{"creator":"Carver, Robert","date":"1520-01-01T00:00:00Z","identifier":"imslp-bone-jesu--19-carver-robert","language":"English","title":"O
|
|
117
|
+
bone Jesu \u00e0 19"},{"creator":"Ferdinando Ponzetti","date":"1521-01-01T00:00:00Z","identifier":"bub_gb_QghTAAAAcAAJ","language":"English","title":"Summa
|
|
118
|
+
brevis Theologiae"},{"creator":["[London]Printed for the Chetham society,","Bradshaw,
|
|
119
|
+
Henry, d. 1513","Hawkins, Edward, 1780-1867, ed"],"date":"1521-01-01T00:00:00Z","identifier":"holylyfehistoryo00lond","language":"eng","title":"The
|
|
120
|
+
holy lyfe and history of Saynt Werburge,very frutefull for all Christen people
|
|
121
|
+
to rede."},{"date":"1521-01-01T00:00:00Z","identifier":"passyonsicofourl00rivi","language":"eng","title":"The
|
|
122
|
+
passyon of our lorde"},{"creator":"Apollonius : Rhodius","date":"1521-01-01T00:00:00Z","identifier":"bub_gb_iZYX7VSahu8C","language":"English","title":"Apolloniou
|
|
123
|
+
tou rodiou Argonautika, meta t\u014dn palai\u014dn te, kai panu \u014dphelimon
|
|
124
|
+
scholi\u014dn. Apollonij rhodij Argonautica, antiquis una, & optimis cum commentarijs"},{"creator":["Bradshaw,
|
|
125
|
+
Henry, d. 1513","Hawkins, Edward, 1780-1867, ed"],"date":"1521-01-01T00:00:00Z","identifier":"holylyfeandhist00hawkgoog","language":["eng","lat"],"title":"The
|
|
126
|
+
holy lyfe and history of Saynt Werburge, very frutefull for all Christen people
|
|
127
|
+
to rede"},{"creator":"Andrew, Laurence","date":"1521-01-01T00:00:00Z","identifier":"hin-wel-all-00001107-001","language":"eng","title":"The
|
|
128
|
+
noble lyfe & natures of man, of bestes, serpentys, fowles & fisshes yt be
|
|
129
|
+
moste knowen / [Laurence Andrew]"},{"creator":["Bradshaw, Henry, d. 1513","Hawkins,
|
|
130
|
+
Edward, 1780-1867, ed"],"date":"1521-01-01T00:00:00Z","identifier":"holylyfeandhist02hawkgoog","language":["eng","lat"],"title":"The
|
|
131
|
+
holy lyfe and history of Saynt Werburge, very frutefull for all Christen people
|
|
132
|
+
to rede"}]}}'
|
|
108
133
|
http_version:
|
|
109
|
-
recorded_at:
|
|
110
|
-
recorded_with: VCR
|
|
134
|
+
recorded_at: Mon, 05 Mar 2018 04:54:24 GMT
|
|
135
|
+
recorded_with: VCR 4.0.0
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: archivist-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Duane Johnson
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2018-
|
|
12
|
+
date: 2018-09-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rake
|
|
@@ -259,7 +259,6 @@ files:
|
|
|
259
259
|
- spec/fixtures/download_files.xml
|
|
260
260
|
- spec/fixtures/query-response.json
|
|
261
261
|
- spec/fixtures/vcr/download.yml
|
|
262
|
-
- spec/fixtures/vcr/links.yml
|
|
263
262
|
- spec/fixtures/vcr/search.yml
|
|
264
263
|
- spec/models/body_spec.rb
|
|
265
264
|
- spec/models/document_spec.rb
|
|
@@ -292,26 +291,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
292
291
|
version: '0'
|
|
293
292
|
requirements: []
|
|
294
293
|
rubyforge_project:
|
|
295
|
-
rubygems_version: 2.
|
|
294
|
+
rubygems_version: 2.7.7
|
|
296
295
|
signing_key:
|
|
297
296
|
specification_version: 4
|
|
298
297
|
summary: archivist-client is an archive.org client library
|
|
299
298
|
test_files:
|
|
299
|
+
- spec/spec_helper.rb
|
|
300
|
+
- spec/representations/query_response_spec.rb
|
|
301
|
+
- spec/representations/format_index_spec.rb
|
|
302
|
+
- spec/representations/document_spec.rb
|
|
300
303
|
- spec/client_spec.rb
|
|
301
|
-
- spec/
|
|
302
|
-
- spec/
|
|
303
|
-
- spec/
|
|
304
|
-
- spec/fixtures/vcr/download.yml
|
|
305
|
-
- spec/fixtures/vcr/links.yml
|
|
306
|
-
- spec/fixtures/vcr/search.yml
|
|
304
|
+
- spec/models/query_response_spec.rb
|
|
305
|
+
- spec/models/parameters_spec.rb
|
|
306
|
+
- spec/models/header_spec.rb
|
|
307
307
|
- spec/models/body_spec.rb
|
|
308
|
-
- spec/models/document_spec.rb
|
|
309
308
|
- spec/models/file_format_spec.rb
|
|
310
309
|
- spec/models/format_index_spec.rb
|
|
311
|
-
- spec/models/
|
|
312
|
-
- spec/
|
|
313
|
-
- spec/
|
|
314
|
-
- spec/
|
|
315
|
-
- spec/
|
|
316
|
-
- spec/
|
|
317
|
-
- spec/spec_helper.rb
|
|
310
|
+
- spec/models/document_spec.rb
|
|
311
|
+
- spec/fixtures/download_files.xml
|
|
312
|
+
- spec/fixtures/query-response.json
|
|
313
|
+
- spec/fixtures/vcr/search.yml
|
|
314
|
+
- spec/fixtures/vcr/download.yml
|
|
315
|
+
- spec/fixtures/document.json
|
data/spec/fixtures/vcr/links.yml
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
http_interactions:
|
|
3
|
-
- request:
|
|
4
|
-
method: get
|
|
5
|
-
uri: http://archive.org/download/firstbooknapole00gruagoog/firstbooknapole00gruagoog_files.xml
|
|
6
|
-
body:
|
|
7
|
-
encoding: US-ASCII
|
|
8
|
-
string: ''
|
|
9
|
-
headers:
|
|
10
|
-
User-Agent:
|
|
11
|
-
- Faraday v0.8.8
|
|
12
|
-
Accept-Encoding:
|
|
13
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
14
|
-
Accept:
|
|
15
|
-
- ! '*/*'
|
|
16
|
-
response:
|
|
17
|
-
status:
|
|
18
|
-
code: 302
|
|
19
|
-
message: Moved Temporarily
|
|
20
|
-
headers:
|
|
21
|
-
Server:
|
|
22
|
-
- nginx/1.1.19
|
|
23
|
-
Date:
|
|
24
|
-
- Thu, 07 Nov 2013 03:22:15 GMT
|
|
25
|
-
Content-Type:
|
|
26
|
-
- text/html; charset=UTF-8
|
|
27
|
-
Transfer-Encoding:
|
|
28
|
-
- chunked
|
|
29
|
-
Connection:
|
|
30
|
-
- keep-alive
|
|
31
|
-
X-Powered-By:
|
|
32
|
-
- PHP/5.3.10-1ubuntu3.2
|
|
33
|
-
Accept-Ranges:
|
|
34
|
-
- bytes
|
|
35
|
-
Location:
|
|
36
|
-
- http://ia700307.us.archive.org/23/items/firstbooknapole00gruagoog/firstbooknapole00gruagoog_files.xml
|
|
37
|
-
body:
|
|
38
|
-
encoding: US-ASCII
|
|
39
|
-
string: ''
|
|
40
|
-
http_version:
|
|
41
|
-
recorded_at: Thu, 07 Nov 2013 03:22:15 GMT
|
|
42
|
-
- request:
|
|
43
|
-
method: get
|
|
44
|
-
uri: http://ia700307.us.archive.org/23/items/firstbooknapole00gruagoog/firstbooknapole00gruagoog_files.xml
|
|
45
|
-
body:
|
|
46
|
-
encoding: US-ASCII
|
|
47
|
-
string: ''
|
|
48
|
-
headers:
|
|
49
|
-
User-Agent:
|
|
50
|
-
- Faraday v0.8.8
|
|
51
|
-
Accept-Encoding:
|
|
52
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
|
53
|
-
Accept:
|
|
54
|
-
- ! '*/*'
|
|
55
|
-
response:
|
|
56
|
-
status:
|
|
57
|
-
code: 200
|
|
58
|
-
message: !binary |-
|
|
59
|
-
T0s=
|
|
60
|
-
headers:
|
|
61
|
-
!binary "U2VydmVy":
|
|
62
|
-
- !binary |-
|
|
63
|
-
bmdpbngvMS4xLjE5
|
|
64
|
-
!binary "RGF0ZQ==":
|
|
65
|
-
- !binary |-
|
|
66
|
-
VGh1LCAwNyBOb3YgMjAxMyAwMzoyMjoxNSBHTVQ=
|
|
67
|
-
!binary "Q29udGVudC1UeXBl":
|
|
68
|
-
- !binary |-
|
|
69
|
-
dGV4dC94bWw=
|
|
70
|
-
!binary "TGFzdC1Nb2RpZmllZA==":
|
|
71
|
-
- !binary |-
|
|
72
|
-
RnJpLCAxOSBOb3YgMjAxMCAwMzowNTozNyBHTVQ=
|
|
73
|
-
!binary "VHJhbnNmZXItRW5jb2Rpbmc=":
|
|
74
|
-
- !binary |-
|
|
75
|
-
Y2h1bmtlZA==
|
|
76
|
-
!binary "Q29ubmVjdGlvbg==":
|
|
77
|
-
- !binary |-
|
|
78
|
-
a2VlcC1hbGl2ZQ==
|
|
79
|
-
!binary "RXhwaXJlcw==":
|
|
80
|
-
- !binary |-
|
|
81
|
-
VGh1LCAwNyBOb3YgMjAxMyAwOToyMjoxNSBHTVQ=
|
|
82
|
-
!binary "Q2FjaGUtQ29udHJvbA==":
|
|
83
|
-
- !binary |-
|
|
84
|
-
bWF4LWFnZT0yMTYwMA==
|
|
85
|
-
!binary "Q29udGVudC1FbmNvZGluZw==":
|
|
86
|
-
- !binary |-
|
|
87
|
-
Z3ppcA==
|
|
88
|
-
body:
|
|
89
|
-
encoding: ASCII-8BIT
|
|
90
|
-
string: !binary |-
|
|
91
|
-
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
-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
-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
-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
-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
-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
-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
-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
-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
-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
-
++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
-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
-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
-
/6LMOIuB2aBtkLZYyyp3glNAWgmfwaKViKyjLLkHYlsoC+4l85up1aKcnZKW
|
|
105
|
-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
-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
-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
-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
-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
-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
-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
-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
-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
-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
-
skWYVcpX5q+L1NIWrfY+tkUyeG9QRFF0mA5JB8+95gxuh5MSOa+TZh4zV4SX
|
|
116
|
-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
-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
-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
-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
-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
-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
-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
-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
|
|
124
|
-
js9vbwHVMsvav3hz8R/MlD5c6RAAAA==
|
|
125
|
-
http_version:
|
|
126
|
-
recorded_at: Thu, 07 Nov 2013 03:22:16 GMT
|
|
127
|
-
recorded_with: VCR 2.2.5
|