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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 87e75271792a9e0797ef79b0f7a1bb062cbd668e
4
- data.tar.gz: b1f0524e2c33a74f1c98c9bc3ecd7749ed5933d2
3
+ metadata.gz: bf5e59d994c9053a7e7f684735bf31e36e0894bd
4
+ data.tar.gz: 23bbf254357c458e7381f510366a39c6bc52297f
5
5
  SHA512:
6
- metadata.gz: 3b0f82b6d0ca1ac6e4ad699a2f3ecd8be7f08e7ecfb70195dfbb3cb5c7b9720811d135996cfb1766a0b778c8eb0b76bae6384636a6ef76132355a9eb98c00aa0
7
- data.tar.gz: 29f9ef6e2029d5318adeff8fc49884ec298d85de410f468fbaa095c8a5a0f164fd58a75284d8f8f1c23a742ed9b4da2954f148beb0b95cfde02683e7ad66a0f4
6
+ metadata.gz: 9da051ad79732fa58805cdff44209add4ece98e4f019c5869c123239a7e6e3a64c97367998fc0f289e69c72db745f61fbb50301044736a64957c00adc7321855
7
+ data.tar.gz: 8e5e860a68fd60386e402422f54c1d2fe290d891f5c413aa56a33a02439566342653827d6d383d8e832d20c6e4cd8cb5ccfbe46e67a86ac2c0b12f14fa28173d
@@ -113,7 +113,7 @@ class Cronicle::Driver
113
113
  end
114
114
  end
115
115
 
116
- if [:schedule, :content].any? {|k| job[k].strip != script[k].strip }
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
@@ -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,
@@ -1,3 +1,3 @@
1
1
  module Cronicle
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara