archive-tar-external 1.3.2 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 9b4c98cfeadc9a2a2e13c6bbe405a259bcce5df8
4
- data.tar.gz: 61b6d4fc658f6d6c92f310e1cb8a960bc13b6d01
2
+ SHA256:
3
+ metadata.gz: 990b9b955f7f127b7e2cc3b74fc35116af8ea287fa24113a94c4027c76d859ba
4
+ data.tar.gz: 92b196efe6a52ddbc04dc5602cf0c1318cf5d1d0ac081e9701aa470046825e0b
5
5
  SHA512:
6
- metadata.gz: 452b2cb1c65b81a885c981a3b26b4fecdfd429697f4a1d8e1b203c5342e60fafe5617965ec56fa2cd0389b5fb862194434ef9e0eb88a4c3921b7c44f35a43f68
7
- data.tar.gz: 68fe98d2ced0181c51c33d63602a53258c3dc3b10e6b8cd1b7f19e8c08549d9286098c9c9db2976ce84d0b17e0a904390c00357bc6d8a3a174b023c632ce041b
6
+ metadata.gz: 804c66f9312a14ff9a413eecef0ad30adb77f0400c63667747c6a4e9a9a3ddaf99efc9381a5f72e44d34df89a2f95f6565605debfea1ea400f1e8976f1945f73
7
+ data.tar.gz: b2930a7e498792a701a81991475707642d228acab91a6faeb74ea1104c0a2bcbaf23625c9dd5c5ab7b0e56e2678e242e574b4e665b89cad586f8acb59a127ac2
checksums.yaml.gz.sig ADDED
Binary file
data.tar.gz.sig ADDED
Binary file
@@ -1,28 +1,54 @@
1
- == 1.3.2 - 14-Mar-2014
1
+ ## 1.5.0 - 1-May-2021
2
+ * A fourth option was added to the constructor. This allows you to set the
3
+ archive format. By default this is now set to 'pax'.
4
+
5
+ ## 1.4.2 - 30-Apr-2021
6
+ * Switched from test-unit to rspec.
7
+ * Added tighter versioning for the development dependencies.
8
+ * Tests will now try to use gtar by default, if found.
9
+ * A fair number of rubocop suggestions were implemented, including
10
+ the frozen string literal pragma.
11
+
12
+ ## 1.4.1 - 19-Feb-2021
13
+ * Switched from rdoc to markdown.
14
+
15
+ ## 1.4.0 - 23-Jan-2019
16
+ * Changed license to Apache-2.0.
17
+ * The VERSION constant is now frozen.
18
+ * Added some metadata to the gemspec.
19
+ * Cert updated, should be good for about 10 years.
20
+
21
+ ## 1.3.3 - 16-Jan-2016
22
+ * This gem is now signed.
23
+ * Fixed some deprecation warnings in the test suite.
24
+ * Added an archive-tar-external.rb file for convenience.
25
+ * Updates to the Rakefile.
26
+
27
+ ## 1.3.2 - 14-Mar-2014
2
28
  * The create_archive method now accepts an optional second argument that
3
29
  specifies options to the tar command. The default is 'cf' (create file).
4
30
  * The gem:create task was updated for Rubygems 2.x.
5
31
  * Added rake as a development dependency.
6
32
  * Ruby 1.8.x support has been dropped. This only matters for MS Windows.
7
33
 
8
- == 1.3.1 - 20-Sep-2011
34
+ ## 1.3.1 - 20-Sep-2011
9
35
  * Refactored the Rakefile a bit.
10
36
 
11
- == 1.3.0 - 16-Jan-2010
37
+ ## 1.3.0 - 16-Jan-2010
12
38
  * Altered the source code layout, which requires a change in your require
13
39
  line. It's now require 'archive/tar/external'.
14
40
  * Moved some content from the .txt file to the README.
15
41
  * Updated one test to use a skip as needed.
16
42
  * Moved source code to github.
17
43
 
18
- == 1.2.3 - 25-Sep-2009
44
+ ## 1.2.3 - 25-Sep-2009
19
45
  * Fixed a packaging bug.
20
46
  * Added cygwin and mingw to Windows checks.
21
47
  * Now requires open3 properly for Ruby 1.9 on Windows.
22
48
  * Minor modifications to the gemspec.
23
49
  * Added the 'gem' rake task.
24
50
 
25
- == 1.2.2 - 28-Jul-2009
51
+ ## 1.2.2 - 28-Jul-2009
26
52
  * Compatibility fixes for Ruby 1.9.x and JRuby.
27
53
  * Singleton methods that were previously synonyms are now true aliases.
28
54
  * License changed to Artistic 2.0.
@@ -33,13 +59,13 @@
33
59
  in test-unit 2.x.
34
60
  * Renamed the test file to test_archive_tar_external.rb.
35
61
 
36
- == 1.2.1 - 30-Jul-2007
62
+ ## 1.2.1 - 30-Jul-2007
37
63
  * The TarError class is now Tar::Error.
