minizip 0.0.11 → 0.0.12
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.
- data/.gitignore +1 -0
- data/lib/minizip/version.rb +1 -1
- data/lib/minizip/zip.rb +5 -3
- data/minizip.gemspec +1 -0
- metadata +19 -5
data/.gitignore
CHANGED
data/lib/minizip/version.rb
CHANGED
data/lib/minizip/zip.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'rbconfig'
|
|
2
|
+
require 'active_support/core_ext'
|
|
2
3
|
|
|
3
4
|
module Minizip
|
|
4
5
|
USING_WINDOWS = (::RbConfig::CONFIG['host_os'] =~/mswin|mingw/)
|
|
@@ -26,10 +27,11 @@ module Minizip
|
|
|
26
27
|
|
|
27
28
|
def self.extract(zip_name, options)
|
|
28
29
|
if options && options.is_a?(String)
|
|
29
|
-
warn "[DEPRECATED] Passing in 'directory' as the second argument is deprecated. Please pass it in as part of a hash instead, like this: extract(#{zip_name}, :directory => #{options})"
|
|
30
|
-
options = {
|
|
30
|
+
warn "[DEPRECATED] Passing in 'directory' as the second argument is deprecated. Please pass it in as part of a hash instead, like this: extract(#{zip_name}, :directory => #{options}) #{caller.first}"
|
|
31
|
+
options = {:directory => options}
|
|
31
32
|
end
|
|
32
|
-
|
|
33
|
+
options = options.with_indifferent_access
|
|
34
|
+
directory = options[:directory]
|
|
33
35
|
|
|
34
36
|
if File.exists?(zip_name)
|
|
35
37
|
Dir.mkdir(directory) if directory && !File.exists?(directory)
|
data/minizip.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minizip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 7
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 12
|
|
10
|
+
version: 0.0.12
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Radamanthus Batnag and Eumir Gaspar
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2012-06-
|
|
18
|
+
date: 2012-06-27 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
name: aruba
|
|
@@ -45,6 +45,20 @@ dependencies:
|
|
|
45
45
|
version: "0"
|
|
46
46
|
type: :runtime
|
|
47
47
|
version_requirements: *id002
|
|
48
|
+
- !ruby/object:Gem::Dependency
|
|
49
|
+
name: activesupport
|
|
50
|
+
prerelease: false
|
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
52
|
+
none: false
|
|
53
|
+
requirements:
|
|
54
|
+
- - ">="
|
|
55
|
+
- !ruby/object:Gem::Version
|
|
56
|
+
hash: 3
|
|
57
|
+
segments:
|
|
58
|
+
- 0
|
|
59
|
+
version: "0"
|
|
60
|
+
type: :runtime
|
|
61
|
+
version_requirements: *id003
|
|
48
62
|
description: A Ruby wrapper for the zip/unzip command line tools(for UNIX) and 7zip(for Windows)
|
|
49
63
|
email:
|
|
50
64
|
- rad+eumir@aelogica.com
|
|
@@ -132,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
132
146
|
requirements: []
|
|
133
147
|
|
|
134
148
|
rubyforge_project: minizip
|
|
135
|
-
rubygems_version: 1.8.
|
|
149
|
+
rubygems_version: 1.8.17
|
|
136
150
|
signing_key:
|
|
137
151
|
specification_version: 3
|
|
138
152
|
summary: A Ruby wrapper for the zip/unzip command line tools(for UNIX) and 7zip(for Windows)
|