diff --git a/lib/wortsammler/class.proolib.rb b/lib/wortsammler/class.proolib.rb index 2c9f2d6..9ddfbeb 100644 --- a/lib/wortsammler/class.proolib.rb +++ b/lib/wortsammler/class.proolib.rb @@ -484,7 +484,7 @@ def beautify(file) docfile.close # process the file in pandoc - cmd="pandoc -s #{file.esc} -f markdown -t markdown --atx-headers --reference-links " + cmd="pandoc -s #{file.esc} -f markdown -t markdown --atx-headers " newdoc = `#{cmd}` @log.debug "beautify #{file.esc}: #{$?}" @log.debug(" finished: \"#{file}\"") diff --git a/lib/wortsammler/version.rb b/lib/wortsammler/version.rb index 6821e97..25ec37c 100644 --- a/lib/wortsammler/version.rb +++ b/lib/wortsammler/version.rb @@ -1,4 +1,4 @@ module Wortsammler PROGNAME="wortsammler" - VERSION = "1.0.0" + VERSION = "1.0.1" end diff --git a/testresults/wortsammler_testresults.html b/testresults/wortsammler_testresults.html index 7530d4a..699cb23 100644 --- a/testresults/wortsammler_testresults.html +++ b/testresults/wortsammler_testresults.html @@ -286,107 +286,107 @@

RSpec Code Examples

PandocBeautifier
-
checks the availability of the right pandoc version0.04766s
+
checks the availability of the right pandoc version0.05058s
pdf utilities:
-
adjusts the bounding box of a pdf file18.40788s
+
adjusts the bounding box of a pdf file34.33317s
-
converts an excel sheet to pdf3.23186s
+
converts an excel sheet to pdf2.93657s
-
converts a powerpoint to pdf1.33679s
+
converts a powerpoint to pdf2.80529s
-
converts an excelsheet to cropped pdf3.58307s
+
converts an excelsheet to cropped pdf3.80671s
-
converts a powerpoint to cropped pdf19.53628s
+
converts a powerpoint to cropped pdf34.31829s
TraceableSet
-
should return a blank instance0.00014s
+
should return a blank instance0.00010s
-
allows to add Traceables0.00015s
+
allows to add Traceables0.00011s
-
delivers the first of the duplicates0.00012s
+
delivers the first of the duplicates0.00010s
-
advertises duplicates0.00041s
+
advertises duplicates0.00015s
-
adertises undefined traceables0.00027s
+
adertises undefined traceables0.00018s
-
advertises all traceables0.00011s
+
advertises all traceables0.00007s
-
advertises a hash of supporting traces0.00011s
+
advertises a hash of supporting traces0.00006s
-
advertises traceable ids of a particular category0.00012s
+
advertises traceable ids of a particular category0.00013s
-
advertises ttraceables of a particular category0.00010s
+
advertises ttraceables of a particular category0.00011s
-
merges traceables0.00043s
+
merges traceables0.00025s
-
exposes deleted Traceables0.00015s
+
exposes deleted Traceables0.00009s
-
exposes added Traceables0.00014s
+
exposes added Traceables0.00008s
-
exposes deleted Traceables of category0.00012s
+
exposes deleted Traceables of category0.00007s
-
exposes added Traceables of category0.00016s
+
exposes added Traceables of category0.00030s
-
exploses changed traceids as array of [Traceid, levensthein, diff_as_html]0.02827s
+
exploses changed traceids as array of [Traceid, levensthein, diff_as_html]0.01226s
-
exposes unchanged Traceables0.00526s
+
exposes unchanged Traceables0.00629s
-
can be marshalled to a file0.00260s
+
can be marshalled to a file0.00310s
-
can be dumped to a graphml file0.00331s
+
can be dumped to a graphml file0.01537s
Traceable
-
should == "id"0.00023s
+
should == "id"0.00011s
-
should == "origin"0.00016s
+
should == "origin"0.00006s
-
should == "alternative_id"0.00016s
+
should == "alternative_id"0.00012s
-
should == "header_plain"0.00013s
+
should == "header_plain"0.00009s
-
should == "\\textt{header_origin}"0.00019s
+
should == "\\textt{header_origin}"0.00008s
should == "body_plain"0.00010s
-
should == ["contributes_to"]0.00018s
+
should == ["contributes_to"]0.00008s
-
should == "trace_orig"0.00010s
+
should == "trace_orig"0.00007s
-
should == "origin"0.00016s
+
should == "origin"0.00007s
-
should == "category"0.00012s
+
should == "category"0.00007s
-
should == "info"0.00015s
+
should == "info"0.00006s
Wortsammler generic issues
-
provides a help0.60931s
+
provides a help0.67812s
-
runs silent0.59435s
+
runs silent0.67815s
-
reports version numbers0.76085s
+
reports version numbers0.74364s
-
turns on vervbose mode0.65025s
+
turns on vervbose mode0.68216s
-
can create a new project folder0.71120s
+
can create a new project folder0.63888s
-
does not initialize into an existing project folder0.62626s
+
does not initialize into an existing project folder0.60810s
@@ -398,88 +398,223 @@

