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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b66249785b8332f0f4537856fa3a381f3db86250
4
- data.tar.gz: 0e6e15bc206e6e08b55e1627c30afdfa17cb6f7a
3
+ metadata.gz: 406e705d876048808c1a43bde40472e38daeda43
4
+ data.tar.gz: 61fbef4bf41b1f5c0589b609e27022f4cf85e908
5
5
  SHA512:
6
- metadata.gz: e10e230604734dec4707308aa6bf29c772df37f9565a5d69b855f6db82341e27a6c9979bd2e2cadf323a1a8145b9d23a7ae5b0098188315e3113c91fb01c8ddc
7
- data.tar.gz: a8f175d3051d1eb0ac4c8342942aee9148ff1f829ceed69630b1195047c38572d04294af5253f5f177882420a4c3be40facfd477136ca8bcb4424bdde8c54b5e
6
+ metadata.gz: ba40d7b46b2b3488690fc76ee4dad03c4d8f889f25f87d0f8a3e53842fb391d8a82b9d1b5672347fe2419a7c986160de475269552030c606680f12de5a3152b2
7
+ data.tar.gz: e201cbd4e6b0d18db7d9fc8531a3e5840f40e3f823e71015f3709d4384e3bf224ac5c62ac88735d20ccb94050094a9489d754977aa1af4b927c4219118b97df3
@@ -2,11 +2,11 @@ language: ruby
2
2
  rvm:
3
3
  - "2.0.0"
4
4
  - "2.1.1"
5
- - "rbx"
5
+ - "rbx-2"
6
6
  - "ruby-head"
7
7
  matrix:
8
8
  allow_failures:
9
- - rvm: "rbx"
9
+ - rvm: "rbx-2"
10
10
  - rvm: "ruby-head"
11
11
  notifications:
12
12
  email: false
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 it is included in this gem.
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
- * Use official DLL, 7z.dll, internally.
11
- * Support extracting data into memory.
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 archive
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 handy method.
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 archive
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 archive
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 archive
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 updating archive.
182
- * Support extracting rar archive.
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
- Bug fix.
194
+ - Fixed cosmetic bugs.
192
195
  * 1.1.0
193
- Raise error when wrong password is specified.
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
@@ -1,3 +1,3 @@
1
1
  module SevenZipRuby
2
- VERSION = "1.2.3"
2
+ VERSION = "1.2.4"
3
3
  end
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.3
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-06-28 00:00:00.000000000 Z
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.2
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.