minizip 0.0.1 → 0.0.3

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.
@@ -1,3 +1,3 @@
1
1
  module Minizip
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/minizip/zip.rb CHANGED
@@ -3,6 +3,14 @@ module Minizip
3
3
  USING_OSX = RUBY_PLATFORM =~ /darwin/
4
4
 
5
5
  class Zip
6
+ def self.zip_files(zip_name, *files)
7
+ if USING_OSX
8
+ system "zip #{zip_name} #{files.join(' ')}"
9
+ elsif USING_WINDOWS
10
+ system "7z a #{zip_name} #{files.join(' ')}"
11
+ end
12
+ end
13
+
6
14
  def self.zip_dir(zip_name, directory)
7
15
  if File.exists?(directory)
8
16
  if USING_OSX
@@ -29,9 +37,5 @@ module Minizip
29
37
  puts "#{zip_name} doesn't exist in #{Dir.pwd}"
30
38
  end
31
39
  end
32
-
33
- def self
34
-
35
- end
36
40
  end
37
41
  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: 29
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Radamanthus Batnag and Eumir Gaspar