minitar 1.0.0 → 1.0.1
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.
- checksums.yaml +4 -4
- data/Contributing.md +17 -15
- data/History.md +8 -0
- data/lib/minitar.rb +4 -14
- data/test/test_minitar.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34543cdcb4d355d895541547346230ea36725bc467a47a4ce73ed1b7a9f37290
|
4
|
+
data.tar.gz: 599df4d6171a30b7dd1cc74290eb6a331a7760487a6d82a9bceeaea1d19fa6cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91c839b8c740a57eaa4066a26843306e0d64217428a47491fd91599fcbfae2e65e20f97214f524df41960b7c43b09427ee25dfa5d6a11ab876762c81eab5be4d
|
7
|
+
data.tar.gz: 494b4c63e3f118fde75cf3e1ef7c0de7434cbb219484a99bb7d4e15d7c606dbb2445d10ef71843f894d6de6a9f785559dd767829948a234aaacd3a703cd515a2
|
data/Contributing.md
CHANGED
@@ -4,20 +4,20 @@ I value any contribution to minitar you can provide: a bug report, a feature
|
|
4
4
|
request, or code contributions. There are a few guidelines for contributing to
|
5
5
|
minitar:
|
6
6
|
|
7
|
-
- Code changes _will not_ be accepted without tests. The test suite is
|
8
|
-
|
7
|
+
- Code changes _will not_ be accepted without tests. The test suite is written
|
8
|
+
with [Minitest][Minitest].
|
9
9
|
- Match my coding style.
|
10
|
-
- Use a thoughtfully-named topic branch that contains your change. Rebase
|
11
|
-
|
12
|
-
- Use [quality commit messages][].
|
13
|
-
- Do not change the version number; when your patch is accepted and a release
|
14
|
-
|
10
|
+
- Use a thoughtfully-named topic branch that contains your change. Rebase your
|
11
|
+
commits into logical chunks as necessary.
|
12
|
+
- Use [quality commit messages][quality commit messages].
|
13
|
+
- Do not change the version number; when your patch is accepted and a release is
|
14
|
+
made, the version will be updated at that point.
|
15
15
|
- Submit a GitHub pull request with your changes.
|
16
16
|
- New or changed behaviours require appropriate documentation.
|
17
17
|
|
18
18
|
### Test Dependencies
|
19
19
|
|
20
|
-
minitar uses Ryan Davis’s [Hoe][] to manage the release process, and it adds
|
20
|
+
minitar uses Ryan Davis’s [Hoe][Hoe] to manage the release process, and it adds
|
21
21
|
a number of rake tasks. You will mostly be interested in:
|
22
22
|
|
23
23
|
$ rake
|
@@ -29,8 +29,8 @@ which runs the tests the same way that:
|
|
29
29
|
|
30
30
|
will do.
|
31
31
|
|
32
|
-
To assist with the installation of the development dependencies for minitar,
|
33
|
-
|
32
|
+
To assist with the installation of the development dependencies for minitar, I
|
33
|
+
have provided the simplest possible Gemfile pointing to the (generated)
|
34
34
|
`minitar.gemspec` file. This will permit you to do:
|
35
35
|
|
36
36
|
$ bundle install
|
@@ -53,18 +53,19 @@ Here's the most direct way to get your work merged into the project:
|
|
53
53
|
|
54
54
|
- Fork the project.
|
55
55
|
- Clone down your fork (`git clone git://github.com/<username>/minitar.git`).
|
56
|
-
- Create a topic branch to contain your change
|
56
|
+
- Create a topic branch to contain your change
|
57
|
+
(`git checkout -b my_awesome_feature`).
|
57
58
|
- Hack away, add tests. Not necessarily in that order.
|
58
59
|
- Make sure everything still passes by running `rake`.
|
59
60
|
- If necessary, rebase your commits into logical chunks, without errors.
|
60
61
|
- Push the branch up (`git push origin my_awesome_feature`).
|
61
|
-
- Create a pull request against halostatue/minitar and describe what your
|
62
|
-
|
62
|
+
- Create a pull request against halostatue/minitar and describe what your change
|
63
|
+
does and the why you think it should be merged.
|
63
64
|
|
64
65
|
### Contributors
|
65
66
|
|
66
|
-
- Austin Ziegler created minitar, based on work originally written by
|
67
|
-
|
67
|
+
- Austin Ziegler created minitar, based on work originally written by Mauricio
|
68
|
+
Fernández for rpa-base.
|
68
69
|
|
69
70
|
Thanks to everyone who has contributed to minitar:
|
70
71
|
|
@@ -74,6 +75,7 @@ Thanks to everyone who has contributed to minitar:
|
|
74
75
|
- Daniel J. Berger
|
75
76
|
- dearblue
|
76
77
|
- inkstak
|
78
|
+
- John Prince
|
77
79
|
- Jorie Tappa
|
78
80
|
- Kazuyoshi Kato
|
79
81
|
- Kevin McDermott
|
data/History.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# History
|
2
2
|
|
3
|
+
## 1.0.1 / 2024-08-08
|
4
|
+
|
5
|
+
- Bugfix:
|
6
|
+
|
7
|
+
- Resolve a constant lookup issue. The accepted fix has been provided by Aram
|
8
|
+
Price in [#58][#58].
|
9
|
+
|
3
10
|
## 1.0.0 / 2024-08-07
|
4
11
|
|
5
12
|
- Breaking Changes:
|
@@ -213,3 +220,4 @@
|
|
213
220
|
[#45]: https://github.com/halostatue/minitar/issues/45
|
214
221
|
[#46]: https://github.com/halostatue/minitar/issues/46
|
215
222
|
[#47]: https://github.com/halostatue/minitar/pull/47
|
223
|
+
[#58]: https://github.com/halostatue/minitar/issues/58
|
data/lib/minitar.rb
CHANGED
@@ -31,7 +31,7 @@ require "rbconfig"
|
|
31
31
|
#
|
32
32
|
# begin
|
33
33
|
# sgz = Zlib::GzipWriter.new(StringIO.new(""))
|
34
|
-
# tar = Output.new(sgz)
|
34
|
+
# tar = Minitar::Output.new(sgz)
|
35
35
|
# Find.find('tests') do |entry|
|
36
36
|
# Minitar.pack_file(entry, tar)
|
37
37
|
# end
|
@@ -40,7 +40,7 @@ require "rbconfig"
|
|
40
40
|
# tar.close
|
41
41
|
# end
|
42
42
|
class Minitar
|
43
|
-
VERSION = "1.0.
|
43
|
+
VERSION = "1.0.1".freeze # :nodoc:
|
44
44
|
|
45
45
|
# The base class for any minitar error.
|
46
46
|
Error = Class.new(::StandardError)
|
@@ -75,24 +75,14 @@ class << Minitar
|
|
75
75
|
def open(dest, mode = "r", &)
|
76
76
|
case mode
|
77
77
|
when "r"
|
78
|
-
Input.open(dest, &)
|
78
|
+
Minitar::Input.open(dest, &)
|
79
79
|
when "w"
|
80
|
-
Output.open(dest, &block)
|
80
|
+
Minitar::Output.open(dest, &block)
|
81
81
|
else
|
82
82
|
raise "Unknown open mode for Minitar.open."
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
86
|
-
def const_missing(c) # :nodoc:
|
87
|
-
case c
|
88
|
-
when :BlockRequired
|
89
|
-
warn "This constant has been removed."
|
90
|
-
const_set(:BlockRequired, Class.new(StandardError))
|
91
|
-
else
|
92
|
-
super
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
86
|
def windows? # :nodoc:
|
97
87
|
RbConfig::CONFIG["host_os"] =~ /^(mswin|mingw|cygwin)/
|
98
88
|
end
|
data/test/test_minitar.rb
CHANGED
@@ -31,7 +31,7 @@ class TestMinitar < Minitest::Test
|
|
31
31
|
|
32
32
|
count = 0
|
33
33
|
reader = StringIO.new(writer.string)
|
34
|
-
Minitar
|
34
|
+
Minitar.open(reader) do |stream|
|
35
35
|
stream.each.with_index do |entry, i|
|
36
36
|
assert_kind_of Minitar::Reader::EntryStream, entry
|
37
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Ziegler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|