wortsammler 1.0.3 → 2.0.0.dev1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +45 -4
  3. data/.idea/.name +1 -0
  4. data/.idea/.rakeTasks +7 -0
  5. data/.idea/202_wortsammler-gem.iml +119 -0
  6. data/.idea/compiler.xml +22 -0
  7. data/.idea/encodings.xml +6 -0
  8. data/.idea/inspectionProfiles/profiles_settings.xml +7 -0
  9. data/.idea/misc.xml +4 -0
  10. data/.idea/modules.xml +9 -0
  11. data/.idea/vcs.xml +7 -0
  12. data/Gemfile +1 -0
  13. data/README.md +23 -28
  14. data/Rakefile +3 -3
  15. data/changelog.md +17 -1
  16. data/lib/wortsammler/class.proolib.rb +1108 -982
  17. data/lib/wortsammler/version.rb +1 -1
  18. data/lib/wortsammler.rb +61 -54
  19. data/resources/default.wortsammler.latex +3 -2
  20. data/resources/main.md +1 -1
  21. data/resources/pandocdefault.docx +0 -0
  22. data/resources/pandocdefault.epub +70 -0
  23. data/resources/pandocdefault.html +73 -0
  24. data/resources/pandocdefault.latex +403 -0
  25. data/resources/sample_the-sample-document.yaml +27 -1
  26. data/spec/TC_EXP_001.md +2 -1
  27. data/spec/Zupfnoter.jpg +0 -0
  28. data/spec/tc_exp_003_reference.txt +9 -8
  29. data/spec/test_beautify.md +0 -1
  30. data/spec/test_beautify_reference.md +6 -3
  31. data/spec/test_mkindex_reference.txt +9 -38
  32. data/spec/test_slides.md +38 -0
  33. data/spec/wortsammler_spec.rb +80 -50
  34. data/testproject.xx/30_Sources/001_Main/main.md +273 -0
  35. data/testproject.xx/30_Sources/900_snippets/snippets.xlsx +0 -0
  36. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.docx +0 -0
  37. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.html +145 -0
  38. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.latex +416 -0
  39. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.pdf +0 -0
  40. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.beamer.pdf +0 -0
  41. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.docx +0 -0
  42. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.html +145 -0
  43. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.latex +416 -0
  44. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.pdf +0 -0
  45. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.docx +0 -0
  46. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.html +145 -0
  47. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.latex +416 -0
  48. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.pdf +0 -0
  49. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_review.latex +582 -0
  50. data/testproject.xx/30_Sources/ZGEN_Documents/RS_Main_review.pdf +0 -0
  51. data/testproject.xx/30_Sources/ZGEN_RequirementsTracing/RS_Main.traces.md +56 -0
  52. data/testproject.xx/30_Sources/ZGEN_RequirementsTracing/ZGEN_Reqtrace.graphml +119 -0
  53. data/testproject.xx/30_Sources/ZGEN_RequirementsTracing/ZGEN_Reqtrace.md +50 -0
  54. data/testproject.xx/30_Sources/ZGEN_RequirementsTracing/ZGEN_ReqtraceCompare.txt +52 -0
  55. data/testproject.xx/30_Sources/ZSUPP_Manifests/sample_the-sample-document.yaml +79 -0
  56. data/testproject.xx/30_Sources/ZSUPP_Styles/default.wortsammler.latex +321 -0
  57. data/testproject.xx/30_Sources/ZSUPP_Styles/logo.jpg +0 -0
  58. data/testproject.xx/30_Sources/ZSUPP_Tools/rakefile.rb +5 -0
  59. data/testresults/wortsammler_testresults.html +173 -424
  60. data/testresults/wortsammler_testresults.log +24 -241
  61. data/uninstall-pandoc.pl +79 -0
  62. data/wortsammler.gemspec +2 -2
  63. metadata +51 -9
  64. data/wortsammler-gem.sublime-project +0 -8
