cronicle 0.1.9 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cronicle/driver.rb +1 -1
- data/lib/cronicle/exporter.rb +4 -0
- data/lib/cronicle/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5e59d994c9053a7e7f684735bf31e36e0894bd
|
4
|
+
data.tar.gz: 23bbf254357c458e7381f510366a39c6bc52297f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9da051ad79732fa58805cdff44209add4ece98e4f019c5869c123239a7e6e3a64c97367998fc0f289e69c72db745f61fbb50301044736a64957c00adc7321855
|
7
|
+
data.tar.gz: 8e5e860a68fd60386e402422f54c1d2fe290d891f5c413aa56a33a02439566342653827d6d383d8e832d20c6e4cd8cb5ccfbe46e67a86ac2c0b12f14fa28173d
|
data/lib/cronicle/driver.rb
CHANGED
@@ -113,7 +113,7 @@ class Cronicle::Driver
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
-
if [:schedule, :content].any? {|k| job[k].
|
116
|
+
if [:schedule, :content].any? {|k| job[k].chomp != script[k].chomp }
|
117
117
|
create_or_update_job(user, name, job, script)
|
118
118
|
end
|
119
119
|
end
|
data/lib/cronicle/exporter.rb
CHANGED
@@ -43,6 +43,10 @@ class Cronicle::Exporter
|
|
43
43
|
if %r|\A#{Regexp.escape(libexec_dir)}/(?:[^/]+)/(.+)| =~ path
|
44
44
|
name = $1
|
45
45
|
|
46
|
+
if libexec_contents[path]
|
47
|
+
libexec_contents[path].force_encoding('utf-8')
|
48
|
+
end
|
49
|
+
|
46
50
|
scripts[name] = {
|
47
51
|
:schedule => schedule,
|
48
52
|
:path => path,
|
data/lib/cronicle/version.rb
CHANGED