perfectsched 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,10 @@
1
1
 
2
+ == 2011-11-02 version 0.7.2
3
+
4
+ * Disables logger's buffering
5
+ * Fixed time format in --list message
6
+
7
+
2
8
  == 2011-09-16 version 0.7.1
3
9
 
4
10
  * Supports to read multiple configuration files
@@ -230,9 +230,10 @@ case type
230
230
  when :list
231
231
  format = "%26s %20s %8s %26s %26s %s"
232
232
  puts format % ["id", "schedule", "delay", "next time", "next run", "data"]
233
+ time_format = "%Y-%m-%d %H:%M:%S %z"
233
234
  n = 0
234
235
  backend.list {|id,cron,delay,data,next_time,timeout|
235
- puts format % [id, cron, delay, Time.at(next_time), Time.at(timeout), data]
236
+ puts format % [id, cron, delay, Time.at(next_time).strftime(time_format), Time.at(timeout).strftime(time_format), data]
236
237
  n += 1
237
238
  }
238
239
  puts "#{n} entries."
@@ -307,6 +308,7 @@ when :run
307
308
  else
308
309
  log_out = STDOUT
309
310
  end
311
+ log_out.sync = true
310
312
 
311
313
  log = Logger.new(log_out)
312
314
  if conf[:verbose]
@@ -1,5 +1,5 @@
1
1
  module PerfectSched
2
2
 
3
- VERSION = '0.7.1'
3
+ VERSION = '0.7.2'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,97 +1,69 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: perfectsched
3
- version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 7
9
- - 1
10
- version: 0.7.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Sadayuki Furuhashi
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-09-16 00:00:00 +09:00
19
- default_executable: perfectsched
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-02 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: cron-spec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &9015240 !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - "="
28
- - !ruby/object:Gem::Version
29
- hash: 31
30
- segments:
31
- - 0
32
- - 1
33
- - 2
18
+ requirements:
19
+ - - =
20
+ - !ruby/object:Gem::Version
34
21
  version: 0.1.2
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: sequel
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *9015240
25
+ - !ruby/object:Gem::Dependency
26
+ name: sequel
27
+ requirement: &9014700 !ruby/object:Gem::Requirement
41
28
  none: false
42
- requirements:
29
+ requirements:
43
30
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 111
46
- segments:
47
- - 3
48
- - 26
49
- - 0
31
+ - !ruby/object:Gem::Version
50
32
  version: 3.26.0
51
33
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: aws-sdk
55
34
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *9014700
36
+ - !ruby/object:Gem::Dependency
37
+ name: aws-sdk
38
+ requirement: &9014180 !ruby/object:Gem::Requirement
57
39
  none: false
58
- requirements:
40
+ requirements:
59
41
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 17
62
- segments:
63
- - 1
64
- - 1
65
- - 1
42
+ - !ruby/object:Gem::Version
66
43
  version: 1.1.1
67
44
  type: :runtime
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: perfectqueue
71
45
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *9014180
47
+ - !ruby/object:Gem::Dependency
48
+ name: perfectqueue
49
+ requirement: &9013600 !ruby/object:Gem::Requirement
73
50
  none: false
74
- requirements:
51
+ requirements:
75
52
  - - ~>
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- - 7
81
- - 0
53
+ - !ruby/object:Gem::Version
82
54
  version: 0.7.0
83
55
  type: :runtime
84
- version_requirements: *id004
56
+ prerelease: false
57
+ version_requirements: *9013600
85
58
  description:
86
59
  email: frsyuki@gmail.com
87
- executables:
60
+ executables:
88
61
  - perfectsched
89
62
  extensions: []
90
-
91
- extra_rdoc_files:
63
+ extra_rdoc_files:
92
64
  - ChangeLog
93
65
  - README.rdoc
94
- files:
66
+ files:
95
67
  - bin/perfectsched
96
68
  - lib/perfectsched.rb
97
69
  - lib/perfectsched/backend.rb
@@ -103,42 +75,32 @@ files:
103
75
  - lib/perfectsched/version.rb
104
76
  - ChangeLog
105
77
  - README.rdoc
106
- - test/backend_test.rb
107
78
  - test/test_helper.rb
108
- has_rdoc: true
79
+ - test/backend_test.rb
109
80
  homepage: https://github.com/treasure-data/perfectsched
110
81
  licenses: []
111
-
112
82
  post_install_message:
113
- rdoc_options:
114
- - --charset=UTF-8
115
- require_paths:
83
+ rdoc_options: []
84
+ require_paths:
116
85
  - lib
117
- required_ruby_version: !ruby/object:Gem::Requirement
86
+ required_ruby_version: !ruby/object:Gem::Requirement
118
87
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 0
125
- version: "0"
126
- required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - ! '>='
90
+ - !ruby/object:Gem::Version
91
+ version: '0'
92
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
93
  none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- hash: 3
132
- segments:
133
- - 0
134
- version: "0"
94
+ requirements:
95
+ - - ! '>='
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
135
98
  requirements: []
136
-
137
99
  rubyforge_project:
138
- rubygems_version: 1.3.7
100
+ rubygems_version: 1.8.10
139
101
  signing_key:
140
102
  specification_version: 3
141
103
  summary: Highly available distributed cron built on RDBMS or SimpleDB
142
- test_files:
143
- - test/backend_test.rb
104
+ test_files:
144
105
  - test/test_helper.rb
106
+ - test/backend_test.rb