@@ -1,4 +1,3 @@
1
- Run options: exclude {:exp=>true}
2
1
 
3
2
  PandocBeautifier
4
3
  checks the availability of the right pandoc version
@@ -50,7 +49,7 @@ Wortsammler generic issues
50
49
  turns on vervbose mode
51
50
  can create a new project folder
52
51
  does not initialize into an existing project folder
53
- controls the pandoc options by document class (FAILED - 1)
52
+ controls the pandoc options by document class (PENDING: implement test to control pandoc options by document class)
54
53
 
55
54
  Wortsammler options validator
56
55
  rejects no processing
@@ -62,7 +61,7 @@ Wortsammler beautifier features
62
61
  beautifies input files in a manifest
63
62
  claims missing input
64
63
  claims undefined document path
65
- creates a semantically unchanged markdown file (FAILED - 2)
64
+ creates a semantically unchanged markdown file
66
65
 
67
66
  Wortsammler conversion
68
67
  converts a single file to output format
@@ -76,250 +75,34 @@ Wortsammler conversion
76
75
  extracts plantuml according to a manifest
77
76
  extracts plantuml from a single file
78
77
  extracts plantuml from a folder
79
- processes snippets (FAILED - 3)
80
- handles undefined snippets (FAILED - 4)
78
+ processes snippets (PENDING: Test not yet implemented)
79
+ handles undefined snippets (PENDING: Test not yet implemented)
81
80
  runs the rake file in the sample document
82
81
  compiles all documents
83
82
 
83
+ Wortsammler output formats
84
+ generates dzslides
85
+ generates beamer files
86
+ generates markdown
87
+
84
88
  Wortsammler syntax extensions
85
89
  [RS_Comp_012] supports embedded images
86
90
  TC_EXP_001 expands expected results from testcases
87
91
  TC_EXP_002 removes plantuml sources
88
- TC_EXP_003 handles Markdown inlays (FAILED - 5)
89
- generates an index (FAILED - 6)
92
+ TC_EXP_003 handles Markdown inlays
93
+ generates an index
90
94
  reports TeX messages
91
95
 