38
64
  * Added a Rakefile with tasks for installation and testing.
39
65
  * Removed the install.rb file. Installation is now handled by the Rakefile.
40
66
  * Documentation updates.
41
67
 
42
- == 1.2.0 - 7-Apr-2006
68
+ ## 1.2.0 - 7-Apr-2006
43
69
  * Project renamed 'archive-tar-external'.
44
70
  * The 'Tar' class is now Tar::External.
45
71
  * The RAA project name is now tar-external.
@@ -49,16 +75,16 @@
49
75
  that already exist.
50
76
  * Added the Tar::External#compressed_archive_name= method.
51
77
 
52
- == 1.1.1 - 1-Mar-2006
78
+ ## 1.1.1 - 1-Mar-2006
53
79
  * Replaced PLATFORM with RUBY_PLATFORM since the former is deprecated
54
80
  for Ruby 1.9/2.0.
55
81
 
56
- == 1.1.0 - 10-Feb-2006
82
+ ## 1.1.0 - 10-Feb-2006
57
83
  * Internal refactoring changes - now uses block form of Open3.popen3.
58
84
  * Most methods now return self instead of true (better for chaining).
59
85
  * Corresponding test suite changes.
60
86
 
61
- == 1.0.0 - 1-Sep-2005
87
+ ## 1.0.0 - 1-Sep-2005
62
88
  * Moved project to RubyForge.
63
89
  * Modified the constructor to accept a file pattern. If present, becomes
64
90
  a shortcut for Tar.new + Tar#create_archive.
@@ -79,7 +105,7 @@
79
105
  * Test suite updates.
80
106
  * Added a gemspec.
81
107
 
82
- == 0.3.0 - 10-Aug-2004
108
+ ## 0.3.0 - 10-Aug-2004
83
109
  * Added the update_archive() method.
84
110
  * The expand_archive() method has been renamed to extract_archive().
85
111
  For backward's compatability, an alias remains so you may use
@@ -89,7 +115,7 @@
89
115
  If not, then the entire archive is extracted.
90
116
  * Added corresponding tests and documentation updates.
91
117
 
92
- == 0.2.0 - 9-Aug-2004
118
+ ## 0.2.0 - 9-Aug-2004
93
119
  * Added the add_to_archive() method.
94
120
  * Removed the VERSION() class method. Use the constant instead.
95
121
  * Changed "TarException" and "CompressionException" to "TarError" and
@@ -100,5 +126,5 @@
100
126
  wish using the rd2 tool.
101
127
  * Added warranty information.
102
128
 
103
- == 0.1.0 - 24-Jan-2003
129
+ ## 0.1.0 - 24-Jan-2003
104
130
  * Initial Release
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source 'https://rubygems.org' do
2
+ gemspec
3
+ end
data/LICENSE ADDED
@@ -0,0 +1,177 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
data/MANIFEST.md ADDED
@@ -0,0 +1,13 @@
1
+ * CHANGES.md
2
+ * LICENSE
3
+ * MANIFEST.md
4
+ * README.md
5
+ * Gemfile
6
+ * Rakefile
7
+ * archive-tar-external.gemspec
8
+ * certs/djberg96_pub.pem
9
+ * doc/tar_external.md
10
+ * lib/archive-tar-external.rb
11
+ * lib/archive/tar_external.rb
12
+ * spec/archive_tar_external_spec.rb
13
+ * spec/spec_helper.rb
data/README.md ADDED
@@ -0,0 +1,59 @@
1
+ ## Description
2
+ A simple tar & compress library that nicely wraps external system calls.
3
+
4
+ ## Installation
5
+ `gem install archive-tar-external`
6
+
7
+ ## Synopsis
8
+ ```ruby
9
+ require 'archive/tar/external' # or 'archive-tar-external'
10
+
11
+ # Create an archive of all files with an ".rb" extension, the long way.
12
+ t = Archive::Tar::External.new('test.tar')
13
+ t.create_archive('*.rb')
14
+ t.compress_archive('gzip')
15
+
16
+ # Same, but the short way.
17
+ t = Archive::Tar::External.new('test.tar', '*.rb', 'gzip')
18
+ ```
19
+
20
+ ## Prerequisites
21
+ * The 'tar' command line program.
22
+ * At least one compression program, e.g. gzip, bzip2, zip, etc.
23
+
24
+ ## Known Issues
25
+
26
+ ### Solaris
27
+ The tar program that comes with Solaris will not raise an error if you
28
+ try to expand a file from an archive that does not contain that file.
29
+
30
+ ### OSX
31
+ It appears that the BSD tar that ships on Mac does not implement the -u
32
+ option properly by default, and will add a file to the archive even if
33
+ the timestamp of the file hasn't changed.
34
+
35
+ The OSX issue was effectively addressed in version 1.5.0, where the default
36
+ archive format was added and set to 'pax'.
37
+
38
+ If you come across any other issues, please report them on the project
39
+ page at https://github.com/djberg96/archive-tar-external.
40
+
41
+ ## History
42
+ This project was originally named "archive-tarsimple", but was renamed
43
+ on April 7, 2006. Versions of this gem prior to that date are no longer
44
+ available.
45
+
46
+ ## License
47
+ Apache-2.0
48
+
49
+ ## Warranty
50
+ This package is provided "as is" and without any express or
51
+ implied warranties, including, without limitation, the implied
52
+ warranties of merchantability and fitness for a particular purpose.
53
+
54
+ ## Copyright
55
+ (C) 2003 - 2021 Daniel J. Berger
56
+ All Rights Reserved
57
+
58
+ ## Author
59
+ Daniel J. Berger
data/Rakefile CHANGED
@@ -1,31 +1,26 @@
1
1
  require 'rake'
