dyntask-ruby 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/dyntask-init +12 -12
- data/bin/dyntask-server +5 -5
- metadata +43 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3960a72b5fb658355f5e33807c8a4056c6a0f0a
|
4
|
+
data.tar.gz: 44abacaeb363999ee59a8f6307b1c05e2fd3327c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ca229bb5dc01baae76018a08c0561bca8de2bb9244f63ff2027e11d586f7e882250dc1ad0f2c70ecf43a01722c6d0036c9d401e6b2427e8b08b3e2ad786c69
|
7
|
+
data.tar.gz: 198f3023db1ee6b0f98b7e48b08221da2a030c8dd5e7c12ff9180b8ccc846d5b707762ea926a0ee5425d66edc450f8f566676c576734b5505b8034e5beaa56c3
|
data/bin/dyntask-init
CHANGED
@@ -5,7 +5,7 @@ require 'pathname'
|
|
5
5
|
require 'dyntask/task_mngr'
|
6
6
|
require 'fileutils'
|
7
7
|
|
8
|
-
VERSION='0.1.
|
8
|
+
VERSION='0.1.2'
|
9
9
|
|
10
10
|
options = Trollop::options do
|
11
11
|
version "dyntask-init version #{VERSION}"
|
@@ -27,8 +27,8 @@ if ARGV[0] == "pandoc-extra"
|
|
27
27
|
case ARGV[1]
|
28
28
|
when "ls"
|
29
29
|
if File.directory? DynTask.cfg_pandoc[:extra_dir]
|
30
|
-
|
31
|
-
|
30
|
+
puts `/usr/bin/env bash -c 'ls #{DynTask.cfg_pandoc[:extra_dir]}'`
|
31
|
+
end
|
32
32
|
when "dir"
|
33
33
|
if options[:force] and options[:rm]
|
34
34
|
FileUtils.rm(DynTask.cfg_pandoc[:extra_etc])
|
@@ -39,19 +39,19 @@ if ARGV[0] == "pandoc-extra"
|
|
39
39
|
end
|
40
40
|
puts "Config file #{DynTask.cfg_pandoc[:extra_etc]} is "+ ( (File.exist? DynTask.cfg_pandoc[:extra_etc]) ? "" : "not ") +"created."
|
41
41
|
puts "Current pandoc extra installations are located at #{DynTask.cfg_pandoc(true)[:extra_dir]}, "+((File.exist? DynTask.cfg_pandoc[:extra_dir]) ? "an " : "a non-") +"existing directory."
|
42
|
-
|
42
|
+
|
43
43
|
when "wget"
|
44
44
|
## Stuff!
|
45
45
|
p [:extra_dir,DynTask.cfg_pandoc[:extra_dir]]
|
46
46
|
FileUtils.mkdir_p DynTask.cfg_pandoc[:extra_dir]
|
47
47
|
curdir=Dir.pwd
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
48
|
+
Dir.chdir DynTask.cfg_pandoc[:extra_dir]
|
49
|
+
version="3.2.0"
|
50
|
+
puts "Installing reveal-js-#{version}"
|
51
|
+
system("curl --insecure -L -o revealjs.tgz http://github.com/hakimel/reveal.js/archive/#{version}.tar.gz && tar xzvf revealjs.tgz && rm revealjs.tgz")
|
52
|
+
puts "Installing s5-11"
|
53
|
+
system("curl -o s5.zip http://meyerweb.com/eric/tools/s5/v/1.1/s5-11.zip && mkdir -p s5-tmp && unzip -d s5-tmp s5.zip && mv s5-tmp/ui s5-ui && rm s5.zip && rm -fr s5-tmp")
|
54
|
+
Dir.chdir curdir
|
55
55
|
|
56
56
|
end
|
57
57
|
exit
|
@@ -87,4 +87,4 @@ else
|
|
87
87
|
end
|
88
88
|
end
|
89
89
|
|
90
|
-
puts "#{etc_tasks} contains: #{File.read(etc_tasks)}" if File.exists? etc_tasks
|
90
|
+
puts "#{etc_tasks} contains: #{File.read(etc_tasks)}" if File.exists? etc_tasks
|
data/bin/dyntask-server
CHANGED
@@ -12,7 +12,7 @@ options = Trollop::options do
|
|
12
12
|
dyntask-server scans the filesystem and executes shell commands when files changes.
|
13
13
|
Usage:
|
14
14
|
dyntask-server [--restart] '<command type>'
|
15
|
-
Comment:
|
15
|
+
Comment:
|
16
16
|
when file ~/.dyntask_workdir exists and contains a valid directory name, this becomes the working directory to watch unless -w option is provided at command line.
|
17
17
|
Options:
|
18
18
|
EOS
|
@@ -37,7 +37,7 @@ end
|
|
37
37
|
|
38
38
|
# root working directory
|
39
39
|
# dyntask_root=nil
|
40
|
-
# if options[:workdir] != ""
|
40
|
+
# if options[:workdir] != ""
|
41
41
|
# dyntask_root=options[:workdir].sub("~",ENV["HOME"])
|
42
42
|
# else
|
43
43
|
# etc_work_dir=File.join(DynTask.cfg_dir[:etc],"workdir")
|
@@ -61,7 +61,7 @@ if tasks_to_watch.empty?
|
|
61
61
|
end
|
62
62
|
|
63
63
|
files_to_watch=[]
|
64
|
-
tasks_to_watch.each do |e|
|
64
|
+
tasks_to_watch.each do |e|
|
65
65
|
workdir,tasks=e.split(":")
|
66
66
|
workdir=workdir.sub("~",ENV["HOME"])
|
67
67
|
tasks.split(",").each do |t|
|
@@ -91,7 +91,7 @@ begin
|
|
91
91
|
##p files
|
92
92
|
fw = FileWatcher.new(files_to_watch, options[:list], options[:dontwait], options[:spinner])
|
93
93
|
task_mngr=DynTask::TaskMngr.new
|
94
|
-
fw.watch(options[:interval]) do |filename, event|
|
94
|
+
fw.watch(options[:interval]) do |filename, event|
|
95
95
|
cmd=nil
|
96
96
|
if([:changed,:new].include? event)
|
97
97
|
path = Pathname.new(filename).realpath.to_s
|
@@ -116,4 +116,4 @@ begin
|
|
116
116
|
end
|
117
117
|
rescue SystemExit, Interrupt
|
118
118
|
fw.finalize
|
119
|
-
end
|
119
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dyntask-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CQLS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
12
|
-
dependencies:
|
11
|
+
date: 2016-02-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: trollop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2.1'
|
20
|
+
- - '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.1.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '2.1'
|
30
|
+
- - '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 2.1.2
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: filewatcher
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ~>
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '0.5'
|
40
|
+
- - '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 0.5.2
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.5'
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 0.5.2
|
13
53
|
description: |2
|
14
54
|
Managing dyndoc tasks.
|
15
55
|
email: rdrouilh@gmail.com
|