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 CHANGED
@@ -5,3 +5,4 @@ pkg/*
5
5
  *.swp
6
6
  .DS_Store
7
7
  .rvmrc
8
+ tmp
@@ -1,3 +1,3 @@
1
1
  module Minizip
2
- VERSION = "0.0.11"
2
+ VERSION = "0.0.12"
3
3
  end
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 = {'directory' => 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
- directory = options['directory']
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
@@ -21,4 +21,5 @@ Gem::Specification.new do |s|
21
21
  # specify any dependencies here; for example:
22
22
  s.add_development_dependency "aruba"
23
23
  s.add_runtime_dependency "thor"
24
+ s.add_runtime_dependency "activesupport"
24
25
  end
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: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
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-19 00:00:00 Z
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.10
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)