92
- Failures:
93
-
94
- 1) Wortsammler generic issues controls the pandoc options by document class FIXED
95
- Expected pending 'implement test to control pandoc options by document class' to fail. No Error was raised.
96
- # ./spec/wortsammler_spec.rb:52
97
-
98
- 2) Wortsammler beautifier features creates a semantically unchanged markdown file
99
- Failure/Error: result.should == reference
100
-
101
- expected: "% Test Markdown\n% Bernhard Weichel\n% 1.12.2014\n\n# Test headlines\n\n# Head Leel 2\n\n# test fenc... codedblock\n~~~~\n\n~~~~ {#backtick_codeblock}\n\nthis\n\n is\n\n codedblock\n~~~~\n"
102
- got: "---\nauthor:\n- Bernhard Weichel\ndate: '1.12.2014'\ntitle: Test Markdown\n...\n\n# Test headlines\n... codedblock\n```\n\n``` {#backtick_codeblock}\n\nthis\n\n is\n\n codedblock\n```\n" (using ==)
103
- Diff:
104
- @@ -1,6 +1,9 @@
105
- -% Test Markdown
106
- -% Bernhard Weichel
107
- -% 1.12.2014
108
- +---
109
- +author:
110
- +- Bernhard Weichel
111
- +date: '1.12.2014'
112
- +title: Test Markdown
113
- +...
114
-
115
- # Test headlines
116
-
117
-
118
-
119
-
120
- @@ -8,21 +11,21 @@
121
-
122
- # test fenced code blocks
123
-
124
- -~~~~ {#codeblock}
125
- +``` {#codeblock}
126
-
127
- this
128
-
129
- is
130
-
131
- codedblock
132
- -~~~~
133
- +```
134
-
135
- -~~~~ {#backtick_codeblock}
136
- +``` {#backtick_codeblock}
137
-
138
- this
139
-
140
- is
141
-
142
- codedblock
143
- -~~~~
144
- +```
145
- # ./spec/wortsammler_spec.rb:142:in `block (2 levels) in <top (required)>'
146
-
147
- 3) Wortsammler conversion processes snippets FIXED
148
- Expected pending 'Test not yet implemented' to fail. No Error was raised.
149
- # ./spec/wortsammler_spec.rb:315
150
-
151
- 4) Wortsammler conversion handles undefined snippets FIXED
152
- Expected pending 'Test not yet implemented' to fail. No Error was raised.
153
- # ./spec/wortsammler_spec.rb:319
154
-
155
- 5) Wortsammler syntax extensions TC_EXP_003 handles Markdown inlays
156
- Failure/Error: ref.should==result
157
-
158
- expected: "- this is headline\n - this is TC\\_EXP\\_003\\_1\n - this is md TC\\_EXP\\_003\\_2\n ... TC_EXP_003_2.md\n\n\nthis is md TC_EXP_003_2\n\n - hugo\n\n - hugo2\n\nend of TC_EXP_003_2\n"
159
- got: "- this is headline\n - this is TC\\_EXP\\_003\\_1\n - this is md TC\\_EXP\\_003\\_2\n ...s is md TC_EXP_003_2\n-----------------------\n\n - hugo\n\n - hugo2\n\nend of TC_EXP_003_2\n" (using ==)
160
- Diff:
161
-
162
-
163
- @@ -4,11 +4,10 @@
164
- - this is md TC\_EXP\_003\_2
165
-
166
-
167
- +this is headline
168
- +================
169
-
170
- -THIS IS HEADLINE
171
-
172
- -
173
- -
174
- now verbatim by indent inclucde TC_EXP_003_1.md
175
-
176
- ## this is TC_EXP_003_1
177
-
178
-
179
-
180
- @@ -27,13 +26,13 @@
181
-
182
- now full format inclucde TC_EXP_003_1.md
183
-
184
- -
185
- this is TC_EXP_003_1
186
- +--------------------
187
-
188
- we now include TC_EXP_003_2 from TC_EXP_003_1
189
-
190
- -
191
- this is md TC_EXP_003_2
192
- +-----------------------
193
-
194
- - hugo
195
-
196
-
197
- @@ -45,8 +44,8 @@
198
-
199
- now full format inclucde TC_EXP_003_2.md
200
-
201
- -
202
- this is md TC_EXP_003_2
203
- +-----------------------
204
-
205
- - hugo
206
-
207
- # ./spec/wortsammler_spec.rb:439:in `block (2 levels) in <top (required)>'
208
-
209
- 6) Wortsammler syntax extensions generates an index
210
- Failure/Error: ref.should==result
211
-
212
- expected: "CONTENTS\n\nCONTENTS\n\nContents\n1 Das ist ein Test zur Indexerstellung 2\n\n1\n\nJuly 17, 2018\n\n...2 \xC4pfelchen, 2 \xDCber, 2\n\n5\n\n\fINDEX\n\nINDEX\n\nende des Index\n\n6\n\nJuly 17, 2018\n\n\f"
213
- got: "CONTENTS\n\nCONTENTS\n\nContents\n1 Das ist ein Test zur Indexerstellung\n\n2\n\n1\n\nDecember 17, 2...2\nÄpfelchen, 2\nÜber, 2\n\n5\n\n\fINDEX\n\nINDEX\n\nende des Index\n\n6\n\nDecember 17, 2014\n\n\f" (using ==)
214
- Diff:
215
-
216
-
217
-
218
-
219
- @@ -3,22 +3,35 @@
220
- CONTENTS
221
-
222
- Contents
223
- -1 Das ist ein Test zur Indexerstellung 2
224
- +1 Das ist ein Test zur Indexerstellung
225
-
226
- +2
227
- +
228
- 1
229
-
230
- -July 17, 2018
231
- +December 17, 2014
232
-
233
- 1
234
-
235
- DAS IST EIN TEST ZUR INDEXERSTELLUNG
236
-
237
- 1 Das ist ein Test zur Indexerstellung
238
- -Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie sie aussehen. Manchmal benutzt man Worte wie Hamburgefonts, Rafgenduks oder Handgloves, um Schriften zu testen. Manchmal S?tze, die alle Buchstaben des Alphabets enthalten - man nennt diese S?tze ?Pangrams?. Sehr bekannt ist dieser: The quick brown fox jumps over the lazy old dog. Oft werden in Typoblindtexte auch fremdsprachige Satzteile eingebaut (AVAIL? and WefoxTM are testing aussi la Kerning), um die Wirkung in anderen Sprachen zu testen. In Lateinisch sieht zum Beispiel fast jede Schrift gut aus. Quod erat demonstrandum. Seit 1975 fehlen in den meisten Testtexten die Zahlen, weswegen nach TypoGb. 204 ? ab dem Jahr 2034 Zahlen in 86 der Texte zur Pflicht werden. Nichteinhaltung wird mit bis zu 245 oder 368 $ bestraft. Genauso wichtig in sind mittlerweile auch ??c??t?, die in neueren Schriften aber fast immer enthalten sind. Ein wichtiges aber schwierig zu integrierendes Feld sind OpenType-Funktionalit?ten. Je nach Software und Voreinstellungen k?nnen eingebaute Kapit?lchen, Kerning oder Ligaturen (sehr pfiffig) nicht richtig dargestellt werden.Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie sie aussehen. Manchmal benutzt man Worte wie Hamburgefonts, Rafgenduks
239
- +Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie sie aussehen. Manchmal
240
- +benutzt man Worte wie Hamburgefonts, Rafgenduks oder Handgloves, um Schriften zu testen.
241
- +Manchmal Sätze, die alle Buchstaben des Alphabets enthalten - man nennt diese Sätze »Pangrams«. Sehr bekannt
242
- +ist dieser: The quick brown fox jumps over the lazy old dog. Oft werden in Typoblindtexte auch fremdsprachige
243
- +Satzteile eingebaut (AVAIL® and Wefox™ are testing aussi la Kerning), um die Wirkung in anderen Sprachen zu
244
- +testen. In Lateinisch sieht zum Beispiel fast jede Schrift gut aus. Quod erat demonstrandum. Seit 1975 fehlen in
245
- +den meisten Testtexten die Zahlen, weswegen nach TypoGb. 204 § ab dem Jahr 2034 Zahlen in 86 der Texte zur
246
- +Pflicht werden. Nichteinhaltung wird mit bis zu 245 € oder 368 $ bestraft. Genauso wichtig in sind mittlerweile auch
247
- +Âçcèñtë, die in neueren Schriften aber fast immer enthalten sind. Ein wichtiges aber schwierig zu integrierendes Feld
248
- +sind OpenType-Funktionalitäten. Je nach Software und Voreinstellungen können eingebaute Kapitälchen, Kerning
249
- +oder Ligaturen (sehr pfiffig) nicht richtig dargestellt werden.Dies ist ein Typoblindtext. An ihm kann man sehen, ob
250
- +alle Buchstaben da sind und wie sie aussehen. Manchmal benutzt man Worte wie Hamburgefonts, Rafgenduks
251
-
252
- 2
253
-
254
- -July 17, 2018
255
- +December 17, 2014
256
-
257
- 1 DAS IST EIN TEST ZUR INDEXERSTELLUNG
258
-
259
-
260
- @@ -26,11 +39,22 @@
261
-
262
- DAS IST EIN TEST ZUR INDEXERSTELLUNG
263
-
264
- -Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie sie aussehen. Manchmal benutzt man Worte wie Hamburgefonts, Rafgenduks oder Handgloves, um Schriften zu testen. Manchmal S?tze, die alle Buchstaben des Alphabets enthalten - man nennt diese S?tze ?Pangrams?. Sehr bekannt ist dieser: The quick brown fox jumps over the lazy old dog. Oft werden in Typoblindtexte auch fremdsprachige Satzteile eingebaut (AVAIL? and WefoxTM are testing aussi la Kerning), um die Wirkung in anderen Sprachen zu testen. In Lateinisch sieht zum Beispiel fast jede Schrift gut aus. Quod erat demonstrandum. Seit 1975 fehlen in den meisten Testtexten die Zahlen, weswegen nach TypoGb. 204 ? ab dem Jahr 2034 Zahlen in 86 der Texte zur Pflicht werden. Nichteinhaltung wird mit bis zu 245 oder 368 $ bestraft. Genauso wichtig in sind mittlerweile auch ??c??t?, die in neueren Schriften aber fast immer enthalten sind. Ein wichtiges aber schwierig zu integrierendes Feld sind OpenType-Funktionalit?ten. Je nach Software und Voreinstellungen k?nnen eingebaute Kapit?lchen, Kerning oder Ligaturen (sehr pfiffig) nicht richtig dargestellt werden.Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie sie aussehen. Manchmal benutzt man Worte wie Hamburgefonts, Rafgenduks
265
- +Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie sie aussehen. Manchmal
266
- +benutzt man Worte wie Hamburgefonts, Rafgenduks oder Handgloves, um Schriften zu testen. Manchmal Sätze,
267
- +die alle Buchstaben des Alphabets enthalten - man nennt diese Sätze »Pangrams«. Sehr bekannt ist dieser: The
268
- +quick brown fox jumps over the lazy old dog. Oft werden in Typoblindtexte auch fremdsprachige Satzteile eingebaut
269
- +(AVAIL® and Wefox™ are testing aussi la Kerning), um die Wirkung in anderen Sprachen zu testen. In Lateinisch sieht
270
- +zum Beispiel fast jede Schrift gut aus. Quod erat demonstrandum. Seit 1975 fehlen in den meisten Testtexten die
271
- +Zahlen, weswegen nach TypoGb. 204 § ab dem Jahr 2034 Zahlen in 86 der Texte zur Pflicht werden. Nichteinhaltung
272
- +wird mit bis zu 245 € oder 368 $ bestraft. Genauso wichtig in sind mittlerweile auch Âçcèñtë, die in neueren Schriften
273
- +aber fast immer enthalten sind. Ein wichtiges aber schwierig zu integrierendes Feld sind OpenType-Funktionalitäten.
274
- +Je nach Software und Voreinstellungen können eingebaute Kapitälchen, Kerning oder Ligaturen (sehr pfiffig) nicht
275
- +richtig dargestellt werden.Dies ist ein Typoblindtext. An ihm kann man sehen, ob alle Buchstaben da sind und wie
276
- +sie aussehen. Manchmal benutzt man Worte wie Hamburgefonts, Rafgenduks
277
-
278
- 3
279
-
280
- -July 17, 2018
281
- +December 17, 2014
282
-
283
- 1
284
-
285
-
286
- @@ -40,10 +64,15 @@
287
-
288
- 4
289
-
290
- -July 17, 2018
291
- +December 17, 2014
292
-
293
- Index
294
- -S?tze, 2 Typoblindtext, 2, 3 Uder, 2 Ufer, 2 ?pfelchen, 2 ?ber, 2
295
- +Sätze, 2
296
- +Typoblindtext, 2, 3
297
- +Uder, 2
298
- +Ufer, 2
299
- +Äpfelchen, 2
300
- +Über, 2
301
-
302
- 5
303
-
304
- @@ -55,7 +84,7 @@
305
-
306
- 6
307
-
308
- -July 17, 2018
309
- +December 17, 2014
310
-
311
-
312
- # ./spec/wortsammler_spec.rb:447:in `block (2 levels) in <top (required)>'
313
-
314
- Finished in 2 minutes 41.7 seconds (files took 0.64262 seconds to load)
315
- 71 examples, 6 failures
316
-
317
- Failed examples:
318
-
319
- rspec ./spec/wortsammler_spec.rb:52 # Wortsammler generic issues controls the pandoc options by document class
320
- rspec ./spec/wortsammler_spec.rb:130 # Wortsammler beautifier features creates a semantically unchanged markdown file
321
- rspec ./spec/wortsammler_spec.rb:315 # Wortsammler conversion processes snippets
322
- rspec ./spec/wortsammler_spec.rb:319 # Wortsammler conversion handles undefined snippets
323
- rspec ./spec/wortsammler_spec.rb:405 # Wortsammler syntax extensions TC_EXP_003 handles Markdown inlays
324
- rspec ./spec/wortsammler_spec.rb:442 # Wortsammler syntax extensions generates an index
325
-
96
+ Pending:
97
+ Wortsammler generic issues controls the pandoc options by document class
98
+ # implement test to control pandoc options by document class
99
+ # ./spec/wortsammler_spec.rb:53
100
+ Wortsammler conversion processes snippets
101
+ # Test not yet implemented
102
+ # ./spec/wortsammler_spec.rb:316
103
+ Wortsammler conversion handles undefined snippets
104
+ # Test not yet implemented
105
+ # ./spec/wortsammler_spec.rb:320
106
+
107
+ Finished in 3 minutes 9.64 seconds
108
+ 74 examples, 0 failures, 3 pending
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/perl
2
+
3
+ # Script to remove all files installed by the OSX pandoc installer
4
+ # and unregister the package. Modified from a script contributed
5
+ # by Daniel T. Staal.
6
+
7
+ use warnings;
8
+ use strict;
9
+
10
+ use File::Spec;
11
+
12
+ # The main info: this is the list of files to remove and the pkg_id.
13
+ my $pkg_id = 'net.johnmacfarlane.pandoc';
14
+
15
+ # Find which, if any, volume Pandoc is installed on.
16
+ my $volume;
17
+
18
+ # First check /, then other volumes on the box.
19
+ my $cur_test = `pkgutil --pkgs=$pkg_id`;
20
+ if ( $cur_test =~ m/$pkg_id/ ) {
21
+ $volume = '/';
22
+ } else {
23
+ opendir( my $dh, '/Volumes' ) or die "Can't list Volumes: $!\n";
24
+ foreach my $dir ( readdir($dh) ) {
25
+ next if $dir =~ m/^\./; # Skip dotfiles.
26
+
27
+ my $path = File::Spec->rel2abs( $dir, '/Volumes' );
28
+ next if !( -d $path ); # Skip anything that isn't a directory.
29
+
30
+ my $cur_test = `pkgutil --pkgs=$pkg_id --volume '$path'`;
31
+ if ( $cur_test =~ m/$pkg_id/ ) {
32
+ $volume = $path;
33
+ last;
34
+ }
35
+ }
36
+ }
37
+
38
+ die "Pandoc not installed.\n" if !( defined($volume) );
39
+
40
+ # Get the list of files to remove.
41
+ my @pkg_files = `pkgutil --volume '$volume' --only-files --files '$pkg_id'`;
42
+ @pkg_files = map { chomp; File::Spec->rel2abs($_, $volume) } @pkg_files;
43
+
44
+ # Confirm uninistall with the user.
45
+ print "The following files will be deleted:\n\n";
46
+ print join("\n", @pkg_files);
47
+ print "\n\n";
48
+ print "Do you want to proceed and uninstall pandoc (Y/N)?";
49
+ my $input = <STDIN>;
50
+
51
+ if ($input =~ m/^[Yy]/) {
52
+
53
+ # Actually remove the files.
54
+ foreach my $file (@pkg_files) {
55
+ if ( -e $file ) {
56
+ if ( system( 'sudo', 'rm', $file ) == 0 ) {
57
+ warn "Deleted $file\n";
58
+ } else {
59
+ warn "Unable to delete $file: $?\n";
60
+ die "Aborting Uninstall.\n";
61
+ }
62
+ } else {
63
+ warn "File $file does not exist. Skipping.\n";
64
+ }
65
+ }
66
+
67
+ # Clean up the install.
68
+ if (system('sudo', 'pkgutil', '--forget', $pkg_id, '--volume', $volume) != 0) {
69
+ die "Unable to clean up install: $?\n";
70
+ }
71
+
72
+ } else {
73
+
74
+ print "OK, aborting uninstall.\n";
75
+ exit;
76
+ }
77
+
78
+ print "Pandoc has been successfully uninstalled.\n";
79
+ exit;
data/wortsammler.gemspec CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  wortsammler is based on ruby, pandoc, latex
27
27
  END_DOC
