archive-tar-minitar 0.5.1 → 0.5.2
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.
Potentially problematic release.
This version of archive-tar-minitar might be problematic. Click here for more details.
- data/ChangeLog +4 -1
- data/Install +1 -1
- data/README +9 -9
- data/Rakefile +1 -3
- data/bin/minitar +6 -5
- data/lib/archive/tar/minitar.rb +9 -9
- data/lib/archive/tar/minitar/command.rb +5 -5
- data/tests/tc_tar.rb +2 -12
- data/tests/testall.rb +0 -10
- metadata +65 -52
data/ChangeLog
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
Revision history for Ruby library Archive::Tar::Minitar. Unless explicitly
|
2
2
|
noted otherwise, all changes are produced by Austin Ziegler
|
3
|
-
<
|
3
|
+
<austin@rubyforge.org>.
|
4
|
+
|
5
|
+
== 0.5.2
|
6
|
+
* Fixed a Ruby 1.9 compatibility error.
|
4
7
|
|
5
8
|
== 0.5.1
|
6
9
|
* Fixed a variable name error.
|
data/Install
CHANGED
@@ -3,4 +3,4 @@ Installing this package is as simple as:
|
|
3
3
|
% ruby install.rb
|
4
4
|
|
5
5
|
Alternatively, you can use the RubyGem version of Archive::Tar::Minitar
|
6
|
-
available as archive-tar-minitar-0.5.
|
6
|
+
available as archive-tar-minitar-0.5.2.gem from the usual sources.
|
data/README
CHANGED
@@ -2,14 +2,14 @@ Archive::Tar::Minitar README
|
|
2
2
|
============================
|
3
3
|
Archive::Tar::Minitar is a pure-Ruby library and command-line utility that
|
4
4
|
provides the ability to deal with POSIX tar(1) archive files. The
|
5
|
-
implementation is based heavily on Mauricio
|
5
|
+
implementation is based heavily on Mauricio Ferna'ndez's implementation in
|
6
6
|
rpa-base, but has been reorganised to promote reuse in other projects.
|
7
7
|
|
8
|
-
This release is version 0.5.
|
9
|
-
library can only handle files and directories at this
|
10
|
-
will be expanded to handle symbolic links and hard
|
11
|
-
The command line utility, minitar, can only create
|
12
|
-
archives, and list archive contents.
|
8
|
+
This release is version 0.5.2, offering a Ruby 1.9 compatibility bugfix over
|
9
|
+
version 0.5.1. The library can only handle files and directories at this
|
10
|
+
point. A future version will be expanded to handle symbolic links and hard
|
11
|
+
links in a portable manner. The command line utility, minitar, can only create
|
12
|
+
archives, extract from archives, and list archive contents.
|
13
13
|
|
14
14
|
Using this library is easy. The simplest case is:
|
15
15
|
|
@@ -51,16 +51,16 @@ wrapped data stream object.
|
|
51
51
|
|
52
52
|
Copyright
|
53
53
|
=========
|
54
|
-
# Copyright 2004 Mauricio Julio
|
54
|
+
# Copyright 2004 Mauricio Julio Ferna'ndez Pradier and Austin Ziegler
|
55
55
|
#
|
56
56
|
# This program is based on and incorporates parts of RPA::Package from
|
57
57
|
# rpa-base (lib/rpa/package.rb and lib/rpa/util.rb) by Mauricio and has been
|
58
58
|
# adapted to be more generic by Austin.
|
59
59
|
#
|
60
60
|
# 'minitar' contains an adaptation of Ruby/ProgressBar by Satoru
|
61
|
-
# Takabayashi <[email protected]>, copyright
|
61
|
+
# Takabayashi <[email protected]>, copyright 2001 - 2004.
|
62
62
|
#
|
63
63
|
# This program is free software. It may be redistributed and/or modified
|
64
64
|
# under the terms of the GPL version 2 (or later) or Ruby's licence.
|
65
65
|
#
|
66
|
-
# $Id: README
|
66
|
+
# $Id: README 213 2008-02-26 22:32:11Z austin $
|
data/Rakefile
CHANGED
@@ -32,9 +32,7 @@ task :test do |t|
|
|
32
32
|
runner = Test::Unit::UI::Console::TestRunner
|
33
33
|
|
34
34
|
$LOAD_PATH.unshift('tests')
|
35
|
-
$stderr.puts "Checking for test cases:" if t.verbose
|
36
35
|
Dir['tests/tc_*.rb'].each do |testcase|
|
37
|
-
$stderr.puts "\t#{testcase}" if t.verbose
|
38
36
|
load testcase
|
39
37
|
end
|
40
38
|
|
@@ -100,7 +98,7 @@ end
|
|
100
98
|
task TARDIST => [ :test ]
|
101
99
|
|
102
100
|
def sign(file)
|
103
|
-
sh %(
|
101
|
+
sh %(gpg -ba #{file})
|
104
102
|
end
|
105
103
|
|
106
104
|
task :signtar => [ :tar ] do
|
data/bin/minitar
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#--
|
3
|
-
# Archive::Tar::Minitar 0.5.
|
4
|
-
# Copyright
|
3
|
+
# Archive::Tar::Minitar 0.5.2
|
4
|
+
# Copyright 2004 Mauricio Julio Ferna'ndez Pradier and Austin Ziegler
|
5
5
|
#
|
6
6
|
# This program is based on and incorporates parts of RPA::Package from
|
7
7
|
# rpa-base (lib/rpa/package.rb and lib/rpa/util.rb) by Mauricio and has been
|
@@ -9,18 +9,19 @@
|
|
9
9
|
#
|
10
10
|
# It is licensed under the GNU General Public Licence or Ruby's licence.
|
11
11
|
#
|
12
|
-
# $Id: minitar
|
12
|
+
# $Id: minitar 213 2008-02-26 22:32:11Z austin $
|
13
13
|
#++
|
14
14
|
|
15
15
|
# 1) Try to load Archive::Tar::Minitar from the gem.
|
16
16
|
# 2) Try to load Archive::Tar::Minitar from $LOAD_PATH.
|
17
17
|
begin
|
18
18
|
require 'rubygems'
|
19
|
-
require_gem 'archive-tar-minitar', '= 0.5.
|
19
|
+
require_gem 'archive-tar-minitar', '= 0.5.2'
|
20
20
|
rescue LoadError
|
21
|
-
|
21
|
+
nil
|
22
22
|
end
|
23
23
|
|
24
|
+
require 'archive/tar/minitar'
|
24
25
|
require 'archive/tar/minitar/command'
|
25
26
|
|
26
27
|
exit Archive::Tar::Minitar::Command.run(ARGV)
|
data/lib/archive/tar/minitar.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#--
|
3
|
-
# Archive::Tar::Minitar 0.5.
|
4
|
-
# Copyright
|
3
|
+
# Archive::Tar::Minitar 0.5.2
|
4
|
+
# Copyright 2004 Mauricio Julio Ferna'ndez Pradier and Austin Ziegler
|
5
5
|
#
|
6
6
|
# This program is based on and incorporates parts of RPA::Package from
|
7
7
|
# rpa-base (lib/rpa/package.rb and lib/rpa/util.rb) by Mauricio and has been
|
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
# It is licensed under the GNU General Public Licence or Ruby's licence.
|
11
11
|
#
|
12
|
-
# $Id: minitar.rb
|
12
|
+
# $Id: minitar.rb 213 2008-02-26 22:32:11Z austin $
|
13
13
|
#++
|
14
14
|
|
15
15
|
module Archive; end
|
@@ -151,10 +151,10 @@ end
|
|
151
151
|
require 'fileutils'
|
152
152
|
require 'find'
|
153
153
|
|
154
|
-
# = Archive::Tar::Minitar 0.5.
|
154
|
+
# = Archive::Tar::Minitar 0.5.2
|
155
155
|
# Archive::Tar::Minitar is a pure-Ruby library and command-line
|
156
156
|
# utility that provides the ability to deal with POSIX tar(1) archive
|
157
|
-
# files. The implementation is based heavily on Mauricio
|
157
|
+
# files. The implementation is based heavily on Mauricio Ferna'ndez's
|
158
158
|
# implementation in rpa-base, but has been reorganised to promote
|
159
159
|
# reuse in other projects.
|
160
160
|
#
|
@@ -166,7 +166,7 @@ require 'find'
|
|
166
166
|
# NOTE::: support for typeflags 1 and 2 is not yet implemented in this
|
167
167
|
# version.
|
168
168
|
#
|
169
|
-
# This release is version 0.5.
|
169
|
+
# This release is version 0.5.2. The library can only handle files and
|
170
170
|
# directories at this point. A future version will be expanded to
|
171
171
|
# handle symbolic links and hard links in a portable manner. The
|
172
172
|
# command line utility, minitar, can only create archives, extract
|
@@ -212,20 +212,20 @@ require 'find'
|
|
212
212
|
# end
|
213
213
|
#
|
214
214
|
# == Copyright
|
215
|
-
# Copyright 2004 Mauricio Julio
|
215
|
+
# Copyright 2004 Mauricio Julio Ferna'ndez Pradier and Austin Ziegler
|
216
216
|
#
|
217
217
|
# This program is based on and incorporates parts of RPA::Package from
|
218
218
|
# rpa-base (lib/rpa/package.rb and lib/rpa/util.rb) by Mauricio and
|
219
219
|
# has been adapted to be more generic by Austin.
|
220
220
|
#
|
221
221
|
# 'minitar' contains an adaptation of Ruby/ProgressBar by Satoru
|
222
|
-
# Takabayashi <[email protected]>, copyright
|
222
|
+
# Takabayashi <[email protected]>, copyright 2001 - 2004.
|
223
223
|
#
|
224
224
|
# This program is free software. It may be redistributed and/or
|
225
225
|
# modified under the terms of the GPL version 2 (or later) or Ruby's
|
226
226
|
# licence.
|
227
227
|
module Archive::Tar::Minitar
|
228
|
-
VERSION = "0.5.
|
228
|
+
VERSION = "0.5.2"
|
229
229
|
|
230
230
|
# The exception raised when a wrapped data stream class is expected to
|
231
231
|
# respond to #rewind or #pos but does not.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#--
|
3
|
-
# Archive::Tar::Baby 0.5.
|
4
|
-
# Copyright
|
3
|
+
# Archive::Tar::Baby 0.5.2
|
4
|
+
# Copyright 2004 Mauricio Julio Ferna'ndez Pradier and Austin Ziegler
|
5
5
|
# This is free software with ABSOLUTELY NO WARRANTY.
|
6
6
|
#
|
7
7
|
# This program is based on and incorporates parts of RPA::Package from
|
@@ -9,11 +9,11 @@
|
|
9
9
|
# adapted to be more generic by Austin.
|
10
10
|
#
|
11
11
|
# This file contains an adaptation of Ruby/ProgressBar by Satoru
|
12
|
-
# Takabayashi <[email protected]>, copyright
|
12
|
+
# Takabayashi <[email protected]>, copyright 2001 - 2004.
|
13
13
|
#
|
14
14
|
# It is licensed under the GNU General Public Licence or Ruby's licence.
|
15
15
|
#
|
16
|
-
# $Id: command.rb
|
16
|
+
# $Id: command.rb 213 2008-02-26 22:32:11Z austin $
|
17
17
|
#++
|
18
18
|
|
19
19
|
require 'zlib'
|
@@ -787,7 +787,7 @@ Sort Fields:
|
|
787
787
|
if argv.include?("--version")
|
788
788
|
output << <<-EOB
|
789
789
|
minitar #{Archive::Tar::Minitar::VERSION}
|
790
|
-
Copyright 2004 Mauricio Julio
|
790
|
+
Copyright 2004 Mauricio Julio Ferna'ndez Pradier and Austin Ziegler
|
791
791
|
This is free software with ABSOLUTELY NO WARRANTY.
|
792
792
|
|
793
793
|
see http://rubyforge.org/projects/ruwiki for more information
|
data/tests/tc_tar.rb
CHANGED
@@ -1,14 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#--
|
3
|
-
# Ruwiki version 0.8.0
|
4
|
-
# Copyright � 2002 - 2004, Digikata and HaloStatue
|
5
|
-
# Alan Chen ([email protected])
|
6
|
-
# Austin Ziegler ([email protected])
|
7
|
-
#
|
8
|
-
# Licensed under the same terms as Ruby.
|
9
|
-
#
|
10
|
-
# $Id: tc_tar.rb,v 1.1 2004/09/06 22:35:41 austin Exp $
|
11
|
-
#++
|
12
2
|
|
13
3
|
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
|
14
4
|
|
@@ -483,7 +473,7 @@ class TC_Tar__Input < Test::Unit::TestCase
|
|
483
473
|
]
|
484
474
|
|
485
475
|
TEST_DATA_CONTENTS = [
|
486
|
-
[ "data", 0,
|
476
|
+
[ "data", 0, 040755 ],
|
487
477
|
[ "data/file1", 16, 010644 ],
|
488
478
|
[ "data/file2", 16, 010644 ],
|
489
479
|
[ "data/__dir__", 0, 010644 ],
|
@@ -542,7 +532,7 @@ class TC_Tar__Input < Test::Unit::TestCase
|
|
542
532
|
|
543
533
|
assert_equal(TEST_CONTENTS[ii][1], File.stat(name).size)
|
544
534
|
end
|
545
|
-
assert_equal(TEST_CONTENTS[ii][2], File.stat(name).mode) unless RUBY_PLATFORM =~ /win32/
|
535
|
+
assert_equal(TEST_CONTENTS[ii][2], File.stat(name).mode & 0777) unless RUBY_PLATFORM =~ /win32/
|
546
536
|
|
547
537
|
if 0 == ii
|
548
538
|
begin
|
data/tests/testall.rb
CHANGED
@@ -1,14 +1,4 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#--
|
3
|
-
# Ruwiki version 0.8.0
|
4
|
-
# Copyright � 2002 - 2003, Digikata and HaloStatue
|
5
|
-
# Alan Chen ([email protected])
|
6
|
-
# Austin Ziegler ([email protected])
|
7
|
-
#
|
8
|
-
# Licensed under the same terms as Ruby.
|
9
|
-
#
|
10
|
-
# $Id: testall.rb,v 1.1 2004/09/06 22:35:41 austin Exp $
|
11
|
-
#++
|
12
2
|
|
13
3
|
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/../lib") if __FILE__ == $0
|
14
4
|
|
metadata
CHANGED
@@ -1,60 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.1
|
3
|
-
specification_version: 1
|
4
2
|
name: archive-tar-minitar
|
5
3
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.5.
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
author: "Austin Ziegler, Mauricio Fernandez"
|
12
|
-
email: [email protected]
|
13
|
-
homepage: http://rubyforge.org/projects/ruwiki/
|
14
|
-
rubyforge_project: ruwiki
|
15
|
-
description: "Archive::Tar::Minitar is a pure-Ruby library and command-line utility that provides the ability to deal with POSIX tar(1) archive files. The implementation is based heavily on Mauricio Fern�ndez's implementation in rpa-base, but has been reorganised to promote reuse in other projects."
|
16
|
-
autorequire: archive/tar/minitar
|
17
|
-
default_executable: minitar
|
4
|
+
version: 0.5.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Austin Ziegler, Mauricio Ferna'ndez
|
8
|
+
autorequire:
|
18
9
|
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-02-26 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Archive::Tar::Minitar is a pure-Ruby library and command-line utility that provides the ability to deal with POSIX tar(1) archive files. The implementation is based heavily on Mauricio Ferna'ndez's implementation in rpa-base, but has been reorganised to promote reuse in other projects.
|
17
|
+
email: [email protected]
|
18
|
+
executables:
|
19
|
+
- minitar
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
- ChangeLog
|
25
|
+
- Install
|
26
|
+
files:
|
27
|
+
- bin
|
28
|
+
- bin/minitar
|
29
|
+
- ChangeLog
|
30
|
+
- Install
|
31
|
+
- lib
|
32
|
+
- lib/archive
|
33
|
+
- lib/archive/tar
|
34
|
+
- lib/archive/tar/minitar
|
35
|
+
- lib/archive/tar/minitar/command.rb
|
36
|
+
- lib/archive/tar/minitar.rb
|
37
|
+
- Rakefile
|
38
|
+
- README
|
39
|
+
- tests
|
40
|
+
- tests/tc_tar.rb
|
41
|
+
- tests/testall.rb
|
19
42
|
has_rdoc: true
|
20
|
-
|
43
|
+
homepage: http://rubyforge.org/projects/ruwiki/
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options:
|
46
|
+
- --title
|
47
|
+
- Archive::Tar::MiniTar -- A POSIX tarchive library
|
48
|
+
- --main
|
49
|
+
- README
|
50
|
+
- --line-numbers
|
51
|
+
require_paths:
|
52
|
+
- lib
|
53
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
21
54
|
requirements:
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 1.8.2
|
58
|
+
version:
|
59
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: "0"
|
26
64
|
version:
|
27
|
-
platform: ruby
|
28
|
-
files:
|
29
|
-
- bin
|
30
|
-
- ChangeLog
|
31
|
-
- Install
|
32
|
-
- lib
|
33
|
-
- Rakefile
|
34
|
-
- README
|
35
|
-
- tests
|
36
|
-
- bin/minitar
|
37
|
-
- lib/archive
|
38
|
-
- lib/archive/tar
|
39
|
-
- lib/archive/tar/minitar
|
40
|
-
- lib/archive/tar/minitar.rb
|
41
|
-
- lib/archive/tar/minitar/command.rb
|
42
|
-
- tests/tc_tar.rb
|
43
|
-
- tests/testall.rb
|
44
|
-
test_files:
|
45
|
-
- tests/testall.rb
|
46
|
-
rdoc_options:
|
47
|
-
- "--title"
|
48
|
-
- "Archive::Tar::MiniTar -- A POSIX tarchive library"
|
49
|
-
- "--main"
|
50
|
-
- README
|
51
|
-
- "--line-numbers"
|
52
|
-
extra_rdoc_files:
|
53
|
-
- README
|
54
|
-
- ChangeLog
|
55
|
-
- Install
|
56
|
-
executables:
|
57
|
-
- minitar
|
58
|
-
extensions: []
|
59
65
|
requirements: []
|
60
|
-
|
66
|
+
|
67
|
+
rubyforge_project: ruwiki
|
68
|
+
rubygems_version: 1.0.1
|
69
|
+
signing_key:
|
70
|
+
specification_version: 2
|
71
|
+
summary: Provides POSIX tarchive management from Ruby programs.
|
72
|
+
test_files:
|
73
|
+
- tests/testall.rb
|