auto_cron 0.1.9 → 0.1.10
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 +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/auto_cron.gemspec
CHANGED
data/lib/auto_cron.rb
CHANGED
@@ -21,7 +21,7 @@ class AutoCron
|
|
21
21
|
|
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
|
-
read_crontab.gsub(Regexp.
|
24
|
+
read_crontab.gsub(Regexp.new("#{comment_open}.+#{comment_close}", Regexp::MULTILINE), auto_cron_wrapped.chomp)
|
25
25
|
else
|
26
26
|
# Otherwise, append the new cron entries after any existing ones
|
27
27
|
[read_crontab, auto_cron_wrapped].join("\n\n")
|
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: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 10
|
10
|
+
version: 0.1.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Farrill
|