dev 2.1.10 → 2.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/base/dir.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1693b6264cac32a33572958dc0bf81a85d71ba1e
|
4
|
+
data.tar.gz: f7937f92a185710cb86758272b38eccb78933e01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcd9bff81271e598252a2864e797deb28bf3179ead64e4c9b9927df37093344389f7ad8ec3bee96820606e08b58b4a616ebebd9a7f666fb6cdae38101ee93a4b
|
7
|
+
data.tar.gz: b78a528e68922bca25bfdaba442f9fcf5c806d585ed20dd78439e3b7006c7534f5aefb726d40f91496c4f303cbc37ea12bbaa5a5cc5a2627fb204230159f3dcb
|
data/lib/base/dir.rb
CHANGED
@@ -37,14 +37,14 @@ class Dir
|
|
37
37
|
mtime
|
38
38
|
end
|
39
39
|
|
40
|
-
def self.zip(directory,
|
40
|
+
def self.zip(directory,files,zipfilename)
|
41
41
|
if Gem::Specification::find_all_by_name('rubyzip').any?
|
42
42
|
require 'zip'
|
43
43
|
File.delete(zipfilename) if(File.exists?(zipfilename))
|
44
44
|
Zip::File.open(zipfilename,Zip::File::CREATE) do |zipfile|
|
45
45
|
Dir.chdir(directory) do
|
46
46
|
count = 0
|
47
|
-
|
47
|
+
files.each{|source_file|
|
48
48
|
zipfile.add(source_file,"#{directory}/#{source_file}")
|
49
49
|
count = count + 1
|
50
50
|
}
|