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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MjdhZWU4YWNiZDVmMTUxN2YzMjY1OTYxNDY4OTJmMGM3MjM1ZWY2OA==
4
+ Zjc5MzcxZmUxOTE2YWNmY2VjNGVlMTNhZGVkNmY5MDljN2I0YzQzMA==
5
5
  data.tar.gz: !binary |-
6
- YWZhZmY5YzQyOTlkNTlhZjgwMjNjMTVkYTc0ZWM0YTM5YWZkMmRkNA==
6
+ NWRlOWZiOTlhZTc2MjQxMTYyMDk3OGI3ZDU0NjVjMWM4NDY0NWY4OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NjU3ZTE5YjU5MTUyYzIwNjdlNTE5NzY5OGZlNmYyNWU4MmI2YmVkMDZkMTU4
10
- ODRlMWUyZDc3MGRkYTExZTVkYTY5OTNjYWM3NGQ0YjIwOTg2YjMwYWM1MTg4
11
- MGNmM2U4ZTlhZDMzYTIxNjZhOThmMTQ5MGZjZTcxZjE4NjUyMjI=
9
+ ZjUzN2U1ZGUwMzBlNzc0MWZhOTg0ODBkZjVlOWRkMDcyZmRkYzNjMTAxZGEx
10
+ ZTY1M2VhNmJhNTI5OWFkMjJlZDI5NjFkZDFhNTJkNWNkYTkzN2IyOTE5Y2Nj
11
+ ODk2OTRhYWI4NjMxYmE2ODU2ZjY1NmQ5ZTQ4ODcwYjRjZGI5NGY=
12
12
  data.tar.gz: !binary |-
13
- MjlmZWI1ZGMwNmFjZjg0MTJhNjgxZmVkYTFmMWNiN2Q0YmJiZGUyNTE4NmI0
14
- MThiOWIzZjg3OTUxM2EzMTA5OGExYzU5OGM0NDdmNGYxOTAyOWJmMGViZjM3
15
- ODQyNGVjMWVhYTA2NjE3NjdlZGFmM2IwOTk3YjhkYzViNzEwNGU=
13
+ OTZhYmRlODk4YjNjMWJmM2VlOWUxYzFlNDIxYmE5OTRmMzE2NDJhNGRlMGUz
14
+ MTE0ZGRlNDczZWU1NzBhMWY3MDViODVjMGZjY2U5YjZjNDU2NGMzMTY4Mzc5
15
+ Nzc5YmVmODZjMGZkZjIyYTcyNWM5NjcwYjkzNWE4ODc1ODc1Mjg=
data/Gemfile CHANGED
@@ -3,4 +3,4 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in eye-rotate.gemspec
4
4
  gemspec
5
5
 
6
- gem 'eye', :git => "https://github.com/kostya/eye.git"
6
+ #gem 'eye', :git => "https://github.com/kostya/eye.git"
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
@@ -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
@@ -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"
@@ -4,7 +4,7 @@ require_relative "log_rotate"
4
4
  class Eye::Dsl::ConfigOpts
5
5
  def log_rotate(params = {})
6
6
  Eye.application '__default__' do
7
- check :log_rotate_0, {:device => :stdall}.merge!(params)
7
+ check :log_rotate, {:device => :stdall}.merge!(params)
8
8
  end
9
9
  end
10
10
  end
@@ -2,5 +2,5 @@ module Eye
2
2
  end
3
3
 
4
4
  module Eye::Rotate
5
- VERSION = "0.1.1"
5
+ VERSION = "0.1.2"
6
6
  end
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.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-05-31 00:00:00.000000000 Z
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: '0.6'
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: '0.6'
26
+ version: 0.6.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement