archive 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/README.md +6 -1
- data/archive.gemspec +1 -1
- data/lib/archive/libarchive.rb +7 -0
- data/lib/archive/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eea58532ddc940adf915b551058677861c5c6f1f
|
4
|
+
data.tar.gz: c726a2100a1da44625735183dab2ebc5ede03281
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46db2088dd9999ab72eacb831f09ddd0114a4eb8b93b12436958355d1f15ae77a03f4b8c6cee6a2570b59d3897b50f49bf86950d0e7e3d04ab3ee70c87e93b99
|
7
|
+
data.tar.gz: 3f7c3c403a87b5a2316367a57f65b32308130250089893953a840ae1f23398a3a0cd375a4d244e79a274add1622df2e770ae29bba15692a78015fdf53a112119
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -9,6 +9,7 @@ common subset of archive types:
|
|
9
9
|
* gzipped
|
10
10
|
* bzip2'd
|
11
11
|
* zip (uncompressed, binary-only)
|
12
|
+
* iso9660 (read-only, and not on OS X)
|
12
13
|
|
13
14
|
## Installation
|
14
15
|
|
@@ -65,7 +66,7 @@ Tests require bundler. Run `bundle exec rake test` to run the tests.
|
|
65
66
|
|
66
67
|
We have verified that archive works as intended on these platforms:
|
67
68
|
|
68
|
-
* Mac OS X 10.8
|
69
|
+
* Mac OS X 10.8, 10.9 (Except iso format)
|
69
70
|
* Ubuntu Linux 12.04 LTS
|
70
71
|
* FreeBSD 9
|
71
72
|
|
@@ -77,6 +78,10 @@ And these Rubies:
|
|
77
78
|
|
78
79
|
It does not work on these platforms:
|
79
80
|
|
81
|
+
* On OS X iso formats are unsupported. The version of libarchive distributed
|
82
|
+
with both 10.8 and 10.9 seems to have trouble with all iso derivatives.
|
83
|
+
Patches welcome for fixes!
|
84
|
+
|
80
85
|
* SmartOS "base64 1.9.1". The version of libarchive they distribute via pkgsrc
|
81
86
|
is broken, see this URL:
|
82
87
|
|
data/archive.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.3"
|
24
24
|
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency 'minitest'
|
25
|
+
spec.add_development_dependency 'minitest', '~> 5.0.0'
|
26
26
|
spec.add_development_dependency 'guard-minitest'
|
27
27
|
spec.add_development_dependency 'guard-rake', '~> 0.0.8'
|
28
28
|
spec.add_development_dependency 'rdoc', '~> 4.0'
|
data/lib/archive/libarchive.rb
CHANGED
@@ -129,10 +129,17 @@ module Archive # :nodoc:
|
|
129
129
|
attach_function :archive_read_support_format_gnutar, [:pointer], :void
|
130
130
|
attach_function :archive_read_support_format_zip, [:pointer], :void
|
131
131
|
|
132
|
+
unless ::FFI::Platform.mac?
|
133
|
+
attach_function :archive_read_support_format_iso9660, [:pointer], :void
|
134
|
+
end
|
135
|
+
|
132
136
|
def self.enable_input_formats(arg) # :nodoc:
|
133
137
|
archive_read_support_format_gnutar(arg)
|
134
138
|
archive_read_support_format_zip(arg)
|
135
139
|
archive_read_support_format_zip(arg)
|
140
|
+
unless ::FFI::Platform.mac?
|
141
|
+
archive_read_support_format_iso9660(arg)
|
142
|
+
end
|
136
143
|
enable_input_compression(arg)
|
137
144
|
end
|
138
145
|
|
data/lib/archive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Hollensbe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: minitest
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 5.0.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 5.0.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
176
176
|
version: '0'
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project:
|
179
|
-
rubygems_version: 2.0.
|
179
|
+
rubygems_version: 2.0.6
|
180
180
|
signing_key:
|
181
181
|
specification_version: 4
|
182
182
|
summary: Simple library to manage tar and zip archives with libarchive and FFI
|