compresslog 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/compresslog.gemspec +1 -1
- data/lib/compresslog.rb +1 -1
- 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: 92a022d02d4cb001a6649c64ce7491859e2f3094
|
4
|
+
data.tar.gz: 702fd4a4172ab6ca1531d620cb9586d9c5867fdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83cdcdd655babceaec7343a56816dd01a130b9a76b26bacd17fde661c2fece2c7988bd9ed44fa1c403edde9bc7fcae907167f5413fa0069ed29b7893525582d0
|
7
|
+
data.tar.gz: 9597948e3846921a58d446bffff4200a63be4151c973e8009500e64ed0a9688050e886749029e50dd7fc44e6f51ea8b2b17ae851057718a8b5a48ffb173cf141
|
data/compresslog.gemspec
CHANGED
data/lib/compresslog.rb
CHANGED
@@ -39,7 +39,7 @@ module Compresslog
|
|
39
39
|
data = Time.new.strftime("%Y%m%d_%H%M%S")
|
40
40
|
folder = Rails.root.join("log")
|
41
41
|
input_filenames = Dir.entries("#{folder}").grep /^#{name}.log./
|
42
|
-
zipfile_name = "#{folder}/#{data}.zip"
|
42
|
+
zipfile_name = "#{folder}/#{data}-#{name}.zip"
|
43
43
|
unless (input_filenames.empty?)
|
44
44
|
Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile|
|
45
45
|
input_filenames.each do |filename|
|