28
28
 
29
- spec.required_ruby_version = '>= 1.9.3'
29
+ spec.required_ruby_version = '>= 2.4'
30
30
  spec.add_runtime_dependency 'logger'
31
31
  spec.add_runtime_dependency 'nokogiri', '=1.8.2'
32
32
  spec.add_runtime_dependency 'rubyXL'
@@ -43,7 +43,7 @@ END_DOC
43
43
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
44
44
  spec.require_paths = ["lib"]
45
45
 
46
- spec.add_development_dependency "bundler", "~> 1.3"
46
+ spec.add_development_dependency "bundler", "~> 2.0"
47
47
  spec.add_development_dependency "rake", "~> 10.0.4"
48
48
  spec.add_development_dependency "rspec", "~> 2.13.0"
49
49
  spec.add_development_dependency 'pry', "~> 0.9.12"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wortsammler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 2.0.0.dev1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bernhard Weichel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-17 00:00:00.000000000 Z
11
+ date: 2019-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.3'
103
+ version: '2.0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.3'
110
+ version: '2.0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -207,9 +207,18 @@ extensions: []
207
207
  extra_rdoc_files: []
208
208
  files:
209
209
  - ".gitignore"
210
+ - ".idea/.name"
211
+ - ".idea/.rakeTasks"
212
+ - ".idea/202_wortsammler-gem.iml"
213
+ - ".idea/compiler.xml"
214
+ - ".idea/encodings.xml"
210
215
  - ".idea/inspectionProfiles/Project_Default.xml"
