log_sweeper 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/log_sweeper.rb +6 -1
- data/lib/log_sweeper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b8d4b1926425ea81b8acfefc600980a8c87f345566762144e7c6be3b864b7f06
|
4
|
+
data.tar.gz: 5d8050f8459929b534c48a343d39e1941f3dc4b9b5eb5d28419a1c202a402bb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1885a07e020793c0272c4ea1ac7051e9cbd4c4f3f299f933fadda6501ce4fe655322b6263a3b5ebda530aace05187fd7aeb531487d9e7603419ce15d44aeac3
|
7
|
+
data.tar.gz: 2bda9c408fdc55fe9a9f797afd58334e7f7e126427fb03986793c48306561b402be0ee2853af3992ee3cf8f774da6b0de2325c13f5dfdcda4406cc35760d4a65
|
data/README.md
CHANGED
data/lib/log_sweeper.rb
CHANGED
@@ -42,7 +42,12 @@ module LogSweeper
|
|
42
42
|
zipped = "#{file_name}.gz"
|
43
43
|
|
44
44
|
Zlib::GzipWriter.open(zipped) do |gz|
|
45
|
-
|
45
|
+
File.open(file_name) do |file|
|
46
|
+
loop do
|
47
|
+
chunk = file.read(16 * 1024) or break
|
48
|
+
gz.write(chunk)
|
49
|
+
end
|
50
|
+
end
|
46
51
|
end
|
47
52
|
end
|
48
53
|
end
|
data/lib/log_sweeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: log_sweeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yuri Smirnov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
requirements: []
|
134
|
-
rubygems_version: 3.0.
|
134
|
+
rubygems_version: 3.0.2
|
135
135
|
signing_key:
|
136
136
|
specification_version: 4
|
137
137
|
summary: A simple module for cleaning up log directories.
|