rio 0.5.1 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +1 -1
  3. data/README +1 -1
  4. data/lib/rio.rb +5 -4
  5. data/lib/rio/abstract_method.rb +1 -1
  6. data/lib/rio/alturi.rb +10 -69
  7. data/lib/rio/alturi/algorithm.rb +1 -18
  8. data/lib/rio/alturi/escape.rb +0 -4
  9. data/lib/rio/alturi/parse.rb +0 -29
  10. data/lib/rio/alturi/path_parts.rb +0 -2
  11. data/lib/rio/alturi/uri_parts.rb +3 -32
  12. data/lib/rio/argv.rb +1 -1
  13. data/lib/rio/arraynge.rb +1 -3
  14. data/lib/rio/arycopy.rb +1 -1
  15. data/lib/rio/assert.rb +31 -47
  16. data/lib/rio/base.rb +1 -1
  17. data/lib/rio/callstr.rb +1 -1
  18. data/lib/rio/const.rb +1 -1
  19. data/lib/rio/construct.rb +1 -1
  20. data/lib/rio/constructor.rb +1 -1
  21. data/lib/rio/context.rb +8 -4
  22. data/lib/rio/context/autoclose.rb +1 -1
  23. data/lib/rio/context/binmode.rb +1 -7
  24. data/lib/rio/context/copying.rb +1 -1
  25. data/lib/rio/context/cxx.rb +1 -1
  26. data/lib/rio/context/dir.rb +1 -1
  27. data/lib/rio/context/encoding.rb +1 -2
  28. data/lib/rio/context/gzip.rb +1 -1
  29. data/lib/rio/context/methods.rb +1 -6
  30. data/lib/rio/context/skip.rb +1 -1
  31. data/lib/rio/context/stream.rb +1 -8
  32. data/lib/rio/cp.rb +1 -1
  33. data/lib/rio/cxuri.rb +11 -7
  34. data/lib/rio/dbg/trace_states.rb +0 -2
  35. data/lib/rio/def.rb +1 -1
  36. data/lib/rio/dir.rb +2 -2
  37. data/lib/rio/doc.rb +1 -1
  38. data/lib/rio/entrysel.rb +6 -6
  39. data/lib/rio/exception.rb +1 -1
  40. data/lib/rio/exception/copy.rb +1 -1
  41. data/lib/rio/exception/notimplemented.rb +1 -1
  42. data/lib/rio/exception/notsupported.rb +1 -1
  43. data/lib/rio/exception/open.rb +1 -12
  44. data/lib/rio/exception/state.rb +1 -1
  45. data/lib/rio/ext.rb +1 -8
  46. data/lib/rio/ext/csv.rb +1 -25
  47. data/lib/rio/ext/csv/csv-legacy.rb +1 -49
  48. data/lib/rio/ext/csv/csv.rb +1 -24
  49. data/lib/rio/ext/csv/filter.rb +1 -19
  50. data/lib/rio/ext/if.rb +1 -1
  51. data/lib/rio/ext/mp3info.rb +6 -5
  52. data/lib/rio/ext/splitlines.rb +1 -23
  53. data/lib/rio/ext/yaml.rb +1 -16
  54. data/lib/rio/ext/yaml/doc.rb +1 -6
  55. data/lib/rio/ext/yaml/tie.rb +4 -7
  56. data/lib/rio/ext/zipfile.rb +1 -56
  57. data/lib/rio/ext/zipfile/fs.rb +1 -30
  58. data/lib/rio/ext/zipfile/rl.rb +1 -128
  59. data/lib/rio/ext/zipfile/rootdir.rb +1 -30
  60. data/lib/rio/ext/zipfile/state.rb +1 -105
  61. data/lib/rio/ext/zipfile/wrap.rb +1 -86
  62. data/lib/rio/factory.rb +2 -100
  63. data/lib/rio/fibpipe.rb +0 -98
  64. data/lib/rio/file.rb +1 -12
  65. data/lib/rio/filter.rb +1 -1
  66. data/lib/rio/filter/closeoneof.rb +1 -10
  67. data/lib/rio/filter/gzip.rb +1 -16
  68. data/lib/rio/fs.rb +75 -92
  69. data/lib/rio/fs/base.rb +1 -1
  70. data/lib/rio/fs/impl.rb +1 -1
  71. data/lib/rio/fs/native.rb +1 -1
  72. data/lib/rio/fs/stream.rb +1 -1
  73. data/lib/rio/fs/url.rb +1 -1
  74. data/lib/rio/ftp/conncache.rb +1 -15
  75. data/lib/rio/ftp/dir.rb +1 -2
  76. data/lib/rio/ftp/fs.rb +1 -13
  77. data/lib/rio/fwd.rb +31 -8
  78. data/lib/rio/grande.rb +2 -4
  79. data/lib/rio/handle.rb +1 -1
  80. data/lib/rio/if.rb +1 -7
  81. data/lib/rio/if/basic.rb +1 -5
  82. data/lib/rio/if/csv.rb +1 -1
  83. data/lib/rio/if/dir.rb +1 -1
  84. data/lib/rio/if/file.rb +1 -1
  85. data/lib/rio/if/fileordir.rb +1 -1
  86. data/lib/rio/if/grande.rb +1 -1
  87. data/lib/rio/if/grande_entry.rb +1 -1
  88. data/lib/rio/if/grande_stream.rb +1 -1
  89. data/lib/rio/if/internal.rb +1 -1
  90. data/lib/rio/if/path.rb +1 -1
  91. data/lib/rio/if/rubyio.rb +1 -1
  92. data/lib/rio/if/string.rb +1 -1
  93. data/lib/rio/if/temp.rb +1 -1
  94. data/lib/rio/if/test.rb +1 -1
  95. data/lib/rio/if/yaml.rb +1 -1
  96. data/lib/rio/ioh.rb +42 -24
  97. data/lib/rio/iomode.rb +3 -3
  98. data/lib/rio/ios/fail.rb +1 -1
  99. data/lib/rio/ios/generic.rb +1 -1
  100. data/lib/rio/ios/mode.rb +1 -1
  101. data/lib/rio/ios/null.rb +1 -13
  102. data/lib/rio/iowrap.rb +1 -14
  103. data/lib/rio/kernel.rb +1 -2
  104. data/lib/rio/local.rb +1 -13
  105. data/lib/rio/match.rb +1 -2
  106. data/lib/rio/matchrecord.rb +5 -34
  107. data/lib/rio/no_warn.rb +1 -1
  108. data/lib/rio/nullio.rb +1 -1
  109. data/lib/rio/open3.rb +1 -10
  110. data/lib/rio/ops.rb +1 -1
  111. data/lib/rio/ops/construct.rb +1 -1
  112. data/lib/rio/ops/create.rb +1 -3
  113. data/lib/rio/ops/dir.rb +4 -46
  114. data/lib/rio/ops/either.rb +1 -3
  115. data/lib/rio/ops/file.rb +1 -25
  116. data/lib/rio/ops/path.rb +1 -18
  117. data/lib/rio/ops/stream.rb +4 -5
  118. data/lib/rio/ops/stream/input.rb +1 -10
  119. data/lib/rio/ops/stream/output.rb +1 -3
  120. data/lib/rio/ops/stream/read.rb +1 -1
  121. data/lib/rio/ops/stream/write.rb +1 -1
  122. data/lib/rio/ops/symlink.rb +1 -10
  123. data/lib/rio/path.rb +1 -4
  124. data/lib/rio/path/reset.rb +1 -6
  125. data/lib/rio/piper.rb +1 -4
  126. data/lib/rio/piper/cp.rb +1 -16
  127. data/lib/rio/prompt.rb +1 -1
  128. data/lib/rio/rectype.rb +1 -4
  129. data/lib/rio/rl/base.rb +1 -14
  130. data/lib/rio/rl/builder.rb +1 -12
  131. data/lib/rio/rl/chmap.rb +1 -11
  132. data/lib/rio/rl/fs2url.rb +1 -8
  133. data/lib/rio/rl/ioi.rb +1 -2
  134. data/lib/rio/rl/path.rb +1 -20
  135. data/lib/rio/rl/pathmethods.rb +1 -3
  136. data/lib/rio/rl/uri.rb +1 -11
  137. data/lib/rio/rl/withpath.rb +2 -30
  138. data/lib/rio/rrl/base.rb +1 -6
  139. data/lib/rio/rrl/builder.rb +2 -8
  140. data/lib/rio/rrl/chmap.rb +1 -11
  141. data/lib/rio/rrl/ioi.rb +1 -3
  142. data/lib/rio/rrl/path.rb +1 -11
  143. data/lib/rio/rrl/withpath.rb +8 -48
  144. data/lib/rio/scheme/aryio.rb +1 -1
  145. data/lib/rio/scheme/cmdio.rb +3 -15
  146. data/lib/rio/scheme/cmdpipe.rb +1 -5
  147. data/lib/rio/scheme/fd.rb +1 -1
  148. data/lib/rio/scheme/ftp.rb +1 -40
  149. data/lib/rio/scheme/http.rb +10 -7
  150. data/lib/rio/scheme/null.rb +1 -1
  151. data/lib/rio/scheme/path.rb +1 -63
  152. data/lib/rio/scheme/stderr.rb +1 -2
  153. data/lib/rio/scheme/stdio.rb +3 -3
  154. data/lib/rio/scheme/strio.rb +1 -3
  155. data/lib/rio/scheme/sysio.rb +1 -1
  156. data/lib/rio/scheme/tcp.rb +1 -2
  157. data/lib/rio/scheme/temp.rb +9 -38
  158. data/lib/rio/state.rb +4 -38
  159. data/lib/rio/state/data.rb +4 -5
  160. data/lib/rio/state/error.rb +2 -6
  161. data/lib/rio/stream.rb +1 -31
  162. data/lib/rio/stream/base.rb +1 -5
  163. data/lib/rio/stream/duplex.rb +1 -16
  164. data/lib/rio/stream/open.rb +1 -11
  165. data/lib/rio/symantics.rb +1 -1
  166. data/lib/rio/tempdir.rb +0 -2
  167. data/lib/rio/to_rio.rb +1 -1
  168. data/lib/rio/to_rio/all.rb +1 -1
  169. data/lib/rio/to_rio/array.rb +1 -1
  170. data/lib/rio/to_rio/io.rb +1 -1
  171. data/lib/rio/to_rio/object.rb +1 -1
  172. data/lib/rio/to_rio/string.rb +1 -1
  173. data/lib/rio/undef_rake_dsl.rb +3 -0
  174. data/lib/rio/uri/file.rb +1 -18
  175. data/lib/rio/uriref.rb +1 -18
  176. data/lib/rio/util.rb +1 -1
  177. data/lib/rio/version.rb +2 -2
  178. data/misc/update-copyright.rb +2 -2
  179. data/rio.gemspec +2 -3
  180. data/test/env.sh +1 -2
  181. data/test/http/tc/copy_from_http.rb +0 -1
  182. data/test/runhttp.rb +2 -1
  183. data/test/runtests.rb +7 -5
  184. data/test/tc/copyarray.rb +4 -4
  185. data/test/tc/copydir.rb +1 -1
  186. metadata +15 -47