216
+ - ".idea/inspectionProfiles/profiles_settings.xml"
211
217
  - ".idea/libraries/plantuml.xml"
218
+ - ".idea/misc.xml"
219
+ - ".idea/modules.xml"
212
220
  - ".idea/scopes/scope_settings.xml"
221
+ - ".idea/vcs.xml"
213
222
  - 202_wortsammler-gem.iml
214
223
  - Gemfile
215
224
  - LICENSE.txt
@@ -233,6 +242,10 @@ files:
233
242
  - resources/default.wortsammler.latex
234
243
  - resources/logo.jpg
235
244
  - resources/main.md
245
+ - resources/pandocdefault.docx
246
+ - resources/pandocdefault.epub
247
+ - resources/pandocdefault.html
248
+ - resources/pandocdefault.latex
236
249
  - resources/plantuml.jar
237
250
  - resources/rakefile.rb
238
251
  - resources/requirementsSynopsis.graphml
@@ -243,6 +256,7 @@ files:
243
256
  - spec/TC_EXP_002.md
244
257
  - spec/TC_EXP_003_1.md
245
258
  - spec/TC_EXP_003_2.md
259
+ - spec/Zupfnoter.jpg
246
260
  - spec/class.proolib_spec.rb
247
261
  - spec/floating-image.pdf
