promotion 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,4 +1,4 @@
1
- == Version 1.3.3
1
+ == Version 1.3.4
2
2
  - Schedule in newsyslog handles $-formats (starting with 'D', 'W', or 'M')
3
3
  and @-formats (containing 'T') as well as integer hours and '*'
4
4
 
@@ -40,7 +40,7 @@ module Newsyslog
40
40
  # treat as $-format if starts with D,W,M; treat as integer if integer
41
41
  # else treat as @-format if digits with a 'T'
42
42
  sched = nsl.attributes["When"] || "*"
43
- if sched[0] == "D" or sched[0] == "W" or sched[0] == "M"
43
+ if sched[0..0] == "D" or sched[0..0] == "W" or sched[0..0] == "M"
44
44
  contents << "$%-9s" % sched
45
45
  elsif sched.include?("T")
46
46
  contents << "@%-9s" % sched
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promotion
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 3
10
- version: 1.3.3
9
+ - 4
10
+ version: 1.3.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Richard Kernahan