RSpec Code Examples

Wortsammler options validator
-
rejects no processing0.56336s
+
rejects no processing0.61870s
Wortsammler beautifier features
-
beautifies all markdown files in a folder0.96581s
+
beautifies all markdown files in a folder0.95783s
-
beautifies a single file0.65310s
+
beautifies a single file0.64528s
-
recognizes if the specified manifest file is a directory0.59909s
+
recognizes if the specified manifest file is a directory0.60224s
-
beautifies input files in a manifest0.66532s
+
beautifies input files in a manifest0.77817s
-
claims missing input0.60528s
+
claims missing input0.61138s
-
claims undefined document path0.59351s
+
claims undefined document path0.63362s
+ + + -
creates a semantically unchanged markdown file0.63535s
+
+ creates a semantically unchanged markdown file + 0.66532s +
+
expected: "% Test Markdown\n% Bernhard Weichel\n% 1.12.2014\n\n# Test headlines\n\n# Head Leel 2\n\n# test fenced code blocks\n\n~~~~ {#codeblock}\n\nthis\n\n    is\n\n         codedblock\n~~~~\n\n~~~~ {#backtick_codeblock}\n\nthis\n\n    is\n\n         codedblock\n~~~~\n"
+     got: "---\nauthor:\n- Bernhard Weichel\ndate: '1.12.2014'\ntitle: Test Markdown\n...\n\n# Test headlines\n\n# Head Leel 2\n\n# test fenced code blocks\n\n``` {#codeblock}\n\nthis\n\n    is\n\n         codedblock\n```\n\n``` {#backtick_codeblock}\n\nthis\n\n    is\n\n         codedblock\n```\n" (using ==)
+Diff:
+@@ -1,6 +1,9 @@
+-% Test Markdown
+-% Bernhard Weichel
+-% 1.12.2014
++---
++author:
++- Bernhard Weichel
++date: '1.12.2014'
++title: Test Markdown
++...
+ 
+ # Test headlines
+ 
+
+
+
+@@ -8,21 +11,21 @@
+ 
+ # test fenced code blocks
+ 
+-~~~~ {#codeblock}
++``` {#codeblock}
+ 
+ this
+ 
+     is
+ 
+          codedblock
+-~~~~
++```
+ 
+-~~~~ {#backtick_codeblock}
++``` {#backtick_codeblock}
+ 
+ this
+ 
+     is
+ 
+          codedblock
+-~~~~
++```
+
+
./spec/wortsammler_spec.rb:142:in `block (2 levels) in '
+
140    reference = File.open(referencefile).read
+141    result = File.open(outputfile).read
+142    result.should == reference
+143  end
+144
+145# gem install syntax to get syntax highlighting
+
+
Wortsammler conversion
-
converts a single file to output format5.50586s
+
converts a single file to output format4.62011s
-
converts a single file to default output format4.82411s
+
converts a single file to default output format4.22926s
-
handles chapters up to 6 levels7.74781s
+
handles chapters up to 6 levels8.37273s
-
handles lists up to 9 levels5.03397s
+
handles lists up to 9 levels4.30039s
-
converts all files within a folder to output format0.69999s
+
converts all files within a folder to output format0.70828s
-
processes a manifest15.26699s
+
processes a manifest13.37381s
-
investigates the existence of a manifest0.57498s
+
investigates the existence of a manifest0.62861s
-
extracts the traceables according to a manifest0.77385s
+
extracts the traceables according to a manifest0.79036s
-
extracts plantuml according to a manifest0.82310s
+
extracts plantuml according to a manifest1.50095s
-
extracts plantuml from a single file2.23827s
+
extracts plantuml from a single file4.21807s
-
extracts plantuml from a folder2.90225s
- +
extracts plantuml from a folder4.62391s
processes snippets (PENDING: Test not yet implemented)
-
handles undefined snippets (PENDING: Test not yet implemented)
-
runs the rake file in the sample document15.63666s
+
runs the rake file in the sample document14.01860s
-
compiles all documents0.00033s
+
compiles all documents0.00020s
Wortsammler syntax extensions
-
[RS_Comp_012] supports embedded images9.55798s
+
[RS_Comp_012] supports embedded images13.34941s
-
TC_EXP_001 expands expected results from testcases0.00236s
+
TC_EXP_001 expands expected results from testcases0.00220s
-
TC_EXP_002 removes plantuml sources0.00139s
+
TC_EXP_002 removes plantuml sources0.00195s
+ + -
TC_EXP_003 handles Markdown inlays0.66215s
+
+ TC_EXP_003 handles Markdown inlays + 0.70553s +
+
expected: "-   this is headline\n    -   this is TC\\_EXP\\_003\\_1\n    -   this is md TC\\_EXP\\_003\\_2\n    -   this is md TC\\_EXP\\_003\\_2\n\n\n\nTHIS IS HEADLINE\n\n\n\n    now verbatim by indent inclucde TC_EXP_003_1.md\n\n        ## this is TC_EXP_003_1\n        \n        we now include TC_EXP_003_2 from TC_EXP_003_1\n        \n        ## this is md TC_EXP_003_2\n        \n            - hugo\n        \n            - hugo2\n        \n        end of TC_EXP_003_2\n        \n        end of TC_EXP_003_1\n\nnow full format inclucde TC_EXP_003_1.md\n\n\nthis is TC_EXP_003_1\n\nwe now include TC_EXP_003_2 from TC_EXP_003_1\n\n\nthis is md TC_EXP_003_2\n\n    - hugo\n\n    - hugo2\n\nend of TC_EXP_003_2\n\nend of TC_EXP_003_1\n\nnow full format inclucde 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"
+     got: "-   this is headline\n    -   this is TC\\_EXP\\_003\\_1\n    -   this is md TC\\_EXP\\_003\\_2\n    -   this is md TC\\_EXP\\_003\\_2\n\n\nthis is headline\n================\n\n\n    now verbatim by indent inclucde TC_EXP_003_1.md\n\n        ## this is TC_EXP_003_1\n        \n        we now include TC_EXP_003_2 from TC_EXP_003_1\n        \n        ## this is md TC_EXP_003_2\n        \n            - hugo\n        \n            - hugo2\n        \n        end of TC_EXP_003_2\n        \n        end of TC_EXP_003_1\n\nnow full format inclucde TC_EXP_003_1.md\n\nthis is TC_EXP_003_1\n--------------------\n\nwe now include TC_EXP_003_2 from TC_EXP_003_1\n\nthis is md TC_EXP_003_2\n-----------------------\n\n    - hugo\n\n    - hugo2\n\nend of TC_EXP_003_2\n\nend of TC_EXP_003_1\n\nnow full format inclucde TC_EXP_003_2.md\n\nthis is md TC_EXP_003_2\n-----------------------\n\n    - hugo\n\n    - hugo2\n\nend of TC_EXP_003_2\n" (using ==)
+Diff:
+
+
+@@ -4,11 +4,10 @@
+     -   this is md TC\_EXP\_003\_2
+ 
+ 
++this is headline
++================
+ 
+-THIS IS HEADLINE
+ 
+-
+-
+     now verbatim by indent inclucde TC_EXP_003_1.md
+ 
+         ## this is TC_EXP_003_1
+
+
+
+@@ -27,13 +26,13 @@
+ 
+ now full format inclucde TC_EXP_003_1.md
+ 
+-
+ this is TC_EXP_003_1
++--------------------
+ 
+ we now include TC_EXP_003_2 from TC_EXP_003_1
+ 
+-
+ this is md TC_EXP_003_2
++-----------------------
+ 
+     - hugo
+ 
+
+@@ -45,8 +44,8 @@
+ 
+ now full format inclucde TC_EXP_003_2.md
+ 
+-
+ this is md TC_EXP_003_2
++-----------------------
+ 
+     - hugo
+ 
+
+
./spec/wortsammler_spec.rb:439:in `block (2 levels) in '
+
437    ref = File.open("#{specdir}/tc_exp_003_reference.txt").read
+438    result = File.open("#{tempdir}/#{mdfile}.txt").read
+439    ref.should==result
+440  end
+441
+442# gem install syntax to get syntax highlighting
+
+
-
generates an index5.04777s
+
+ generates an index + 4.39002s +
+
invalid byte sequence in UTF-8
+
./spec/wortsammler_spec.rb:447:in `block (2 levels) in '
+
445    ref = File.open("#{specdir}/test_mkindex_reference.txt").read
+446    result = File.open("#{testoutput}/test_mkindex.txt").read
+447    ref.should==result
+448  end
+449
+450# gem install syntax to get syntax highlighting
+
+
-
reports TeX messages4.93433s
+
reports TeX messages4.29977s
- - + + diff --git a/testresults/wortsammler_testresults.log b/testresults/wortsammler_testresults.log index bcf4057..b79c47f 100644 --- a/testresults/wortsammler_testresults.log +++ b/testresults/wortsammler_testresults.log @@ -62,7 +62,7 @@ Wortsammler beautifier features beautifies input files in a manifest claims missing input claims undefined document path - creates a semantically unchanged markdown file + creates a semantically unchanged markdown file (FAILED - 1) Wortsammler conversion converts a single file to output format @@ -85,8 +85,8 @@ Wortsammler syntax extensions [RS_Comp_012] supports embedded images TC_EXP_001 expands expected results from testcases TC_EXP_002 removes plantuml sources - TC_EXP_003 handles Markdown inlays - generates an index + TC_EXP_003 handles Markdown inlays (FAILED - 2) + generates an index (FAILED - 3) reports TeX messages Pending: @@ -100,5 +100,120 @@ Pending: # Test not yet implemented # ./spec/wortsammler_spec.rb:319 -Finished in 2 minutes 17.7 seconds -71 examples, 0 failures, 3 pending +Failures: + + 1) Wortsammler beautifier features creates a semantically unchanged markdown file + Failure/Error: result.should == reference + expected: "% Test Markdown\n% Bernhard Weichel\n% 1.12.2014\n\n# Test headlines\n\n# Head Leel 2\n\n# test fenced code blocks\n\n~~~~ {#codeblock}\n\nthis\n\n is\n\n codedblock\n~~~~\n\n~~~~ {#backtick_codeblock}\n\nthis\n\n is\n\n codedblock\n~~~~\n" + got: "---\nauthor:\n- Bernhard Weichel\ndate: '1.12.2014'\ntitle: Test Markdown\n...\n\n# Test headlines\n\n# Head Leel 2\n\n# test fenced code blocks\n\n``` {#codeblock}\n\nthis\n\n is\n\n codedblock\n```\n\n``` {#backtick_codeblock}\n\nthis\n\n is\n\n codedblock\n```\n" (using ==) + Diff: + @@ -1,6 +1,9 @@ + -% Test Markdown + -% Bernhard Weichel + -% 1.12.2014 + +--- + +author: + +- Bernhard Weichel + +date: '1.12.2014' + +title: Test Markdown + +... + + # Test headlines + + + + + @@ -8,21 +11,21 @@ + + # test fenced code blocks + + -~~~~ {#codeblock} + +``` {#codeblock} + + this + + is + + codedblock + -~~~~ + +``` + + -~~~~ {#backtick_codeblock} + +``` {#backtick_codeblock} + + this + + is + + codedblock + -~~~~ + +``` + # ./spec/wortsammler_spec.rb:142:in `block (2 levels) in ' + + 2) Wortsammler syntax extensions TC_EXP_003 handles Markdown inlays + Failure/Error: ref.should==result + expected: "- this is headline\n - this is TC\\_EXP\\_003\\_1\n - this is md TC\\_EXP\\_003\\_2\n - this is md TC\\_EXP\\_003\\_2\n\n\n\nTHIS IS HEADLINE\n\n\n\n now verbatim by indent inclucde TC_EXP_003_1.md\n\n ## this is TC_EXP_003_1\n \n we now include TC_EXP_003_2 from TC_EXP_003_1\n \n ## this is md TC_EXP_003_2\n \n - hugo\n \n - hugo2\n \n end of TC_EXP_003_2\n \n end of TC_EXP_003_1\n\nnow full format inclucde TC_EXP_003_1.md\n\n\nthis is TC_EXP_003_1\n\nwe now include TC_EXP_003_2 from TC_EXP_003_1\n\n\nthis is md TC_EXP_003_2\n\n - hugo\n\n - hugo2\n\nend of TC_EXP_003_2\n\nend of TC_EXP_003_1\n\nnow full format inclucde 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" + got: "- this is headline\n - this is TC\\_EXP\\_003\\_1\n - this is md TC\\_EXP\\_003\\_2\n - this is md TC\\_EXP\\_003\\_2\n\n\nthis is headline\n================\n\n\n now verbatim by indent inclucde TC_EXP_003_1.md\n\n ## this is TC_EXP_003_1\n \n we now include TC_EXP_003_2 from TC_EXP_003_1\n \n ## this is md TC_EXP_003_2\n \n - hugo\n \n - hugo2\n \n end of TC_EXP_003_2\n \n end of TC_EXP_003_1\n\nnow full format inclucde TC_EXP_003_1.md\n\nthis is TC_EXP_003_1\n--------------------\n\nwe now include TC_EXP_003_2 from TC_EXP_003_1\n\nthis is md TC_EXP_003_2\n-----------------------\n\n - hugo\n\n - hugo2\n\nend of TC_EXP_003_2\n\nend of TC_EXP_003_1\n\nnow full format inclucde TC_EXP_003_2.md\n\nthis is md TC_EXP_003_2\n-----------------------\n\n - hugo\n\n - hugo2\n\nend of TC_EXP_003_2\n" (using ==) + Diff: + + + @@ -4,11 +4,10 @@ + - this is md TC\_EXP\_003\_2 + + + +this is headline + +================ + + -THIS IS HEADLINE + + - + - + now verbatim by indent inclucde TC_EXP_003_1.md + + ## this is TC_EXP_003_1 + + + + @@ -27,13 +26,13 @@ + + now full format inclucde TC_EXP_003_1.md + + - + this is TC_EXP_003_1 + +-------------------- + + we now include TC_EXP_003_2 from TC_EXP_003_1 + + - + this is md TC_EXP_003_2 + +----------------------- + + - hugo + + + @@ -45,8 +44,8 @@ + + now full format inclucde TC_EXP_003_2.md + + - + this is md TC_EXP_003_2 + +----------------------- + + - hugo + + # ./spec/wortsammler_spec.rb:439:in `block (2 levels) in ' + + 3) Wortsammler syntax extensions generates an index + Failure/Error: ref.should==result + ArgumentError: + invalid byte sequence in UTF-8 + # ./spec/wortsammler_spec.rb:447:in `block (2 levels) in ' + +Finished in 2 minutes 51.99 seconds +71 examples, 3 failures, 3 pending + +Failed examples: + +rspec ./spec/wortsammler_spec.rb:130 # Wortsammler beautifier features creates a semantically unchanged markdown file +rspec ./spec/wortsammler_spec.rb:405 # Wortsammler syntax extensions TC_EXP_003 handles Markdown inlays +rspec ./spec/wortsammler_spec.rb:442 # Wortsammler syntax extensions generates an index