seven_zip_ruby 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/README.md +18 -15
- data/ext/seven_zip_ruby/extconf.rb +3 -3
- data/lib/seven_zip_ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 406e705d876048808c1a43bde40472e38daeda43
|
4
|
+
data.tar.gz: 61fbef4bf41b1f5c0589b609e27022f4cf85e908
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba40d7b46b2b3488690fc76ee4dad03c4d8f889f25f87d0f8a3e53842fb391d8a82b9d1b5672347fe2419a7c986160de475269552030c606680f12de5a3152b2
|
7
|
+
data.tar.gz: e201cbd4e6b0d18db7d9fc8531a3e5840f40e3f823e71015f3709d4384e3bf224ac5c62ac88735d20ccb94050094a9489d754977aa1af4b927c4219118b97df3
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -4,15 +4,18 @@
|
|
4
4
|
|
5
5
|
This is a Ruby gem library to extract/compress [7-Zip](http://www.7-zip.org) archives.
|
6
6
|
|
7
|
-
This extension calls the native library, 7z.dll or 7z.so, internally and
|
7
|
+
This extension calls the native library, 7z.dll or 7z.so, internally and these libraries are included in this gem.
|
8
8
|
|
9
9
|
## Features
|
10
|
-
*
|
11
|
-
*
|
10
|
+
* Uses official DLL, 7z.dll, internally.
|
11
|
+
* Supports extracting data into memory.
|
12
|
+
|
13
|
+
## Document
|
14
|
+
[RDoc](http://rubydoc.info/gems/seven_zip_ruby/frames) shows you the details.
|
12
15
|
|
13
16
|
## Examples
|
14
17
|
|
15
|
-
### Extract
|
18
|
+
### Extract archives
|
16
19
|
|
17
20
|
```ruby
|
18
21
|
File.open("filename.7z", "rb") do |file|
|
@@ -22,7 +25,7 @@ File.open("filename.7z", "rb") do |file|
|
|
22
25
|
end
|
23
26
|
```
|
24
27
|
|
25
|
-
You can also use
|
28
|
+
You can also use simpler method.
|
26
29
|
|
27
30
|
```ruby
|
28
31
|
File.open("filename.7z", "rb") do |file|
|
@@ -30,7 +33,7 @@ File.open("filename.7z", "rb") do |file|
|
|
30
33
|
end
|
31
34
|
```
|
32
35
|
|
33
|
-
### Show entries in archive
|
36
|
+
### Show the entries in the archive
|
34
37
|
|
35
38
|
```ruby
|
36
39
|
File.open("filename.7z", "rb") do |file|
|
@@ -42,7 +45,7 @@ File.open("filename.7z", "rb") do |file|
|
|
42
45
|
end
|
43
46
|
```
|
44
47
|
|
45
|
-
### Extract encrypted
|
48
|
+
### Extract encrypted archives
|
46
49
|
|
47
50
|
```ruby
|
48
51
|
File.open("filename.7z", "rb") do |file|
|
@@ -60,7 +63,7 @@ end
|
|
60
63
|
```
|
61
64
|
|
62
65
|
|
63
|
-
### Verify
|
66
|
+
### Verify archives
|
64
67
|
|
65
68
|
```ruby
|
66
69
|
File.open("filename.7z", "rb") do |file|
|
@@ -114,7 +117,7 @@ File.open("filename.7z", "rb") do |file|
|
|
114
117
|
end
|
115
118
|
```
|
116
119
|
|
117
|
-
### Get data from
|
120
|
+
### Get data from archives
|
118
121
|
|
119
122
|
Extract data into memory.
|
120
123
|
|
@@ -130,7 +133,7 @@ p data
|
|
130
133
|
# => File content is shown.
|
131
134
|
```
|
132
135
|
|
133
|
-
### Create archive manually
|
136
|
+
### Create an archive manually
|
134
137
|
|
135
138
|
```ruby
|
136
139
|
File.open("filename.7z", "rb") do |file|
|
@@ -178,8 +181,8 @@ p(Time.now - start)
|
|
178
181
|
## TODO
|
179
182
|
|
180
183
|
* Support file attributes on Linux and Mac OSX.
|
181
|
-
* Support
|
182
|
-
* Support
|
184
|
+
* Support update of an archive.
|
185
|
+
* Support extract of a rar archive.
|
183
186
|
|
184
187
|
|
185
188
|
## License
|
@@ -188,9 +191,9 @@ LGPL and unRAR license. Please refer to LICENSE.txt.
|
|
188
191
|
## Releases
|
189
192
|
|
190
193
|
* 1.2.*
|
191
|
-
|
194
|
+
- Fixed cosmetic bugs.
|
192
195
|
* 1.1.0
|
193
|
-
|
196
|
+
- Fixed a bug. Raises an exception when wrong password is specified.
|
194
197
|
* 1.0.0
|
195
|
-
Initial release.
|
198
|
+
- Initial release.
|
196
199
|
|
@@ -130,7 +130,7 @@ def main
|
|
130
130
|
if (RUBY_PLATFORM.include?("mswin"))
|
131
131
|
# mswin32
|
132
132
|
$LIBS = "oleaut32.lib"
|
133
|
-
$CPPFLAGS = "/I.. /EHsc /DNDEBUG /DUSE_WIN32_FILE_API #{base_flag} "
|
133
|
+
$CPPFLAGS = "/I.. /EHsc /DNDEBUG /DUSE_WIN32_FILE_API #{base_flag} #{$CPPFLAGS} "
|
134
134
|
elsif (RUBY_PLATFORM.include?("mingw"))
|
135
135
|
# MinGW
|
136
136
|
$LIBS = "-loleaut32 -static-libgcc -static-libstdc++"
|
@@ -140,7 +140,7 @@ def main
|
|
140
140
|
end
|
141
141
|
raise "C++11 is not supported by the compiler." unless (cpp0x_flag)
|
142
142
|
|
143
|
-
$CPPFLAGS = "-I.. #{cpp0x_flag} -DNDEBUG -DUSE_WIN32_FILE_API #{base_flag} "
|
143
|
+
$CPPFLAGS = "-I.. #{cpp0x_flag} -DNDEBUG -DUSE_WIN32_FILE_API #{base_flag} #{$CPPFLAGS} "
|
144
144
|
else
|
145
145
|
removed_flags = [ /\-mmacosx\-version\-min=[.0-9]+\b/ ]
|
146
146
|
removed_flags.each do |flag|
|
@@ -155,7 +155,7 @@ def main
|
|
155
155
|
end
|
156
156
|
raise "C++11 is not supported by the compiler." unless (cpp0x_flag)
|
157
157
|
|
158
|
-
$CPPFLAGS = "-I.. -I../CPP/include_windows -I../CPP #{cpp0x_flag} -DNDEBUG #{base_flag} "
|
158
|
+
$CPPFLAGS = "-I.. -I../CPP/include_windows -I../CPP #{cpp0x_flag} -DNDEBUG #{base_flag} #{$CPPFLAGS} "
|
159
159
|
|
160
160
|
|
161
161
|
ostype = check_ostype
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seven_zip_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masamitsu MURASE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -811,7 +811,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
811
811
|
version: '0'
|
812
812
|
requirements: []
|
813
813
|
rubyforge_project:
|
814
|
-
rubygems_version: 2.0.
|
814
|
+
rubygems_version: 2.0.14
|
815
815
|
signing_key:
|
816
816
|
specification_version: 4
|
817
817
|
summary: This is a ruby gem library to read and write 7zip files.
|