2
2
  require 'rake/clean'
3
- require 'rake/testtask'
3
+ require 'rspec/core/rake_task'
4
4
 
5
- CLEAN.include("**/*.gem", "**/*.rbc")
5
+ CLEAN.include("**/*.gem", "**/*.rbc", "**/*.lock")
6
6
 
7
7
  namespace :gem do
8
8
  desc 'Build the archive-tar-external gem'
9
9
  task :create do
10
+ require 'rubygems/package'
10
11
  spec = eval(IO.read('archive-tar-external.gemspec'))
11
- if Gem::VERSION < "2.0"
12
- Gem::Builder.new(spec).build
13
- else
14
- require 'rubygems/package'
15
- Gem::Package.build(spec)
16
- end
12
+ spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
13
+ Gem::Package.build(spec)
17
14
  end
18
15
 
19
16
  desc 'Install the archive-tar-external library as a gem'
20
- task :install => [:gem] do
17
+ task :install => [:create] do
21
18
  file = Dir["*.gem"].first
22
- sh "gem install #{file}"
19
+ sh "gem install -l #{file}"
23
20
  end
24
21
  end
25
22
 
26
- Rake::TestTask.new do |t|
27
- t.warning = true
28
- t.verbose = true
29
- end
23
+ desc "Run the test suite"
24
+ RSpec::Core::RakeTask.new(:spec)
30
25
 
31
- task :default => :test
26
+ task :default => :spec
@@ -2,22 +2,29 @@ require 'rubygems'
2
2
  require 'rbconfig'
3
3
 
4
4
  Gem::Specification.new do |spec|
5
- spec.name = 'archive-tar-external'
6
- spec.version = '1.3.2'
7
- spec.summary = 'A simple way to create tar archives using external calls'
8
- spec.license = 'Artistic 2.0'
9
- spec.author = 'Daniel Berger'
10
- spec.email = 'djberg96@gmail.com'
11
- spec.homepage = 'https://github.com/djberg96/archive-tar-external'
12
- spec.test_file = 'test/test_archive_tar_external.rb'
13
- spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
5
+ spec.name = 'archive-tar-external'
6
+ spec.version = '1.5.0'
7
+ spec.summary = 'A simple way to create tar archives using external calls'
8
+ spec.license = 'Apache-2.0'
9
+ spec.author = 'Daniel Berger'
10
+ spec.email = 'djberg96@gmail.com'
11
+ spec.homepage = 'http://github.com/djberg96/archive-tar-external'
12
+ spec.test_files = Dir['spec/*.rb']
13
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
14
+ spec.cert_chain = Dir['certs/*']
14
15
 
15
- spec.extra_rdoc_files = [
16
- 'README',
17
- 'CHANGES',
18
- 'MANIFEST',
19
- 'doc/tar_external.txt'
20
- ]
16
+ spec.metadata = {
17
+ 'homepage_uri' => 'https://github.com/djberg96/archive-tar-external',
18
+ 'bug_tracker_uri' => 'https://github.com/djberg96/archive-tar-external/issues',
19
+ 'changelog_uri' => 'https://github.com/djberg96/archive-tar-external/blob/main/CHANGES',
20
+ 'documentation_uri' => 'https://github.com/djberg96/archive-tar-external/wiki',
21
+ 'source_code_uri' => 'https://github.com/djberg96/archive-tar-external',
22
+ 'wiki_uri' => 'https://github.com/djberg96/archive-tar-external/wiki'
23
+ }
24
+
25
+ spec.add_development_dependency('rake')
26
+ spec.add_development_dependency('rspec', '~> 3.9')
27
+ spec.add_development_dependency('ptools', '~> 1.4')
21
28
 
22
29
  spec.description = <<-EOF
23
30
  The archive-tar-external is a simple wrapper interface for creating
@@ -25,8 +32,4 @@ Gem::Specification.new do |spec|
25
32
  your tar files with your system's compression programs such as zip, gzip,
26
33
  or bzip2.
27
34
  EOF
28
-
29
- spec.add_development_dependency('test-unit')
30
- spec.add_development_dependency('ptools')
31
- spec.add_development_dependency('rake')
32
35
  end