248
262
  - spec/pdf_utils_spec.rb
@@ -256,15 +270,41 @@ files:
256
270
  - spec/test_mkindex.pdf
257
271
  - spec/test_mkindex.txt
258
272
  - spec/test_mkindex_reference.txt
273
+ - spec/test_slides.md
259
274
  - spec/traceable_spec.rb
260
275
  - spec/wortsammler_spec.rb
261
276
  - spec/wortsammler_test_pdf.pdf
262
277
  - spec/wortsammler_test_pptx.pdf
263
278
  - spec/wortsammler_test_pptx.pptx
264
279
  - spec/wortsammler_test_xlsx.xlsx
280
+ - testproject.xx/30_Sources/001_Main/main.md
281
+ - testproject.xx/30_Sources/900_snippets/snippets.xlsx
282
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.docx
283
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.html
284
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.latex
285
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_compact.pdf
286
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.beamer.pdf
287
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.docx
288
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.html
289
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.latex
290
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_folien.pdf
291
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.docx
292
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.html
293
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.latex
294
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_mieter.pdf
295
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_review.latex
296
+ - testproject.xx/30_Sources/ZGEN_Documents/RS_Main_review.pdf
297
+ - testproject.xx/30_Sources/ZGEN_RequirementsTracing/RS_Main.traces.md
298
+ - testproject.xx/30_Sources/ZGEN_RequirementsTracing/ZGEN_Reqtrace.graphml
299
+ - testproject.xx/30_Sources/ZGEN_RequirementsTracing/ZGEN_Reqtrace.md
300
+ - testproject.xx/30_Sources/ZGEN_RequirementsTracing/ZGEN_ReqtraceCompare.txt
301
+ - testproject.xx/30_Sources/ZSUPP_Manifests/sample_the-sample-document.yaml
302
+ - testproject.xx/30_Sources/ZSUPP_Styles/default.wortsammler.latex
303
+ - testproject.xx/30_Sources/ZSUPP_Styles/logo.jpg
304
+ - testproject.xx/30_Sources/ZSUPP_Tools/rakefile.rb
265
305
  - testresults/wortsammler_testresults.html
