eye-rotate 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Gemfile +1 -1
- data/README.md +4 -2
- data/examples/default.eye +1 -2
- data/eye-rotate.gemspec +1 -1
- data/lib/eye-rotate/extension.rb +1 -1
- data/lib/eye-rotate/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Zjc5MzcxZmUxOTE2YWNmY2VjNGVlMTNhZGVkNmY5MDljN2I0YzQzMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NWRlOWZiOTlhZTc2MjQxMTYyMDk3OGI3ZDU0NjVjMWM4NDY0NWY4OQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjUzN2U1ZGUwMzBlNzc0MWZhOTg0ODBkZjVlOWRkMDcyZmRkYzNjMTAxZGEx
|
10
|
+
ZTY1M2VhNmJhNTI5OWFkMjJlZDI5NjFkZDFhNTJkNWNkYTkzN2IyOTE5Y2Nj
|
11
|
+
ODk2OTRhYWI4NjMxYmE2ODU2ZjY1NmQ5ZTQ4ODcwYjRjZGI5NGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTZhYmRlODk4YjNjMWJmM2VlOWUxYzFlNDIxYmE5OTRmMzE2NDJhNGRlMGUz
|
14
|
+
MTE0ZGRlNDczZWU1NzBhMWY3MDViODVjMGZjY2U5YjZjNDU2NGMzMTY4Mzc5
|
15
|
+
Nzc5YmVmODZjMGZkZjIyYTcyNWM5NjcwYjkzNWE4ODc1ODc1Mjg=
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -15,6 +15,9 @@ Options:
|
|
15
15
|
:min_size (Fixnum) - set minimal file size for rotate
|
16
16
|
:gzip (Boolean) - gzip file or not
|
17
17
|
:count (Fixnum) - count of rotated files
|
18
|
+
:every (Fixnum) - how often rotate log (rotate every tick unless min_size set)
|
19
|
+
:filename (String) - use custom filename to rotate
|
20
|
+
:device (Symbol) - log from process settings [:stdout, :stderr, :stdall] (default: :stdall)
|
18
21
|
|
19
22
|
Example config: Auto rotate all processes stdall:
|
20
23
|
|
@@ -26,11 +29,10 @@ Eye.config do
|
|
26
29
|
end
|
27
30
|
|
28
31
|
Eye.application :app do
|
29
|
-
working_dir path
|
30
32
|
process :process do
|
31
33
|
start_command "ruby -e '1000.times { puts Time.now; $stdout.flush; sleep 0.1 } '"
|
32
34
|
daemonize true
|
33
|
-
pid_file "1.pid"
|
35
|
+
pid_file "/tmp/1.pid"
|
34
36
|
stdall "/tmp/test.log"
|
35
37
|
end
|
36
38
|
end
|
data/examples/default.eye
CHANGED
@@ -6,11 +6,10 @@ Eye.config do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
Eye.application :app do
|
9
|
-
working_dir path
|
10
9
|
process :process do
|
11
10
|
start_command "ruby -e '1000.times { puts Time.now; $stdout.flush; sleep 0.1 } '"
|
12
11
|
daemonize true
|
13
|
-
pid_file "1.pid"
|
12
|
+
pid_file "/tmp/1.pid"
|
14
13
|
stdall "/tmp/test.log"
|
15
14
|
end
|
16
15
|
end
|
data/eye-rotate.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "eye", '>= 0.6'
|
21
|
+
spec.add_dependency "eye", '>= 0.6.1'
|
22
22
|
|
23
23
|
spec.add_development_dependency "bundler", "~> 1.6"
|
24
24
|
spec.add_development_dependency "rake"
|
data/lib/eye-rotate/extension.rb
CHANGED
data/lib/eye-rotate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eye-rotate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ! '''Konstantin Makarchev'''
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: eye
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.6.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.6.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|