barx 0.1.0
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.
- data/MIT-LICENSE +21 -0
- data/README +11 -0
- data/examples/README +78 -0
- data/examples/dix +47 -0
- data/examples/proxri +41 -0
- data/examples/xrioid +66 -0
- data/lib/barx.rb +9 -0
- data/lib/httpclient/cacert.p7s +952 -0
- data/lib/httpclient/cookie.rb +541 -0
- data/lib/httpclient/http.rb +602 -0
- data/lib/httpclient.rb +2054 -0
- data/lib/xri_parser.rb +163 -0
- data/lib/xri_resolver.rb +1056 -0
- data/test/authority_parser_profile.rb +14 -0
- data/test/test_helper.rb +7 -0
- data/test/unit/all.rb +7 -0
- data/test/unit/authority_parser_test.rb +300 -0
- data/test/unit/input_param_parser_test.rb +93 -0
- data/test/unit/multi_stage_resolution_test.rb +44 -0
- data/test/unit/sep_selection_test.rb +87 -0
- data/test/xrds_sources/empty_sels_no_append_qxri_sep +13 -0
- data/test/xrds_sources/empty_sels_sep +13 -0
- data/test/xrds_sources/first_stage1 +38 -0
- data/test/xrds_sources/no_svc_sep +8 -0
- data/test/xrds_sources/second_stage1 +26 -0
- data/test/xrds_sources/sep1 +31 -0
- metadata +82 -0
@@ -0,0 +1,31 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<XRDS ref="xri://=example" xmlns="xri://$xrds">
|
3
|
+
<XRD xmlns="xri://$xrd*($v*2.0)">
|
4
|
+
<Query>*example</Query>
|
5
|
+
<Status code="100"/>
|
6
|
+
<CanonicalID priority="10">=!1234.5678</CanonicalID>
|
7
|
+
|
8
|
+
<Service priority="9">
|
9
|
+
<Type match="null"/>
|
10
|
+
<Type select="true">xri://+i-service*(+forwarding)*($v*1.0)</Type>
|
11
|
+
<Path match="default"/>
|
12
|
+
<Path select="true">(+index)</Path>
|
13
|
+
<URI append="qxri">http://example.com/forwarding/</URI>
|
14
|
+
</Service>
|
15
|
+
|
16
|
+
<Service priority="10">
|
17
|
+
<Type select="true">http://openid.net/signon/1.0</Type>
|
18
|
+
<URI append="qxri" priority="20">http://example.com/openid/</URI>
|
19
|
+
<URI append="qxri" priority="10">https://example.com/openid/</URI>
|
20
|
+
</Service>
|
21
|
+
|
22
|
+
<Service priority="10">
|
23
|
+
<Type select="true">xri://+i-service*(+contact)*($v*1.0)</Type>
|
24
|
+
<Type match="default"/>
|
25
|
+
<Path select="true">(+contact)</Path>
|
26
|
+
<Path match="null"/>
|
27
|
+
<URI append="qxri" priority="1">http://example.com/contact/</URI>
|
28
|
+
</Service>
|
29
|
+
|
30
|
+
</XRD>
|
31
|
+
</XRDS>
|
metadata
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.0
|
3
|
+
specification_version: 1
|
4
|
+
name: barx
|
5
|
+
version: !ruby/object:Gem::Version
|
6
|
+
version: 0.1.0
|
7
|
+
date: 2007-10-17 00:00:00 +00:00
|
8
|
+
summary: Provides XRI resolution services. Read more about XRI resolution at http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=xri.
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email:
|
12
|
+
homepage: http://xrisoft.org/
|
13
|
+
rubyforge_project: barx
|
14
|
+
description:
|
15
|
+
autorequire: barx
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
25
|
+
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
29
|
+
authors:
|
30
|
+
- Victor Grey and Kermit Snelson
|
31
|
+
files:
|
32
|
+
- test
|
33
|
+
- lib
|
34
|
+
- examples
|
35
|
+
- MIT-LICENSE
|
36
|
+
- README
|
37
|
+
- lib/httpclient
|
38
|
+
- lib/httpclient/http.rb
|
39
|
+
- lib/httpclient/cacert.p7s
|
40
|
+
- lib/httpclient/cookie.rb
|
41
|
+
- lib/httpclient.rb
|
42
|
+
- lib/xri_parser.rb
|
43
|
+
- lib/xri_resolver.rb
|
44
|
+
- lib/barx.rb
|
45
|
+
- test/unit
|
46
|
+
- test/unit/multi_stage_resolution_test.rb
|
47
|
+
- test/unit/authority_parser_test.rb
|
48
|
+
- test/unit/all.rb
|
49
|
+
- test/unit/input_param_parser_test.rb
|
50
|
+
- test/unit/sep_selection_test.rb
|
51
|
+
- test/xrds_sources
|
52
|
+
- test/xrds_sources/second_stage1
|
53
|
+
- test/xrds_sources/empty_sels_no_append_qxri_sep
|
54
|
+
- test/xrds_sources/sep1
|
55
|
+
- test/xrds_sources/empty_sels_sep
|
56
|
+
- test/xrds_sources/first_stage1
|
57
|
+
- test/xrds_sources/no_svc_sep
|
58
|
+
- test/test_helper.rb
|
59
|
+
- test/authority_parser_profile.rb
|
60
|
+
- examples/proxri
|
61
|
+
- examples/dix
|
62
|
+
- examples/README
|
63
|
+
- examples/xrioid
|
64
|
+
test_files: []
|
65
|
+
|
66
|
+
rdoc_options:
|
67
|
+
- --title
|
68
|
+
- BARX RDoc Documentation
|
69
|
+
- --exclude
|
70
|
+
- httpclient
|
71
|
+
- --main
|
72
|
+
- examples/README
|
73
|
+
extra_rdoc_files:
|
74
|
+
- examples/README
|
75
|
+
executables: []
|
76
|
+
|
77
|
+
extensions: []
|
78
|
+
|
79
|
+
requirements: []
|
80
|
+
|
81
|
+
dependencies: []
|
82
|
+
|