logtwuncator 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +3 -5
  2. data/lib/log_twuncator.rb +1 -1
  3. metadata +46 -19
data/Rakefile CHANGED
@@ -9,11 +9,9 @@ Hoe.new('logtwuncator', LogTwuncator::VERSION) do |p|
9
9
  p.author = 'Adam Meehan'
10
10
  p.email = 'adam.meehan@gmail.com'
11
11
  p.summary = 'A win32 log file truncator and archiver with windows service'
12
- p.description = p.paragraphs_of('README.txt', 2..5).join("\n\n")
13
- p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
14
- p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
15
- p.remote_rdoc_dir = ''
16
- p.extra_deps << ['win32-service', '= 0.5.2']
12
+ p.description = 'A win32 log file truncator and archiver with windows service'
13
+ p.url = 'http://rubygems.org/gems/logtwuncator'
14
+ p.extra_deps << ['win32-service', '~> 0.5']
17
15
  end
18
16
 
19
17
  # vim: syntax=Ruby
data/lib/log_twuncator.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class LogTwuncator
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtwuncator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 3
10
+ version: 0.1.3
5
11
  platform: ruby
6
12
  authors:
7
13
  - Adam Meehan
@@ -9,28 +15,41 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2008-01-17 00:00:00 +11:00
18
+ date: 2011-12-29 00:00:00 +11:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
22
+ type: :runtime
16
23
  name: win32-service
17
- version_requirement:
18
- version_requirements: !ruby/object:Gem::Requirement
24
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ none: false
19
26
  requirements:
20
- - - "="
27
+ - - ~>
21
28
  - !ruby/object:Gem::Version
22
- version: 0.5.2
23
- version:
29
+ hash: 1
30
+ segments:
31
+ - 0
32
+ - 5
33
+ version: "0.5"
34
+ prerelease: false
35
+ requirement: *id001
24
36
  - !ruby/object:Gem::Dependency
37
+ type: :development
25
38
  name: hoe
26
- version_requirement:
27
- version_requirements: !ruby/object:Gem::Requirement
39
+ version_requirements: &id002 !ruby/object:Gem::Requirement
40
+ none: false
28
41
  requirements:
29
42
  - - ">="
30
43
  - !ruby/object:Gem::Version
31
- version: 1.4.0
32
- version:
33
- description: "It comes with a windows service to install and leave running to monitor the directories you specify in the config file. The config file allows the specification of many directories to monitor for log file age and size. File age is monitored by using the file creation date. In *nix programs like logrotate the log file can be moved and recreated using POSIX signalling to restart the process, and hence starting with a new file and creation date. On windows this is not possible without getting really intimate with the running process, so to get around it this program uses win32 API call to change the created date after arching and truncating the file, leaving it in plave. This seems to work fine with Rails and Apache but may cause problems depending on how the running application has opened the log file to append to it. Please report any problems/suggestions you have. Credits:"
44
+ hash: 35
45
+ segments:
46
+ - 1
47
+ - 12
48
+ - 2
49
+ version: 1.12.2
50
+ prerelease: false
51
+ requirement: *id002
52
+ description: A win32 log file truncator and archiver with windows service
34
53
  email: adam.meehan@gmail.com
35
54
  executables:
36
55
  - log_twuncator_service
@@ -62,7 +81,9 @@ files:
62
81
  - test/test_service.rb
63
82
  - test/test_helper.rb
64
83
  has_rdoc: true
65
- homepage: " by Adam Meehan (adam.meehan@gmail.com)"
84
+ homepage: http://rubygems.org/gems/logtwuncator
85
+ licenses: []
86
+
66
87
  post_install_message:
67
88
  rdoc_options:
68
89
  - --main
@@ -70,27 +91,33 @@ rdoc_options:
70
91
  require_paths:
71
92
  - lib
72
93
  required_ruby_version: !ruby/object:Gem::Requirement
94
+ none: false
73
95
  requirements:
74
96
  - - ">="
75
97
  - !ruby/object:Gem::Version
98
+ hash: 3
99
+ segments:
100
+ - 0
76
101
  version: "0"
77
- version:
78
102
  required_rubygems_version: !ruby/object:Gem::Requirement
103
+ none: false
79
104
  requirements:
80
105
  - - ">="
81
106
  - !ruby/object:Gem::Version
107
+ hash: 3
108
+ segments:
109
+ - 0
82
110
  version: "0"
83
- version:
84
111
  requirements: []
85
112
 
86
113
  rubyforge_project: logtwuncator
87
- rubygems_version: 1.0.1
114
+ rubygems_version: 1.5.2
88
115
  signing_key:
89
- specification_version: 2
116
+ specification_version: 3
90
117
  summary: A win32 log file truncator and archiver with windows service
91
118
  test_files:
119
+ - test/test_daemon.rb
120
+ - test/test_helper.rb
92
121
  - test/test_service.rb
93
122
  - test/test_truncator.rb
94
123
  - test/test_win32_file.rb
95
- - test/test_helper.rb
96
- - test/test_daemon.rb