plans 0.3.0 → 0.4.1
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 +5 -5
- data/Gemfile.lock +53 -47
- data/README.md +18 -0
- data/lib/plans/command.rb +2 -1
- data/lib/plans/publish.rb +1 -1
- data/lib/plans/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 6b7d22628fd2b39d7d0aff1e10657feb407a3d0659916fbc8ad5654d386a6a99
|
|
4
|
+
data.tar.gz: 72918e5c8190eb0ddbff39c307d116e1761ad461c842e54e83736848fd68db25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a0bcc7593cd49a46fd98e6edc4a53bc7ebce55dff162ac9319eb18418f2c9b0ab8d07111d0407b501ab626e7854bc8a2363e6f0c624d9277b92ebbdb410d7808
|
|
7
|
+
data.tar.gz: bda152e83818d992a8c46ffc8c33de76dc89f179dc9da78036f55d713da6c232ffcd0ab62c16f2a5b8b5c670f44db08acd5111efc7865a0bf14e23832c717011
|
data/Gemfile.lock
CHANGED
|
@@ -1,89 +1,95 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
plans (0.
|
|
4
|
+
plans (0.4.0)
|
|
5
5
|
thor
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
aruba (0.
|
|
11
|
-
childprocess (
|
|
10
|
+
aruba (0.14.6)
|
|
11
|
+
childprocess (>= 0.6.3, < 0.10.0)
|
|
12
12
|
contracts (~> 0.9)
|
|
13
13
|
cucumber (>= 1.3.19)
|
|
14
14
|
ffi (~> 1.9.10)
|
|
15
15
|
rspec-expectations (>= 2.99)
|
|
16
16
|
thor (~> 0.19)
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
backports (3.11.4)
|
|
18
|
+
builder (3.2.3)
|
|
19
|
+
childprocess (0.9.0)
|
|
19
20
|
ffi (~> 1.0, >= 1.0.11)
|
|
20
|
-
coderay (1.1.
|
|
21
|
-
contracts (0.
|
|
22
|
-
cucumber (
|
|
21
|
+
coderay (1.1.2)
|
|
22
|
+
contracts (0.16.0)
|
|
23
|
+
cucumber (3.1.2)
|
|
23
24
|
builder (>= 2.1.2)
|
|
24
|
-
cucumber-core (~>
|
|
25
|
+
cucumber-core (~> 3.2.0)
|
|
26
|
+
cucumber-expressions (~> 6.0.1)
|
|
25
27
|
cucumber-wire (~> 0.0.1)
|
|
26
|
-
diff-lcs (
|
|
27
|
-
gherkin (~>
|
|
28
|
+
diff-lcs (~> 1.3)
|
|
29
|
+
gherkin (~> 5.1.0)
|
|
28
30
|
multi_json (>= 1.7.5, < 2.0)
|
|
29
31
|
multi_test (>= 0.1.2)
|
|
30
|
-
cucumber-core (
|
|
31
|
-
|
|
32
|
+
cucumber-core (3.2.1)
|
|
33
|
+
backports (>= 3.8.0)
|
|
34
|
+
cucumber-tag_expressions (~> 1.1.0)
|
|
35
|
+
gherkin (~> 5.0)
|
|
36
|
+
cucumber-expressions (6.0.1)
|
|
37
|
+
cucumber-tag_expressions (1.1.1)
|
|
32
38
|
cucumber-wire (0.0.1)
|
|
33
|
-
diff-lcs (1.
|
|
34
|
-
ffi (1.9.
|
|
39
|
+
diff-lcs (1.3)
|
|
40
|
+
ffi (1.9.25)
|
|
35
41
|
formatador (0.2.5)
|
|
36
|
-
gherkin (
|
|
37
|
-
guard (2.
|
|
42
|
+
gherkin (5.1.0)
|
|
43
|
+
guard (2.14.2)
|
|
38
44
|
formatador (>= 0.2.4)
|
|
39
|
-
listen (>= 2.7,
|
|
40
|
-
lumberjack (
|
|
45
|
+
listen (>= 2.7, < 4.0)
|
|
46
|
+
lumberjack (>= 1.0.12, < 2.0)
|
|
41
47
|
nenv (~> 0.1)
|
|
42
48
|
notiffany (~> 0.0)
|
|
43
49
|
pry (>= 0.9.12)
|
|
44
50
|
shellany (~> 0.0)
|
|
45
51
|
thor (>= 0.18.1)
|
|
46
52
|
guard-compat (1.2.1)
|
|
47
|
-
guard-rspec (4.
|
|
53
|
+
guard-rspec (4.7.3)
|
|
48
54
|
guard (~> 2.1)
|
|
49
55
|
guard-compat (~> 1.1)
|
|
50
56
|
rspec (>= 2.99.0, < 4.0)
|
|
51
|
-
listen (3.
|
|
52
|
-
rb-fsevent (>= 0.9.
|
|
53
|
-
rb-inotify (>= 0.9.7)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
listen (3.1.5)
|
|
58
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
|
59
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
|
60
|
+
ruby_dep (~> 1.2)
|
|
61
|
+
lumberjack (1.0.13)
|
|
62
|
+
method_source (0.9.1)
|
|
63
|
+
multi_json (1.13.1)
|
|
57
64
|
multi_test (0.1.2)
|
|
58
65
|
nenv (0.3.0)
|
|
59
|
-
notiffany (0.
|
|
66
|
+
notiffany (0.1.1)
|
|
60
67
|
nenv (~> 0.1)
|
|
61
68
|
shellany (~> 0.0)
|
|
62
|
-
pry (0.
|
|
69
|
+
pry (0.12.0)
|
|
63
70
|
coderay (~> 1.1.0)
|
|
64
|
-
method_source (~> 0.
|
|
65
|
-
slop (~> 3.4)
|
|
71
|
+
method_source (~> 0.9.0)
|
|
66
72
|
rake (10.5.0)
|
|
67
|
-
rb-fsevent (0.
|
|
68
|
-
rb-inotify (0.9.
|
|
69
|
-
ffi (>= 0.5.0)
|
|
70
|
-
rspec (3.
|
|
71
|
-
rspec-core (~> 3.
|
|
72
|
-
rspec-expectations (~> 3.
|
|
73
|
-
rspec-mocks (~> 3.
|
|
74
|
-
rspec-core (3.
|
|
75
|
-
rspec-support (~> 3.
|
|
76
|
-
rspec-expectations (3.
|
|
73
|
+
rb-fsevent (0.10.3)
|
|
74
|
+
rb-inotify (0.9.10)
|
|
75
|
+
ffi (>= 0.5.0, < 2)
|
|
76
|
+
rspec (3.8.0)
|
|
77
|
+
rspec-core (~> 3.8.0)
|
|
78
|
+
rspec-expectations (~> 3.8.0)
|
|
79
|
+
rspec-mocks (~> 3.8.0)
|
|
80
|
+
rspec-core (3.8.0)
|
|
81
|
+
rspec-support (~> 3.8.0)
|
|
82
|
+
rspec-expectations (3.8.2)
|
|
77
83
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
78
|
-
rspec-support (~> 3.
|
|
79
|
-
rspec-mocks (3.
|
|
84
|
+
rspec-support (~> 3.8.0)
|
|
85
|
+
rspec-mocks (3.8.0)
|
|
80
86
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
81
|
-
rspec-support (~> 3.
|
|
82
|
-
rspec-support (3.
|
|
87
|
+
rspec-support (~> 3.8.0)
|
|
88
|
+
rspec-support (3.8.0)
|
|
89
|
+
ruby_dep (1.5.0)
|
|
83
90
|
shellany (0.0.1)
|
|
84
|
-
slop (3.6.0)
|
|
85
91
|
terminal-notifier-guard (1.7.0)
|
|
86
|
-
thor (0.
|
|
92
|
+
thor (0.20.0)
|
|
87
93
|
|
|
88
94
|
PLATFORMS
|
|
89
95
|
ruby
|
|
@@ -99,4 +105,4 @@ DEPENDENCIES
|
|
|
99
105
|
terminal-notifier-guard
|
|
100
106
|
|
|
101
107
|
BUNDLED WITH
|
|
102
|
-
1.
|
|
108
|
+
1.16.3
|
data/README.md
CHANGED
|
@@ -34,6 +34,24 @@ ImageMagick works pretty much the same way.
|
|
|
34
34
|
|
|
35
35
|
You also need Microsoft Word. :)
|
|
36
36
|
|
|
37
|
+
### Tested With
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
(515)⚡ pandoc --version
|
|
41
|
+
pandoc 2.3.1
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
(518)⚡ mogrify --version
|
|
46
|
+
Version: ImageMagick 7.0.8-14 Q16 x86_64 2018-10-25 https://imagemagick.org
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
(520)⚡ sw_vers
|
|
51
|
+
ProductName: Mac OS X
|
|
52
|
+
ProductVersion: 10.14
|
|
53
|
+
```
|
|
54
|
+
|
|
37
55
|
## Installation
|
|
38
56
|
|
|
39
57
|
Install it:
|
data/lib/plans/command.rb
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
require 'thor'
|
|
2
|
+
require 'pathname'
|
|
2
3
|
|
|
3
4
|
module Plans
|
|
4
5
|
class Command
|
|
@@ -38,7 +39,7 @@ module Plans
|
|
|
38
39
|
# The full current path, as a pathname object.
|
|
39
40
|
# @return [Pathname] The full path to the directory where the command is to be executed.
|
|
40
41
|
def pathname(path)
|
|
41
|
-
Pathname(File.expand_path(path))
|
|
42
|
+
Pathname.new(File.expand_path(path))
|
|
42
43
|
end
|
|
43
44
|
|
|
44
45
|
# Get the path as a pathname object to the
|
data/lib/plans/publish.rb
CHANGED
|
@@ -32,7 +32,7 @@ module Plans
|
|
|
32
32
|
# the images render correctly.
|
|
33
33
|
# Pandoc only looks in the current working directory.
|
|
34
34
|
Dir.chdir(path) do
|
|
35
|
-
`pandoc #{toc_flag} #{source_file} --reference-
|
|
35
|
+
`pandoc #{toc_flag} #{source_file} --reference-doc=#{reference_docx} --standalone -f markdown+backtick_code_blocks -t docx -o #{output_file}`
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
# Get the return code from pandoc.
|
data/lib/plans/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plans
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gabriel Cook
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-05
|
|
11
|
+
date: 2018-11-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
200
200
|
version: '0'
|
|
201
201
|
requirements: []
|
|
202
202
|
rubyforge_project:
|
|
203
|
-
rubygems_version: 2.
|
|
203
|
+
rubygems_version: 2.7.6
|
|
204
204
|
signing_key:
|
|
205
205
|
specification_version: 4
|
|
206
206
|
summary: Command line application for creating markdown documents from templates and
|