barx 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  #!/usr/local/bin/ruby
2
2
 
3
3
  require 'optparse'
4
+ require 'rubygems'
4
5
  require 'barx'
5
6
 
6
7
  opts = Struct.new(:r, :t, :m, :sep).new
@@ -31,9 +32,9 @@ begin
31
32
 
32
33
  case rp.resolution_media_type
33
34
  when 'application/xrds+xml'
34
- ar.to_xrds.write $stdout, indent=0; puts
35
+ puts ar.to_xrds.to_s
35
36
  when 'application/xrd+xml'
36
- ar.last_xrd.write $stdout, indent=0; puts
37
+ puts ar.last_xrd.to_s
37
38
  else
38
39
  unless ar.to_urilist.empty?
39
40
  puts ar.to_urilist.join("\n") << "\n"
data/lib/xri_resolver.rb CHANGED
@@ -918,7 +918,7 @@ module XriResolver
918
918
  priority = 0
919
919
  seplist.each do |sep_pri, sep|
920
920
  sep.delete_attribute('priority')
921
- sep.add_attribute('priority', priority)
921
+ sep.add_attribute('priority', priority.to_s)
922
922
  priority += 1
923
923
  newxrd << sep
924
924
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.4
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: barx
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.1.2
7
- date: 2007-11-04 00:00:00 -07:00
6
+ version: 0.1.3
7
+ date: 2007-11-06 00:00:00 +00:00
8
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
9
  require_paths:
10
10
  - lib
@@ -29,35 +29,35 @@ post_install_message:
29
29
  authors:
30
30
  - Victor Grey and Kermit Snelson
31
31
  files:
32
- - examples
32
+ - test
33
33
  - lib
34
+ - bin
35
+ - examples
34
36
  - MIT-LICENSE
35
37
  - README
36
- - test
37
- - lib/barx.rb
38
38
  - lib/httpclient
39
+ - lib/httpclient/cacert.p7s
40
+ - lib/httpclient/http.rb
41
+ - lib/httpclient/cookie.rb
39
42
  - lib/httpclient.rb
40
43
  - lib/xri_parser.rb
41
44
  - lib/xri_resolver.rb
42
- - lib/httpclient/cacert.p7s
43
- - lib/httpclient/cookie.rb
44
- - lib/httpclient/http.rb
45
- - test/authority_parser_profile.rb
46
- - test/test_helper.rb
45
+ - lib/barx.rb
47
46
  - test/unit
48
- - test/xrds_sources
49
47
  - test/unit/all.rb
48
+ - test/unit/multi_stage_resolution_test.rb
50
49
  - test/unit/authority_parser_test.rb
51
50
  - test/unit/input_param_parser_test.rb
52
- - test/unit/multi_stage_resolution_test.rb
53
51
  - test/unit/sep_selection_test.rb
54
- - test/xrds_sources/empty_sels_no_append_qxri_sep
52
+ - test/xrds_sources
53
+ - test/xrds_sources/second_stage1
54
+ - test/xrds_sources/sep1
55
55
  - test/xrds_sources/empty_sels_sep
56
+ - test/xrds_sources/empty_sels_no_append_qxri_sep
56
57
  - test/xrds_sources/first_stage1
57
58
  - test/xrds_sources/no_svc_sep
58
- - test/xrds_sources/second_stage1
59
- - test/xrds_sources/sep1
60
- - examples/dix
59
+ - test/test_helper.rb
60
+ - test/authority_parser_profile.rb
61
61
  - examples/proxri
62
62
  - examples/README
63
63
  - examples/xrioid
@@ -72,8 +72,8 @@ rdoc_options:
72
72
  - examples/README
73
73
  extra_rdoc_files:
74
74
  - examples/README
75
- executables: []
76
-
75
+ executables:
76
+ - dix
77
77
  extensions: []
78
78
 
79
79
  requirements: []