auto_cron 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/auto_cron.gemspec +1 -1
- data/lib/auto_cron.rb +2 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
data/auto_cron.gemspec
CHANGED
data/lib/auto_cron.rb
CHANGED
@@ -22,7 +22,8 @@ class AutoCron
|
|
22
22
|
# If an existing identier block is found, replace it with the new cron entries
|
23
23
|
if read_crontab.index(comment_open) && read_crontab.index(comment_close)
|
24
24
|
read_crontab.gsub(Regexp.n#ew("#{comment_open}.+#{comment_close}", Regexp::MULTILINE), auto_cron_wrapped.chomp)
|
25
|
-
else
|
25
|
+
else
|
26
|
+
# Otherwise, append the new cron entries after any existing ones
|
26
27
|
[read_crontab, auto_cron_wrapped].join("\n\n")
|
27
28
|
end
|
28
29
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: auto_cron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 9
|
10
|
+
version: 0.1.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Farrill
|