@@ -29,8 +29,6 @@ it apart in tempdir.rb.
29
29
  =end
30
30
  require 'tmpdir'
31
31
 
32
-
33
-
34
32
  module AutoRemoval #:nodoc: all
35
33
  MAX_TRY = 10
36
34
  @@cleanlist = []
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -0,0 +1,3 @@
1
+ Rake::DeprecatedObjectDSL.private_instance_methods.each do |method_name|
2
+ Object.send(:undef_method, method_name)
3
+ end if defined?(Rake::DeprecatedObjectDSL)
@@ -20,7 +20,6 @@ module URI
20
20
  #
21
21
  class FILE < Generic
22
22
  include REGEXP
23
- #DEFAULT_PORT = 80
24
23
 
25
24
  COMPONENT = [
26
25
  :scheme,
@@ -78,7 +77,7 @@ module URI
78
77
  if @registry || @opaque
79
78
  raise InvalidURIError,
80
79
  "can not set host with registry or opaque"
81
- # elsif v != '' and @parser.regexp[:HOST] !~ v
80
+ # elsif v != '' and @parser.regexp[:HOST] !~ v
82
81
  elsif v != '' and HOST !~ v
83
82
  raise InvalidComponentError,
84
83
  "bad component(expected host component): #{v}"
@@ -114,22 +113,6 @@ module URI
114
113
  self.host = '' if self.host.nil?
115
114
  end
116
115
 
117
- #
118
- # == Description
119
- #
120
- # Returns the full path for an HTTP request, as required by Net::HTTP::Get.
121
- #
122
- # If the URI contains a query, the full path is URI#path + '?' + URI#query.
123
- # Otherwise, the path is simply URI#path.
124
- #
125
- # def request_uri
126
- # r = path_query
127
- # if r[0] != ?/
128
- # r = '/' + r
129
- # end
130
-
131
- # r
132
- # end
133
116
  end
134
117
 
135
118
  @@schemes['FILE'] = FILE
@@ -8,8 +8,6 @@ module RIO
8
8
  def initialize(u,b=nil)
9
9
  @ref = u
10
10
  @base = b
11
- #p "URIRef#initialize u=#{u} (#{u.class}),b=#{b} (#{b.class})"
12
- #puts caller[0,6]
13
11
  raise ArgumentError, "Either uri(#{u}) or base(#{b.inspect}) must be absolute" unless
14
12
  @ref.absolute? or @base.absolute?
15
13
  end
@@ -66,14 +64,12 @@ module RIO
66
64
 
67
65
  def self.path_str_to_uri(pth,opts={})
68
66
  cr_args = opts[:encoding] ? {:encoding => opts[:encoding]} : {}
69
- #p cr_args
70
67
  case
71
68
  when pth.start_with?("//")
72
69
  ::Alt::URI.create(cr_args.merge(:netpath => pth))
73
70
  when (pth.start_with?("/") or (pth =~ %r{^[a-zA-Z]:}))
74
71
  ::Alt::URI.create(cr_args.merge(:path => pth))
75
72
  when pth =~ %r{^[a-zA-Z][a-zA-Z]+:}
76
- #pth = "/" + pth if pth =~ /^[a-zA-Z]:/
77
73
  ::Alt::URI.parse(pth,opts)
78
74
  else
79
75
  ::Alt::URI.create(cr_args.merge(:path => pth))
@@ -86,7 +82,6 @@ module RIO
86
82
  when (pth.start_with?("/") or (pth =~ %r{^[a-zA-Z]:}))
87
83
  ::Alt::URI.create(:scheme => 'file', :authority => "", :path => pth)
88
84
  when (pth =~ %r{^[a-zA-Z0-9-][a-zA-Z0-9-]+:})
89
- #pth = "/" + pth if pth =~ /^[a-zA-Z]:/
90
85
  ::Alt::URI.parse(pth)
91
86
  else
92
87
  raise ArgumentError, "Base(#{pth.inspect}) must be absolute"
@@ -100,7 +95,6 @@ module RIO
100
95
  end
101
96
  end
102
97
  def rel(b=nil)
103
- # p "uriref (#{self}).rel(#{b.inspect})"
104
98
  if b.nil?
105
99
  self.class.build(ref.rel(base),:base => base)
106
100
  else
@@ -108,12 +102,9 @@ module RIO
108
102
  end
109
103
  end
110
104
  def route_from(b)
111
- # p "uriref (#{self}).route_from(#{b.inspect})"
112
- #self.class.build(abs.ref,b).rel
113
105
  self.class.build(abs.ref.route_from(b.ref),:base => b)
114
106
  end
115
107
  def route_to(b)
116
- #self.class.build(b,abs.ref).rel
117
108
  self.class.build(self.abs.ref.route_to(b.ref),:base => self.ref)
118
109
  end
119
110
  def join(*args)
@@ -121,15 +112,7 @@ module RIO
121
112
  self
122
113
  end
123
114
  def to_s() ref.to_s end
124
- #extend Forwardable
125
- #extend Fwd
126
- #fwd :ref, :scheme, :authority, :path, :query, :fragment
127
- #fwd :ref, :host, :port, :userinfo, :user, :password
128
- #fwd :ref, :typecode
129
- #def_delegators :ref, :to_s, :normalize, :absolute?, :len gth
130
- #fwd :ref, :dirname,:basename,:filename,:extname
131
- #fwd :ref, :netpath,:fspath
132
- #fwd :ref, :ext
115
+
133
116
  def method_missing(sym,*args,&block)
134
117
  ref.__send__(sym,*args,&block)
135
118
  end
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -1,6 +1,6 @@
1
1
  #--
2
2
  # ===========================================================================
3
- # Copyright (c) 2005-2012 Christopher Kleckner
3
+ # Copyright (c) 2005-2017 Christopher Kleckner
4
4
  # All rights reserved
5
5
  #
6
6
  # This file is part of the Rio library for ruby.
@@ -27,7 +27,7 @@
27
27
  module RIO
28
28
  # :stopdoc:
29
29
  module Version #:nodoc: all
30
- VERSION = '0.5.1'
30
+ VERSION = '0.6.0'
31
31
 
32
32
  N = VERSION.split('.').freeze
33
33
  MAJOR = N[0].freeze
@@ -1,7 +1,7 @@
1
1
  require 'rio'
2
2
 
3
- old_cr = 'Copyright (c) 2005,2006,2007,2008,2009,2010 Christopher Kleckner'
4
- new_cr = 'Copyright (c) 2005-2012 Christopher Kleckner'
3
+ old_cr = 'Copyright (c) 2005-2012 Christopher Kleckner'
4
+ new_cr = 'Copyright (c) 2005-2017 Christopher Kleckner'
5
5
 
6
6
  old_cr_re = Regexp.new(Regexp.escape(old_cr))
7
7
 
@@ -24,8 +24,7 @@ Gem::Specification.new do |gem|
24
24
  '--main' << 'README'
25
25
  gem.rubyforge_project = 'rio'
26
26
 
27
- gem.required_ruby_version = '>= 1.9.1'
27
+ gem.required_ruby_version = '>= 2.3.1'
28
+ gem.licenses = ['GPL-2.0']
28
29
 
29
- gem.add_dependency "test-unit"
30
- gem.add_dependency "rdoc"
31
30
  end
@@ -1,4 +1,3 @@
1
- alias ruby19='/loc/r19/cyg/bin/ruby'
2
- export RUBYLIB=/loc/work/rio/lib
1
+ export RUBYLIB=`pwd`/lib
3
2
 
4
3
 
@@ -33,7 +33,6 @@ module RIO::HTTP::UnitTest
33
33
  urio = rio(url)
34
34
  ario < urio
35
35
  exp = urio.contents
36
- puts HWFILE.abs
37
36
  assert_equal(exp,ario.contents)
38
37
  assert_equal(rio(HWFILE).contents,rio('outf').contents)
39
38
  end
@@ -1,9 +1,10 @@
1
- #!/usr/local/bin/ruby
1
+ #!/usr/bin/env ruby
2
2
  Dir.chdir File.dirname(__FILE__)
3
3
  $:.unshift File.expand_path('../lib/')
4
4
  $:.unshift File.expand_path('../test/')
5
5
 
6
6
  require 'rio'
7
+ p "[#{RUBY_PLATFORM}] - Ruby(#{RUBY_VERSION}) - Rio(#{RIO::VERSION})"
7
8
  require 'lib/temp_server'
8
9
  require 'pp'
9
10
 
@@ -1,4 +1,4 @@
1
- #!/usr/bin/ruby -KU
1
+ #!/usr/bin/env ruby
2
2
  # encoding: UTF-8
3
3
  Dir.chdir File.dirname(__FILE__)
4
4
  $devlib=File.expand_path('../lib/')
@@ -6,8 +6,6 @@ $:.unshift $devlib unless $:[0] == $devlib
6
6
  $testlib=File.expand_path('../test/')
7
7
  $:.unshift $testlib unless $:[0] == $testlib
8
8
 
9
-
10
-
11
9
  require 'platform'
12
10
 
13
11
  require 'rio'
@@ -56,6 +54,7 @@ def run(options)
56
54
 
57
55
  options.keys.each do |opt|
58
56
  case opt
57
+
59
58
  when :std
60
59
  require 'tc/all'
61
60
  require 'alturi/tests'
@@ -63,11 +62,14 @@ def run(options)
63
62
  find_tests(ms)
64
63
  ms.add(:URI,Alt)
65
64
  ms.add(:URIRef)
65
+
66
66
  when :http
67
67
  require 'http/tests'
68
+ require 'lib/temp_server'
68
69
  ms.add(:HTTP)
69
- #require 'lib/temp_server.rb'
70
- #TempServer.new.run('runhttptests.rb')
70
+ runtestpath = File.expand_path('runhttptests.rb')
71
+ TempServer.run(runtestpath)
72
+
71
73
  when :ftp
72
74
  require 'ftp/tests'
73
75
  ms.add(:FTP)
@@ -127,7 +127,7 @@ class TC_copyarray < Test::Unit::TestCase
127
127
  out = rio('out').delete!
128
128
  assert!(out.exist?)
129
129
  out < rio(@d[1]).lines[1]
130
- assert_equal([@l[0][1],@l[1][1]],out[])
130
+ assert_equal([@l[0][1],@l[1][1]].sort,out[].sort)
131
131
 
132
132
  out = rio('out').delete!
133
133
  assert!(out.exist?)
@@ -146,7 +146,7 @@ class TC_copyarray < Test::Unit::TestCase
146
146
  out = rio('out').delete!.touch
147
147
  assert(out.exist?)
148
148
  out < rio(@d[1]).lines[1]
149
- assert_equal([@l[0][1],@l[1][1]],out[])
149
+ assert_equal([@l[0][1],@l[1][1]].sort,out[].sort)
150
150
 
151
151
  out = rio('out').delete!.touch
152
152
  assert(out.exist?)
@@ -168,7 +168,7 @@ class TC_copyarray < Test::Unit::TestCase
168
168
  out < @f
169
169
  $trace_states = false
170
170
  assert(out.directory?)
171
- assert_equal(smap(@f.map { |el| el.rel(@d[0]) }),smap(out.map { |el| el.rel(out) }))
171
+ assert_equal(smap(@f.map { |el| el.rel(@d[0]) }).sort,smap(out.map { |el| el.rel(out) }).sort)
172
172
  assert_equal(@l[0],rio(out,@f[0].filename).to_a)
173
173
  assert_equal(@l[1],rio(out,@f[1].filename).to_a)
174
174
  #assert_equal(@l[0]+@l[1],out[])
@@ -179,6 +179,6 @@ class TC_copyarray < Test::Unit::TestCase
179
179
  out < @d[0].files.lines
180
180
  assert(out.file?)
181
181
  assert(out.closed?)
182
- assert_equal(@l[0]+@l[1],out[])
182
+ assert_equal((@l[0]+@l[1]).sort,out[].sort)
183
183
  end
184
184
  end
@@ -122,7 +122,7 @@ class TC_copydir < Test::RIO::TestCase
122
122
  dst = rio('files_a_fi').delete!.touch
123
123
  dst < @d0.files[]
124
124
  exp = %w[f0 f1].inject([]) { |lines,f| lines + rio(@d0,f).readlines }
125
- assert_equal(exp,dst.readlines)
125
+ assert_equal(exp.sort,dst.readlines.sort)
126
126
  end
127
127
  def test_files_a_nonex
128
128
  dst = rio('files_a_nonex').delete!
metadata CHANGED
@@ -1,48 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
5
- prerelease:
4
+ version: 0.6.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Christopher Kleckner
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-02 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: test-unit
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
- - !ruby/object:Gem::Dependency
31
- name: rdoc
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
- type: :runtime
39
- prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
11
+ date: 2017-05-09 00:00:00.000000000 Z
12
+ dependencies: []
46
13
  description: Rio is a Ruby class wrapping much of the functionality of IO, File, Dir,
47
14
  Pathname, FileUtils, Tempfile, StringIO, OpenURI, Zlib, and CSV.
48
15
  email:
@@ -52,7 +19,7 @@ extensions: []
52
19
  extra_rdoc_files:
53
20
  - README
54
21
  files:
55
- - .gitignore
22
+ - ".gitignore"
56
23
  - Gemfile
57
24
  - LICENSE
58
25
  - README
@@ -236,6 +203,7 @@ files:
236
203
  - lib/rio/to_rio/io.rb
237
204
  - lib/rio/to_rio/object.rb
238
205
  - lib/rio/to_rio/string.rb
206
+ - lib/rio/undef_rake_dsl.rb
239
207
  - lib/rio/uri/file.rb
240
208
  - lib/rio/uriref.rb
241
209
  - lib/rio/util.rb
@@ -412,32 +380,32 @@ files:
412
380
  - test/uriref/tc/route.rb
413
381
  - test/uriref/tests.rb
414
382
  homepage: http://rio4ruby.com
415
- licenses: []
383
+ licenses:
384
+ - GPL-2.0
385
+ metadata: {}
416
386
  post_install_message:
417
387
  rdoc_options:
418
- - --title
388
+ - "--title"
419
389
  - Rio
420
- - --main
390
+ - "--main"
421
391
  - README
422
392
  require_paths:
423
393
  - lib
424
394
  required_ruby_version: !ruby/object:Gem::Requirement
425
- none: false
426
395
  requirements:
427
- - - ! '>='
396
+ - - ">="
428
397
  - !ruby/object:Gem::Version
429
- version: 1.9.1
398
+ version: 2.3.1
430
399
  required_rubygems_version: !ruby/object:Gem::Requirement
431
- none: false
432
400
  requirements:
433
- - - ! '>='
401
+ - - ">="
434
402
  - !ruby/object:Gem::Version
435
403
  version: '0'
436
404
  requirements: []
437
405
  rubyforge_project: rio
438
- rubygems_version: 1.8.24
406
+ rubygems_version: 2.6.8
439
407
  signing_key:
440
- specification_version: 3
408
+ specification_version: 4
441
409
  summary: Rio - Ruby I/O Facilitator
442
410
  test_files:
443
411
  - test/alturi/tc/create.rb