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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a1d3a2f58fa8f7a19799e9538ee3410bf2da9f4
4
- data.tar.gz: 148be5987679bd47f02da94a56f77ffd054cee5f
3
+ metadata.gz: 827461fdfafb90b7a5e426cd01f67b64dc0cfbbd
4
+ data.tar.gz: d023941a5758d1234ec4540e7e9ecf6d3e4f0faf
5
5
  SHA512:
6
- metadata.gz: 6e40f7fc56b14813dd6146006b43ef6962ba716e4e6471608fff19528add7e871f42e4f8c1ab8fc49e60b60b5df9b193321095294972d6e8db239f470402c887
7
- data.tar.gz: 82724d6c2ad05f254b314a066cb1b4fb45bc120473c0cc28a5404a95ee4af0e33f326093b4e1a89125cff8a5e7a99b2c92b42a572c8074478bfcbdf7adaedc9a
6
+ metadata.gz: 6ae62124ccd28f415fd87c4ccfbaa54fdc7443ac2acf6597662065750b29d679c622c95e52541c586eb25a6c1b7552c6f1d3022e07740b76708ce73076ca3ae5
7
+ data.tar.gz: 58101b2f9f1a918962cc5140ddb443a5765b72dffab3c8f317e0f50a9e05eadd1c4cada2314cbcfb9fc28435fe5b9a80a9f288bfaa1a2602e54561b780695dfd
@@ -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]
@@ -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.2
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-16 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trollop