dyntask-ruby 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/dyntask-init +1 -0
- data/lib/dyntask/task_mngr.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 827461fdfafb90b7a5e426cd01f67b64dc0cfbbd
|
4
|
+
data.tar.gz: d023941a5758d1234ec4540e7e9ecf6d3e4f0faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae62124ccd28f415fd87c4ccfbaa54fdc7443ac2acf6597662065750b29d679c622c95e52541c586eb25a6c1b7552c6f1d3022e07740b76708ce73076ca3ae5
|
7
|
+
data.tar.gz: 58101b2f9f1a918962cc5140ddb443a5765b72dffab3c8f317e0f50a9e05eadd1c4cada2314cbcfb9fc28435fe5b9a80a9f288bfaa1a2602e54561b780695dfd
|
data/bin/dyntask-init
CHANGED
@@ -26,6 +26,7 @@ end
|
|
26
26
|
case ARGV[0] || "first"
|
27
27
|
when "first"
|
28
28
|
FileUtils.mkdir_p DynTask.cfg_dir[:root] unless File.directory? DynTask.cfg_dir[:root]
|
29
|
+
FileUtils.mkdir_p DynTask.cfg_dir[:run] unless File.directory? DynTask.cfg_dir[:run]
|
29
30
|
FileUtils.cp_r File.expand_path('../../share',__FILE__),DynTask.cfg_dir[:share] unless File.directory? File.join(DynTask.cfg_dir[:share])
|
30
31
|
when "pandoc-extra"
|
31
32
|
case ARGV[1]
|
data/lib/dyntask/task_mngr.rb
CHANGED
@@ -151,7 +151,7 @@ module DynTask
|
|
151
151
|
## maybe to maintain only one task, remove current task when the new one is created
|
152
152
|
def read_tasks(task_filename)
|
153
153
|
@task_filename=task_filename
|
154
|
-
@tasks=Object.class_eval(File.read(@task_filename))
|
154
|
+
@tasks=Object.class_eval(File.read(@task_filename).force_encoding("utf-8"))
|
155
155
|
##p @tasks
|
156
156
|
if @tasks.length>=1
|
157
157
|
@task=@tasks.shift #first task to deal with
|
@@ -416,7 +416,7 @@ module DynTask
|
|
416
416
|
|
417
417
|
def make_ttm
|
418
418
|
#puts "make_ttm:begin"
|
419
|
-
Dyndoc::Converter.ttm(File.read(@task[:filename]))
|
419
|
+
Dyndoc::Converter.ttm(File.read(@task[:filename]).force_encoding("utf-8"))
|
420
420
|
end
|
421
421
|
|
422
422
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dyntask-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CQLS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: trollop
|