discodactyl 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS ADDED
@@ -0,0 +1 @@
1
+ Joseph Anthony Pasquale Holsten <joseph@josephholsten.com>
data/CHANGELOG ADDED
@@ -0,0 +1,452 @@
1
+ 2010-07-08 Joseph Holsten <joseph@josephholsten.com>
2
+
3
+ * bin/webfinger: display any hcard, openid, profile, contacts and
4
+ status info found. Backwards incompatible with the useless behavior of
5
+ just spitting out xml.
6
+
7
+ * bin/webfinger: rescue host-meta 404s with a pleasant error message.
8
+ * lib/discodactyl/host_meta.rb: (HostMeta::from_uri): pass base_uri
9
+ into any 404 errors.
10
+ * lib/discodactyl/host_meta.rb: (Discodactyl::HostMetaHTTPError): add.
11
+
12
+ 2010-06-21 Joseph Holsten <joseph@josephholsten.com>
13
+
14
+ * lib/discodactyl/xrd/document.rb (Document#links=): remove. This is a
15
+ breaking change.
16
+
17
+ * lib/discodactyl/xrd/document.rb (Document#initialize)
18
+ (Document#links): collect links at runtime, instead of at
19
+ initialization.
20
+
21
+ * lib/discodactyl/xrd/document.rb (Document#append): ensure ids are
22
+ uniquene.
23
+
24
+ * lib/discodactyl/xrd/document.rb (Document#find_link_by_id)
25
+ (Document#ids, Discodactyl::XRD::Document#generate_tag_uri): add.
26
+
27
+ * lib/discodactyl/xrd/link.rb (Link#id, Link#id=, Link#to_s)
28
+ (Link#==): add.
29
+
30
+ 2010-06-20 Joseph Holsten <joseph@josephholsten.com>
31
+
32
+ * lib/discodactyl/xrd/document.rb (Document#append): add
33
+ * lib/discodactyl/xrd/link.rb (Link#raw) add
34
+
35
+ 2010-05-17 Joseph Holsten <joseph@josephholsten.com>
36
+
37
+ * lib/discodactyl/uri_template.rb (URITemplate): move into Discodactyl
38
+
39
+ 2010-03-26 Joseph Holsten <joseph@josephholsten.com>
40
+
41
+ * Rakefile: remove gem building task
42
+ * discodactyl.gemspec: extracted from Rakefile
43
+
44
+ * MANIFEST: add new files, sort
45
+ * Rakefile: have check_manifest sort
46
+
47
+ * bin/webfinger.rb -> bin/webfinger: renamed
48
+
49
+ * Rakefile: remove hoe deps
50
+
51
+ 2010-03-19 Joseph Holsten <joseph@josephholsten.com>
52
+
53
+ * lib/discodactyl.rb (Discodactyl::VERSION): bumped to 0.2.0
54
+
55
+ 2010-03-14 Joseph Holsten <joseph@josephholsten.com>
56
+
57
+ * test/test_xrd_link_parse.rb: require xrd
58
+
59
+ * lib/discodactyl/xrd/document.rb (Discodactyl::XRD::XMLNS): Added. All
60
+ hardcoded usages changed.
61
+
62
+ * lib/discodactyl/resource_discovery.rb: remove unused require
63
+
64
+ * test/test_resource_discovery.rb: require only SUT
65
+
66
+ * lib/discodactyl/xrd/document.rb: require link
67
+ * lib/discodactyl/xrd/link.rb: require uri template
68
+
69
+ * test/test_xrd_parse.rb: require only SUT
70
+
71
+ * lib/discodactyl/xrd/xrd.rb -> lib/discodactyl/xrd/document.rb:
72
+ Renamed, all requires changed
73
+
74
+ * test/test_xrd_link_parse.rb
75
+ (TestXRDLinkParsing#test_parse_template): check href is nil
76
+
77
+ * test/test_xrd_link_parse.rb: require only SUT
78
+
79
+ * test/test_uri_template.rb: add docs
80
+
81
+ * bin/webfinger.rb: follow the rel='lrdd' and template with 'uri'
82
+
83
+ * lib/discodactyl/xrd/xrd.rb (Discodactyl::XRD::Document#to_s)
84
+ * test/test_xrd_parse.rb (TestXRDParsing#test_to_s): Added
85
+
86
+ * lib/discodactyl/xrd/xrd.rb (Discodactyl::XRD::Document#uris_by_rel): Use
87
+ singular converter
88
+ * test/test_xrd_parse.rb (TestXRDParsing#test_uris_by_rel): Added
89
+
90
+ * lib/discodactyl/xrd/xrd.rb
91
+ (Discodactyl::XRD::Document#linkelems_by_rel): Rewrite to search by rel
92
+ attribute
93
+ * test/test_xrd_parse.rb
94
+ (TestXRDParsing#test_linkelems_by_rel_with_multiple_rels)
95
+ (TestXRDParsing#test_linkelems_by_rel): Use modern examples, expectations
96
+
97
+ * lib/discodactyl/xrd/xrd.rb (Discodactyl::XRD::Document#urielems_by_rel)
98
+ * test/test_xrd_parse.rb
99
+ (TestXRDParsing#test_urielems_by_rel_with_multiple_rels): Removed
100
+
101
+ * test/test_xrd_link_parse.rb: remove unused test helpers from requires
102
+ and load path
103
+
104
+ * test/test_xrd_link_parse.rb
105
+ (TestXRDLinkParsing#test_ignores_template_when_href_exists): Added
106
+
107
+ * test/test_xrd_link_parse.rb
108
+ (TestXRDLinkParsing#test_parse_rels): rename to
109
+ (TestXRDLinkParsing#test_parse_rel)
110
+ (TestXRDLinkParsing#test_parse_media_types): rename to
111
+ (TestXRDLinkParsing#test_parse_type)
112
+ (TestXRDLinkParsing#test_parse_uris): rename to
113
+ (TestXRDLinkParsing#test_parse_href)
114
+ (TestXRDLinkParsing#test_parse_uri_templates): rename to
115
+ (TestXRDLinkParsing#test_parse_template)
116
+
117
+ * lib/discodactyl/xrd/link.rb (Discodactyl::XRD::Link::parse): Rewrite for
118
+ modern XRD link schema
119
+
120
+ * lib/discodactyl/xrd/link.rb (Discodactyl::XRD::Link#media_types)
121
+ (Discodactyl::XRD::Link#media_types=, Discodactyl::XRD::Link#uris)
122
+ (Discodactyl::XRD::Link#uris=, Discodactyl::XRD::Link#rels)
123
+ (Discodactyl::XRD::Link#rels=): Remove plural accessors
124
+ * lib/discodactyl/xrd/link.rb (Discodactyl::XRD::Link#href)
125
+ (Discodactyl::XRD::Link#href=, Discodactyl::XRD::Link#template)
126
+ (Discodactyl::XRD::Link#template=, Discodactyl::XRD::Link#type)
127
+ (Discodactyl::XRD::Link#type=, Discodactyl::XRD::Link#rel)
128
+ (Discodactyl::XRD::Link#rel=): Add singular accessors
129
+ * test/test_xrd_link_parse.rb (TestXRDLinkParsing#test_parse_media_types)
130
+ (TestXRDLinkParsing#test_parse_rels, TestXRDLinkParsing#test_parse_uris)
131
+ (TestXRDLinkParsing#test_parse_uri_templates)
132
+ (TestXRDLinkParsing#test_parse_all): Changed to modern sample data and
133
+ singular accessors
134
+
135
+ * lib/discodactyl/xrd/link.rb (Discodactyl::XRD::Link#to_uris): Removed
136
+ plural converter
137
+ * lib/discodactyl/xrd/link.rb (Discodactyl::XRD::Link#to_uri): Added
138
+ replacement singular converter
139
+ * test/test_xrd_link_parse.rb
140
+ (TestXRDLinkParsing#test_to_uris_for_uri_template)
141
+ (TestXRDLinkParsing#test_to_uris_for_plain_uri): Changed to modern sample
142
+ data and singular converter
143
+
144
+ * lib/discodactyl/xrd/link.rb (Discodactyl::XRD::Link::map_texts)
145
+ (Discodactyl::XRD::Link#has_rel?, Discodactyl::XRD::Link#has_media_type?):
146
+ Removed, no replacements provided
147
+
148
+ * test/test_xrd_link_parse.rb (TestXRDLinkParsing#assert_has_media_type?)
149
+ (TestXRDLinkParsing#test_has_rel?, TestXRDLinkParsing#assert_has_rel?)
150
+ (TestXRDLinkParsing#test_to_uris_for_mixed_uris_and_uri_templates)
151
+ (TestXRDLinkParsing#test_has_media_type?): Removed
152
+
153
+ * test/test_uri_template.rb: Require only SUT
154
+
155
+ * lib/discodactyl/uri_template.rb (URITemplate#to_uri): Percent encode for
156
+ basic template parameters
157
+
158
+ * test/test_uri_template.rb (TestURITemplate#test_render_encode_uri)
159
+ (TestURITemplate#test_render_encode): Added
160
+
161
+ * test/test_host_meta.rb: require only SUT
162
+
163
+ * test/test_host_meta.rb: remove require
164
+
165
+ * test/test_resource_discovery.rb, test/test_xrd_link_parse.rb
166
+ test/test_xrd_parse.rb: add test to load path
167
+
168
+ * lib/discodactyl/resource_discovery.rb
169
+ (Discodactyl::ResourceDiscovery::parse_link_header)
170
+ (Discodactyl::ResourceDiscovery::insert_name_into_hash): factor out
171
+ into LinkHeader
172
+
173
+ * lib/discodactyl/link_header.rb (Discodactyl::LinkHeader): Added
174
+
175
+ * lib/discodactyl/resource_discovery.rb
176
+ (Discodactyl::ResourceDiscovery::get_uris_by_rel_from_link_header): Parse
177
+ using LinkHeader
178
+
179
+ * test/test_link_header.rb: test LinkHeader refactor
180
+
181
+ * test/test_acct_uri.rb: only require SUT
182
+
183
+ * bin/webfinger.rb, test/test_acct_uri.rb, test/test_helper.rb
184
+ test/test_host_meta.rb, test/test_link_header.rb
185
+ test/test_resource_discovery.rb, test/test_uri_template.rb
186
+ test/test_xrd_link_parse.rb, test/test_xrd_parse.rb: setup loadpath and
187
+ requires properly
188
+
189
+ * lib/discodactyl/resource_discovery.rb: require only needed lib
190
+
191
+ 2009-09-13 Joseph Holsten <joseph@josephholsten.com>
192
+
193
+ * bin/webfinger.rb: Use Nokogiri::XML
194
+ * lib/discodactyl/xrd/xrd.rb: Use Nokogiri::XML
195
+ * test/test_xrd_parse.rb: add many tests
196
+
197
+ 2009-08-25 Joseph Holsten <joseph@josephholsten.com>
198
+
199
+ Rename package to discodactyl.
200
+
201
+ * ChangeLog:
202
+ * Manifest.txt:
203
+ * Rakefile:
204
+ * bin/webfinger.rb:
205
+ * lib/discodactyl.rb:
206
+ * lib/discodactyl/acct_uri.rb:
207
+ * lib/discodactyl/host_meta.rb:
208
+ * lib/discodactyl/resource_discovery.rb:
209
+ * lib/discodactyl/uri_template.rb:
210
+ * lib/discodactyl/xrd.rb:
211
+ * lib/discodactyl/xrd/link.rb:
212
+ * lib/discodactyl/xrd/xrd.rb:
213
+ * test/test_acct_uri.rb:
214
+ * test/test_host_meta.rb:
215
+ * test/test_link_header.rb:
216
+ * test/test_resource_discovery.rb:
217
+ * test/test_uri_template.rb:
218
+ * test/test_xrd_link_parse.rb:
219
+ * test/test_xrd_parse.rb:
220
+
221
+ 2009-08-25 Joseph Holsten <joseph@josephholsten.com>
222
+
223
+ Change README extension to .rdoc for github.
224
+
225
+ * README.rdoc:
226
+
227
+ 2009-08-23 Joseph Holsten <joseph@josephholsten.com>
228
+
229
+ Wrap discovery components together into a generalized LRDD implementation. Update examples in README and webfinger.rb.
230
+
231
+ * README.txt:
232
+ * bin/webfinger.rb:
233
+ * lib/xrd/acct_uri.rb:
234
+ (URI::ACCT::parse):
235
+ * lib/xrd/resource_discovery.rb:
236
+ (XRD::ResourceDiscovery::get_uris_by_rel):
237
+ (XRD::ResourceDiscovery::lrdd_discovery):
238
+ (XRD::ResourceDiscovery::content_sniff):
239
+ * test/test_resource_discovery.rb:
240
+ (TestResourceDiscovery#test_get_uris_by_rel_from_html):
241
+ (TestResourceDiscovery#test_get_uris_by_rel_from_header):
242
+ (FakeResp):
243
+
244
+ 2009-08-23 Joseph Holsten <joseph@josephholsten.com>
245
+
246
+ Generalize host-meta discovery.
247
+
248
+ * Manifest.txt:
249
+ * lib/xrd.rb:
250
+ * lib/xrd/host_meta.rb:
251
+ (XRD::HostMeta::get_uri_from_uri):
252
+ (XRD::HostMeta::from_uri):
253
+ * test/test_host_meta.rb:
254
+ (TestHostMeta#test_get_uri_from_host):
255
+ (TestHostMeta#test_get_uri_from_http):
256
+ (TestHostMeta#test_get_uri_from_acct):
257
+
258
+ 2009-08-23 Joseph Holsten <joseph@josephholsten.com>
259
+
260
+ Generalize link header, html discovery.
261
+
262
+ * lib/xrd/resource_discovery.rb:
263
+ (XRD::ResourceDiscover::get_uris_by_rel_from_html):
264
+ (XRD::ResourceDiscover::get_uris_by_rel_from_link_header):
265
+ * test/test_resource_discovery.rb:
266
+ (TestResourceDiscover#test_get_uris_by_rel_from_html):
267
+ (TestResourceDiscover#test_get_uris_by_rel_from_html_with_multiple_rels):
268
+ (TestResourceDiscover#test_get_uris_by_rel_from_link_header):
269
+
270
+ 2009-08-23 Joseph Holsten <joseph@josephholsten.com>
271
+
272
+ Fix link parsing.
273
+
274
+ * lib/xrd/resource_discovery.rb:
275
+ (XRD::ResourceDiscovery::parse_link_header):
276
+ * test/test_link_header.rb:
277
+ (TestLinkHeader#test_parse_rel_and_title):
278
+ (TestLinkHeader#test_parse_seperated_rels):
279
+ (TestLinkHeader#test_parse_simple_link):
280
+ (TestLinkHeader#test_parse_xrd_link):
281
+
282
+ 2009-08-23 Joseph Holsten <joseph@josephholsten.com>
283
+
284
+ Change order of params for assert_include?
285
+
286
+ * test/test_helper.rb:
287
+ (Test::Unit::Assertions#assert_include?):
288
+ * test/test_xrd_link_parse.rb
289
+ (TestXRDLinkParsing#test_parse_all):
290
+ (TestXRDLinkParsing#test_parse_rels):
291
+ (TestXRDLinkParsing#test_parse_media_types):
292
+ (TestXRDLinkParsing#test_parse_uris):
293
+ (TestXRDLinkParsing#test_parse_uri_templates):
294
+ (TestXRDLinkParsing#test_to_uris_for_mixed_uris_and_uri_templates):
295
+ (TestXRDLinkParsing#test_to_uris_for_plain_uri):
296
+ (TestXRDLinkParsing#test_to_uris_for_uri_template):
297
+ * test/test_xrd_parse.rb:
298
+ (TestXRDParsing#test_links_rel):
299
+ (TestXRDParsing#test_uris_by_rel):
300
+
301
+ 2009-08-23 Joseph Holsten <joseph@josephholsten.com>
302
+
303
+ Fill out README.txt, fixing license.
304
+
305
+ * COPYING:
306
+ * Manifest.txt:
307
+ * README.txt:
308
+
309
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
310
+
311
+ Change acct: URIs to implement URI::Generic.
312
+
313
+ * bin/webfinger.rb:
314
+ * lib/xrd/acct_uri.rb:
315
+ (URI::ACCT::parse):
316
+ (URI::ACCT::COMPONENT):
317
+ (URI::ACCT::build):
318
+ (URI::ACCT#initialize):
319
+ (URI::ACCT#parse_opaque):
320
+ (URI::ACCT#local_part):
321
+ (URI::ACCT#set_local_part):
322
+ (URI::ACCT#to_s):
323
+ (URI::ACCT#id):
324
+ (URI::ACCT#heirarchical):
325
+ * test/test_acct_uri.rb:
326
+ (TestURIAcct#test_parse_without_scheme):
327
+ (TestURIAcct#test_parse_with_scheme):
328
+ (TestURIAcct#test_parse_uri_by_scheme):
329
+ (TestURIAcct#test_build_from_hash):
330
+ (TestURIAcct#test_build_from_opaque):
331
+ (TestURIAcct#test_build_from_array):
332
+ (TestURIAcct#test_to_s):
333
+ (TestURIAcct#test_id):
334
+
335
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
336
+
337
+ Add webfinger script.
338
+ Clean up resource discovery.
339
+
340
+ * Manifest.txt:
341
+ * bin/webfinger.rb:
342
+ * lib/xrd/resource_discovery.rb:
343
+ (XRD::ResourceDiscovery::get_describedby_link):
344
+ (XRD::ResourceDiscovery::get_host_meta):
345
+ (XRD::ResourceDiscovery::get_describedby_from_link_header):
346
+ (XRD::ResourceDiscovery::get_describedby_from_html):
347
+ (XRD::ResourceDiscovery::parse_link_header):
348
+ (XRD::ResourceDiscovery::insert_name_into_hash):
349
+ * test/test_resource_discovery.rb:
350
+
351
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
352
+
353
+ Fix Link parsing.
354
+ Get linked URIs by rel.
355
+
356
+ * lib/xrd/link.rb:
357
+ (XRD::Link::parse):
358
+ * lib/xrd/xrd.rb:
359
+ (XRD::Document::parse):
360
+ (XRD::Document#uris_by_rel):
361
+ * test/test_xrd_parse.rb:
362
+ (TestXRDParsing#test_links_by_rel):
363
+ (TestXRDParsing#test_uris_by_rel):
364
+
365
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
366
+
367
+ Add XRD Document parsing
368
+
369
+ * Manifest.txt:
370
+ * lib/xrd.rb:
371
+ (XRD::Document#parse):
372
+ (XRD::Document#links):
373
+ (XRD::Document#links_by_rel):
374
+ * lib/xrd/xrd.rb:
375
+ * test/test_xrd_parse.rb:
376
+
377
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
378
+
379
+ Add XRD Link element parsing
380
+
381
+ * Manifest.txt:
382
+ * lib/xrd.rb:
383
+ * lib/xrd/link.rb:
384
+ * test/test_helper.rb:
385
+ * test/test_xrd_link_parse.rb:
386
+
387
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
388
+
389
+ Add XRD URI Template encoding
390
+
391
+ * Manifest.txt:
392
+ * lib/xrd.rb:
393
+ * lib/xrd/uri_template.rb:
394
+ * test/test_uri_template.rb:
395
+
396
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
397
+
398
+ Add acct: URI parsing
399
+
400
+ * Manifest.txt:
401
+ * lib/xrd.rb:
402
+ * lib/xrd/acct_uri.rb:
403
+ * test/test_acct_uri.rb:
404
+
405
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
406
+
407
+ Remove unused decorated XML implementation
408
+
409
+ * Manifest.txt:
410
+ * lib/xrd/decorators/node.rb:
411
+ * lib/xrd/decorators/xrd.rb:
412
+
413
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
414
+
415
+ fix typo in link header tests
416
+
417
+ * test/test_link_header.rb:
418
+
419
+ 2009-08-22 Joseph Holsten <joseph@josephholsten.com>
420
+
421
+ remove unused rspec testing
422
+
423
+ * specs/fixtures/RSAKeyValue.xml:
424
+ * specs/fixtures/RetrievalMethod.xml:
425
+ * specs/fixtures/X509Data.xml:
426
+ * specs/fixtures/certs/demoCA/cacert.pem:
427
+ * specs/fixtures/certs/demoCA/careq.pem:
428
+ * specs/fixtures/certs/demoCA/crlnumber:
429
+ * specs/fixtures/certs/demoCA/index.txt:
430
+ * specs/fixtures/certs/demoCA/index.txt.attr:
431
+ * specs/fixtures/certs/demoCA/index.txt.attr.old:
432
+ * specs/fixtures/certs/demoCA/index.txt.old:
433
+ * specs/fixtures/certs/demoCA/newcerts/B35E1243DDA85141.pem:
434
+ * specs/fixtures/certs/demoCA/newcerts/B35E1243DDA85142.pem:
435
+ * specs/fixtures/certs/demoCA/private/cakey.pem:
436
+ * specs/fixtures/certs/demoCA/serial:
437
+ * specs/fixtures/certs/demoCA/serial.old:
438
+ * specs/fixtures/certs/newcert.pem:
439
+ * specs/fixtures/certs/newcert.pem.base64:
440
+ * specs/fixtures/certs/newkey.pem:
441
+ * specs/fixtures/certs/newreq.pem:
442
+ * specs/fixtures/general.xml:
443
+ * specs/fixtures/mine.xml:
444
+ * specs/fixtures/spec.xml:
445
+ * specs/xrd-api.rb:
446
+ * stories/xrd-api.rb:
447
+
448
+ === 1.0.0 / 2009-07-25
449
+
450
+ * 1 major enhancement
451
+
452
+ * Add Link Header discovery