266
306
  - testresults/wortsammler_testresults.log
267
- - wortsammler-gem.sublime-project
307
+ - uninstall-pandoc.pl
268
308
  - wortsammler.gemspec
269
309
  homepage: ''
270
310
  licenses:
@@ -278,15 +318,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
278
318
  requirements:
279
319
  - - ">="
280
320
  - !ruby/object:Gem::Version
281
- version: 1.9.3
321
+ version: '2.4'
282
322
  required_rubygems_version: !ruby/object:Gem::Requirement
283
323
  requirements:
284
- - - ">="
324
+ - - ">"
285
325
  - !ruby/object:Gem::Version
286
- version: '0'
326
+ version: 1.3.1
287
327
  requirements: []
288
328
  rubyforge_project:
289
- rubygems_version: 2.6.12
329
+ rubygems_version: 2.7.3
290
330
  signing_key:
291
331
  specification_version: 4
292
332
  summary: an environment to manage documentation
@@ -295,6 +335,7 @@ test_files:
295
335
  - spec/TC_EXP_002.md
296
336
  - spec/TC_EXP_003_1.md
297
337
  - spec/TC_EXP_003_2.md
338
+ - spec/Zupfnoter.jpg
298
339
  - spec/class.proolib_spec.rb
299
340
  - spec/floating-image.pdf
300
341
  - spec/pdf_utils_spec.rb
@@ -308,6 +349,7 @@ test_files:
308
349
  - spec/test_mkindex.pdf
309
350
  - spec/test_mkindex.txt
310
351
  - spec/test_mkindex_reference.txt
352
+ - spec/test_slides.md
311
353
  - spec/traceable_spec.rb
312
354
  - spec/wortsammler_spec.rb
313
355
  - spec/wortsammler_test_pdf.pdf
@@ -1,8 +0,0 @@
1
- {
2
- "folders":
3
- [
4
- {
5
- "path": "/Volumes/Macintosh HD/Users/beweiche/beweiche_noTimeMachine/202_wortsammler-gem"
6
- }
7
- ]
8
- }