diff --git a/README.md b/README.md index ffde481..825a031 100644 --- a/README.md +++ b/README.md @@ -130,8 +130,6 @@ The rakefile is in `/30_Sources/ZSUPP_Tools` MIT: http://www.opensource.org/licenses/mit-license.php - - ## thanks to - John Mc Farlane for [pandoc][] diff --git a/changelog.md b/changelog.md index 32adf46..431866d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,11 +1,21 @@ +# 0.1.0 (24.12.2014) + +- adapt to pandoc 1.13 +- add slide output formats +- improved installation of Wortsammler Box here +- improve installation of the required executeables + # 0.0.9 (26.08.2013) -- Fixed encoding while reading traces from markdown (https://github.com/bwl21/wortsammler/issues/23) +- Fixed encoding while reading traces from markdown + (https://github.com/bwl21/wortsammler/issues/23) # 0.0.8 (26.08.2013) -- Added support for handling test specifications (https://github.com/bwl21/wortsammler/issues/22) -- Fixed some encoding issues (https://github.com/bwl21/wortsammler/issues/21) +- Added support for handling test specifications + (https://github.com/bwl21/wortsammler/issues/22) +- Fixed some encoding issues + (https://github.com/bwl21/wortsammler/issues/21) # 0.0.7 (17.07.2013) diff --git a/resources/wortsammler.sty b/resources/wortsammler.sty new file mode 100644 index 0000000..6c3311c --- /dev/null +++ b/resources/wortsammler.sty @@ -0,0 +1,57 @@ +% this is part of wortsammler (https://github.com/bwl21/wortsammler) +% it contains wortsammler specific settings and commands +% +% usage: usepackage{wortsammler} +% +% +% +%list environment by reinhard Jahraus +{\catcode`\@=11\relax% +\gdef\itemize{% + \ifnum \@itemdepth >\thr@@\@toodeep\else + \advance\@itemdepth\@ne + \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% + \expandafter + \list + \csname\@itemitem\endcsname + {\def\makelabel##1{\hss\llap{##1}}% + \addtolength{\leftmargin}{-10pt}% 29.37pt + \addtolength{\rightmargin}{0.0pt}% 0.0pt + \addtolength{\labelsep}{0pt}% 23.50pt + \addtolength{\itemsep}{-3.0pt}% 5.0pt + \addtolength{\parsep}{-1pt}% 5.0pt + \addtolength{\topsep}{-5pt}% 10.0pt + \addtolength{\partopsep}{0pt}% 3.0pt + }% + \fi} +}% +% +% We will generate all images so they have a width \maxwidth. This means +% that they will get their normal width if they fit onto the page, but +% are scaled down if they would overflow the margins. +\makeatletter +\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth +\else\Gin@nat@width\fi} +\makeatother +\let\Oldincludegraphics\includegraphics +\makeatletter +\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth +\else\Gin@nat@width\fi} +\makeatother +\let\Oldincludegraphics\includegraphics +%\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} +% Determine if the image is too wide for the page. +% +{% + \catcode`\@=11\relax% + \gdef\includegraphics{\@ifnextchar[{\Oldincludegraphics}{\Oldincludegraphics[width=\maxwidth]}}% +}% +% +% +% required for embeded icons +\usepackage{multicol} +\usepackage{wrapfig} +\usepackage{needspace} + + + diff --git a/spec/test_beautify.md b/spec/test_beautify.md new file mode 100644 index 0000000..16a0f0a --- /dev/null +++ b/spec/test_beautify.md @@ -0,0 +1,30 @@ +% Test Markdown +% Bernhard Weichel +% 1.12.2014 + +# Test headlines + +Head Leel 2 +=========== + +# test fenced code blocks + +~~~~ {#codeblock} + +this + + is + + codedblock +~~~~ + + + +``` {#backtick_codeblock} + +this + + is + + codedblock +``` diff --git a/spec/test_beautify_reference.md b/spec/test_beautify_reference.md new file mode 100644 index 0000000..de2052d --- /dev/null +++ b/spec/test_beautify_reference.md @@ -0,0 +1,27 @@ +% Test Markdown +% Bernhard Weichel +% 1.12.2014 + +# Test headlines + +# Head Leel 2 + +# test fenced code blocks + +~~~~ {#codeblock} + +this + + is + + codedblock +~~~~ + +~~~~ {#backtick_codeblock} + +this + + is + + codedblock +~~~~ diff --git a/spec/test_mkindex_reference.txt b/spec/test_mkindex_reference.txt new file mode 100644 index 0000000..c688838 --- /dev/null +++ b/spec/test_mkindex_reference.txt @@ -0,0 +1,89 @@ +CONTENTS + +CONTENTS + +Contents +1 Das ist ein Test zur Indexerstellung + +2 + +1 + +December 17, 2014 + + 1 + +DAS IST EIN TEST ZUR INDEXERSTELLUNG + +1 Das ist ein Test zur Indexerstellung +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 Wefox™ 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 + +2 + +December 17, 2014 + + 1 DAS IST EIN TEST ZUR INDEXERSTELLUNG + +1 + +DAS IST EIN TEST ZUR INDEXERSTELLUNG + +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 Wefox™ 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 + +3 + +December 17, 2014 + + 1 + +DAS IST EIN TEST ZUR INDEXERSTELLUNG + +hier kommt der Index + +4 + +December 17, 2014 + + Index +Sätze, 2 +Typoblindtext, 2, 3 +Uder, 2 +Ufer, 2 +Äpfelchen, 2 +Über, 2 + +5 + + INDEX + +INDEX + +ende des Index + +6 + +December 17, 2014 + + \ No newline at end of file diff --git a/spec/wortsammler_spec.rb b/spec/wortsammler_spec.rb index 3d4e432..b0e5d1d 100644 --- a/spec/wortsammler_spec.rb +++ b/spec/wortsammler_spec.rb @@ -3,10 +3,10 @@ require 'pry' wortsammlerbin = "'#{File.expand_path("bin")}'" -wortsammler = "'#{File.expand_path(File.join("bin", "wortsammler"))}'" +wortsammler = "'#{File.expand_path(File.join("bin", "wortsammler"))}'" testprojectdir = "testproject/30_Sources" -specdir = File.dirname(__FILE__) -testoutput = "#{specdir}/../testoutput" +specdir = File.dirname(__FILE__) +testoutput = "#{specdir}/../testoutput" describe "Wortsammler generic issues" do @@ -22,14 +22,14 @@ result.empty?.should==true end - it "reports version numbers", :exp => false do + it "reports version numbers", :exp => false do result = `#{wortsammler} -v` result.should include "wortsammler" result.should include "pandoc" result.should include "XeTeX" end - it "turns on vervbose mode", :exp => false do + it "turns on vervbose mode", :exp => false do result = `#{wortsammler} -v` result.should include "DEBUG" end @@ -71,14 +71,14 @@ mdtext="#this is headline\n\n lorem ipsum\n\nbla fasel" cycles=10 - cycles.times{|i| - File.open("#{tempdir}/#{i}.md", "w"){|f|f.puts mdtext} + cycles.times { |i| + File.open("#{tempdir}/#{i}.md", "w") { |f| f.puts mdtext } } system "#{wortsammler} -bi #{tempdir}" $?.success?.should==true - cycles.times{|i| + cycles.times { |i| beautified_result=File.open("#{tempdir}/#{i}.md").readlines.join beautified_result.should include("# this is headline") } @@ -90,7 +90,7 @@ mdfile="#{tempdir}/single.md" mdtext="#this is headline\n\n lorem ipsum\n\nbla fasel" - File.open(mdfile, "w"){|f|f.puts mdtext} + File.open(mdfile, "w") { |f| f.puts mdtext } system "#{wortsammler} -bi #{mdfile}" $?.success?.should==true @@ -99,7 +99,7 @@ end it "recognizes if the specified manifest file is a directory", exp: false do - FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") {|d| + FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") { |d| manifest="../ZSUPP_Manifests" cmd= "#{wortsammler} -bm #{manifest} 2>&1" r=`#{cmd}` @@ -108,9 +108,9 @@ $?.success?.should==false end it "beautifies input files in a manifest" do - FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") {|d| - manifest="../ZSUPP_Manifests/sample_the-sample-document.yaml" - cmd= "#{wortsammler} -bm #{manifest}" + FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") { |d| + manifest = "../ZSUPP_Manifests/sample_the-sample-document.yaml" + cmd = "#{wortsammler} -bm #{manifest}" system cmd } $?.success?.should==true @@ -127,6 +127,21 @@ $?.success?.should == false end + it "creates a semantically unchanged markdown file", exp: false do + testname = 'test_beautify' + inputfile = %Q{#{specdir}/#{testname}.md} + outputfile = %Q{#{testoutput}/#{testname}.md} + referencefile = %Q{#{specdir}/#{testname}_reference.md} + + FileUtils.cp(inputfile, outputfile) + cmd = "#{wortsammler} -bi '#{outputfile}'" + system cmd + + reference = File.open(referencefile).read + result = File.open(outputfile).read + result.should == reference + end + end describe "Wortsammler conversion" do @@ -135,33 +150,33 @@ tempdir=Dir.mktmpdir mdfile="#{tempdir}/single.md" mdtext="#this is headline\n\n lorem ipsum\n\nbla fasel" - File.open(mdfile, "w"){|f| f.puts mdtext} + File.open(mdfile, "w") { |f| f.puts mdtext } system "#{wortsammler} -pi #{mdfile} -o #{tempdir} -f latex:pdf:html:docx" $?.success?.should==true - Dir["#{tempdir}/*"].map{|f|File.basename(f)}.should== ["single.docx", - "single.html", - "single.latex", - "single.log", - "single.md", - "single.pdf" - ] + Dir["#{tempdir}/*"].map { |f| File.basename(f) }.should== ["single.docx", + "single.html", + "single.latex", + "single.log", + "single.md", + "single.pdf" + ] end it "converts a single file to default output format" do tempdir=Dir.mktmpdir mdfile="#{tempdir}/single.md" mdtext="#this is headline\n\n lorem ipsum\n\nbla fasel" - File.open(mdfile, "w"){|f| f.puts mdtext} + File.open(mdfile, "w") { |f| f.puts mdtext } system "#{wortsammler} -pi #{mdfile} -o #{tempdir}" $?.success?.should==true - Dir["#{tempdir}/*"].map{|f|File.basename(f)}.should== ["single.log", - "single.md", - "single.pdf" - ] + Dir["#{tempdir}/*"].map { |f| File.basename(f) }.should== ["single.log", + "single.md", + "single.pdf" + ] end @@ -169,18 +184,21 @@ tempdir="#{specdir}/../testoutput" mdfile="#{tempdir}/chapternesting.md" mdtext="#this is headline\n\n lorem ipsum\n\nbla fasel" + def lorem(j) - (1.upto 100) .map{|i| "text_#{j} lorem ipsum #{i} dolor "}.join(" ") + (1.upto 100).map { |i| "text_#{j} lorem ipsum #{i} dolor " }.join(" ") end + def chapter(i, depth) ["\n\n", "##########"[1..depth], " this is example on level #{i} .. #{depth}\n\n", lorem(i), - ].join("") + ].join("") end - File.open(mdfile, "w"){|f| + + File.open(mdfile, "w") { |f| 1.upto 10 do |i| 1.upto 6 do |j| - f.puts chapter(i,j) + f.puts chapter(i, j) end end } @@ -188,27 +206,30 @@ def chapter(i, depth) system "#{wortsammler} -pbi '#{mdfile}' -o '#{tempdir}' -f pdf:latex" $?.success?.should==true - Dir["#{tempdir}/chapternesting*"].map{|f|File.basename(f)}.sort.should== ["chapternesting.md", - "chapternesting.pdf", - "chapternesting.latex", - "chapternesting.log", - "chapternesting.md.bak" - ].sort + Dir["#{tempdir}/chapternesting*"].map { |f| File.basename(f) }.sort.should== ["chapternesting.md", + "chapternesting.pdf", + "chapternesting.latex", + "chapternesting.log", + "chapternesting.md.bak" + ].sort end it "handles lists up to 9 levels", exp: false do tempdir="#{specdir}/../testoutput" mdfile="#{tempdir}/listnesting.md" mdtext="#this is headline\n\n lorem ipsum\n\nbla fasel" + def lorem(j) - (1.upto 100) .map{|i| "text_#{j} lorem ipsum #{i} dolor "}.join(" ") + (1.upto 100).map { |i| "text_#{j} lorem ipsum #{i} dolor " }.join(" ") end + def chapter(i, depth) ["\n\n", "##########"[1..depth], " this is example on level #{i} .. #{depth}\n\n", lorem(i), - ].join("") + ].join("") end - File.open(mdfile, "w"){|f| + + File.open(mdfile, "w") { |f| f.puts "# depth test for lists" f.puts "" f.puts lorem(1) @@ -222,32 +243,32 @@ def chapter(i, depth) system "#{wortsammler} -pbi '#{mdfile}' -o '#{tempdir}' -f pdf:latex" $?.success?.should==true - Dir["#{tempdir}/listnesting*"].map{|f|File.basename(f)}.sort.should== ["listnesting.md", - "listnesting.pdf", - "listnesting.latex", - "listnesting.log", - "listnesting.md.bak" - ].sort + Dir["#{tempdir}/listnesting*"].map { |f| File.basename(f) }.sort.should== ["listnesting.md", + "listnesting.pdf", + "listnesting.latex", + "listnesting.log", + "listnesting.md.bak" + ].sort end it "converts all files within a folder to output format" do tempdir=Dir.mktmpdir mdtext="# Header\n\n lorem ipsum\n" basefiles = ["f1", "f2", "f3"] - outfiles = basefiles.map{|f| ["#{f}.md", "#{f}.latex"]}.flatten.sort - basefiles.each{|f| - File.open("#{tempdir}/#{f}.md", "w"){|fo|fo.puts mdtext} + outfiles = basefiles.map { |f| ["#{f}.md", "#{f}.latex"] }.flatten.sort + basefiles.each { |f| + File.open("#{tempdir}/#{f}.md", "w") { |fo| fo.puts mdtext } } system "#{wortsammler} -pi #{tempdir} -o #{tempdir} -f latex" $?.success?.should==true - Dir["#{tempdir}/*"].map{|f|File.basename(f)}.sort.should== outfiles + Dir["#{tempdir}/*"].map { |f| File.basename(f) }.sort.should== outfiles end it "processes a manifest" do - FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") {|d| + FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") { |d| manifest="../ZSUPP_Manifests/sample_the-sample-document.yaml" cmd= "#{wortsammler} -pm #{manifest}" system cmd @@ -261,7 +282,7 @@ def chapter(i, depth) $?.success?.should==false end - it "extracts the traceables according to a manifest", :exp=> false do + it "extracts the traceables according to a manifest", :exp => false do manifest="testproject/30_Sources/ZSUPP_Manifests/sample_the-sample-document.yaml" system "#{wortsammler} -cm #{manifest}" $?.success?.should==true @@ -290,7 +311,6 @@ def chapter(i, depth) File.exist?(outfile).should==true end - it "processes snippets" do pending "Test not yet implemented" @@ -301,9 +321,8 @@ def chapter(i, depth) end - it "runs the rake file in the sample document" do - FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") {|d| + FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") { |d| path=ENV['PATH'] ENV['PATH']="#{wortsammlerbin}:#{path}" puts ENV['PATH'] @@ -315,7 +334,7 @@ def chapter(i, depth) end it "compiles all documents" do - FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") {|d| + FileUtils.cd("testproject/30_Sources/ZSUPP_Tools") { |d| path=ENV['PATH'] ENV['PATH']="#{wortsammlerbin}:#{path}" puts ENV['PATH'] @@ -330,30 +349,30 @@ def chapter(i, depth) describe "Wortsammler syntax extensions", :exp => false do it "[RS_Comp_012] supports embedded images" do - tempdir ="#{specdir}/../testoutput" + tempdir ="#{specdir}/../testoutput" imagefile ="floating-image.pdf" - FileUtils.cd(tempdir){|c| + FileUtils.cd(tempdir) { |c| FileUtils.cp("#{specdir}/#{imagefile}", ".") mdfile="embedded-image.md" mdtext=["#this is headline", - (5..100).to_a.map{|oi| + (5..100).to_a.map { |oi| ["\n\n", "this is image\n\n~~EMBED \"#{imagefile}\" o 40mm 60mm~~", - (1..20).to_a.map{|ii| + (1..20).to_a.map { |ii| "#{oi} und #{ii} lorem ipsum und blafasel" }.join(" "), "\n\n", - (5..15+oi).to_a.map{|ii| + (5..15+oi).to_a.map { |ii| "#{oi} und #{ii} lorem ipsum und blafasel" }.join(" "), "\n\n"] } - ].flatten.join("\n") + ].flatten.join("\n") - File.open(mdfile, "w"){|f| f.puts mdtext} + File.open(mdfile, "w") { |f| f.puts mdtext } system "#{wortsammler} -pi '#{mdfile}' -o '.' -f pdf:latex:html:docx" FileUtils.rm imagefile @@ -384,12 +403,12 @@ def chapter(i, depth) end it "TC_EXP_003 handles Markdown inlays", exp: false do - tempdir ="#{specdir}/../testoutput" + tempdir ="#{specdir}/../testoutput" mdinlayfile ="TC_EXP_003_1.md" mdinlayfile_1 ="TC_EXP_003_2.md" mdfile="tc_exp_003" - FileUtils.cd(tempdir){|c| + FileUtils.cd(tempdir) { |c| FileUtils.cp("#{specdir}/#{mdinlayfile}", ".") FileUtils.cp("#{specdir}/#{mdinlayfile_1}", ".") @@ -397,38 +416,38 @@ def chapter(i, depth) mdtext=["#this is headline", "", "~~~~", - "","now verbatim by indent inclucde #{mdinlayfile}", "", + "", "now verbatim by indent inclucde #{mdinlayfile}", "", " ~~MD \"#{mdinlayfile}\"~~", "~~~~", "", - "","now full format inclucde #{mdinlayfile}", "", + "", "now full format inclucde #{mdinlayfile}", "", "~~MD \"#{mdinlayfile}\"~~", "", - "","now full format inclucde #{mdinlayfile_1}", "", + "", "now full format inclucde #{mdinlayfile_1}", "", "~~MD \"#{mdinlayfile_1}\"~~", - ].flatten.join("\n") + ].flatten.join("\n") - File.open("#{mdfile}.md", "w"){|f| f.puts mdtext} + File.open("#{mdfile}.md", "w") { |f| f.puts mdtext } system "#{wortsammler} -pi '#{mdfile}.md' -o '.' -f txt" FileUtils.rm mdinlayfile FileUtils.rm mdinlayfile_1 } - ref = File.open("#{specdir}/tc_exp_003_reference.txt").read + ref = File.open("#{specdir}/tc_exp_003_reference.txt").read result = File.open("#{tempdir}/#{mdfile}.txt").read ref.should==result end - it "generates an index", exp: false do - system "wortsammler -pi \"#{specdir}/test_mkindex.md\" -f pdf:latex" - system "pdftotext \"#{specdir}/test_mkindex.pdf\"" - ref = File.open("#{specdir}/test_mkindex_reference.txt").read - result = File.open("#{specdir}/test_mkindex.txt").read + it "generates an index", exp: false do + system "wortsammler -pi \"#{specdir}/test_mkindex.md\" -f pdf:latex -o \"#{testoutput}\"" + system "pdftotext \"#{testoutput}/test_mkindex.pdf\"" + ref = File.open("#{specdir}/test_mkindex_reference.txt").read + result = File.open("#{testoutput}/test_mkindex.txt").read ref.should==result end - it "reports TeX messages", exp: false do + it "reports TeX messages", exp: false do system "wortsammler -pi \"#{specdir}/test_mkindex.md\" -f pdf:latex >> \"#{specdir}/test_mkindex.lst\"" system "pdftotext \"#{specdir}/test_mkindex.pdf\"" result = File.open("#{specdir}/test_mkindex.lst").read diff --git a/testresults/wortsammler_testresults.html b/testresults/wortsammler_testresults.html index a5cec83..7530d4a 100644 --- a/testresults/wortsammler_testresults.html +++ b/testresults/wortsammler_testresults.html @@ -286,198 +286,200 @@

RSpec Code Examples

PandocBeautifier
-
checks the availability of the right pandoc version0.03288s
+
checks the availability of the right pandoc version0.04766s
pdf utilities:
-
adjusts the bounding box of a pdf file18.30241s
+
adjusts the bounding box of a pdf file18.40788s
-
converts an excel sheet to pdf2.99848s
- -
converts a powerpoint to pdf1.24429s
- -
converts an excelsheet to cropped pdf3.44812s
- -
converts a powerpoint to cropped pdf19.56202s
+
converts an excel sheet to pdf3.23186s
+ +
converts a powerpoint to pdf1.33679s
+ +
converts an excelsheet to cropped pdf3.58307s
+ +
converts a powerpoint to cropped pdf19.53628s
TraceableSet
- -
should return a blank instance0.00016s
- -
allows to add Traceables0.00021s
- -
delivers the first of the duplicates0.00017s
- -
advertises duplicates0.00028s
- -
adertises undefined traceables0.00015s
- -
advertises all traceables0.00013s
- -
advertises a hash of supporting traces0.00023s
- + +
should return a blank instance0.00014s
+ +
allows to add Traceables0.00015s
+ +
delivers the first of the duplicates0.00012s
+ +
advertises duplicates0.00041s
+ +
adertises undefined traceables0.00027s
+ +
advertises all traceables0.00011s
+ +
advertises a hash of supporting traces0.00011s
+
advertises traceable ids of a particular category0.00012s
- +
advertises ttraceables of a particular category0.00010s
- -
merges traceables0.00020s
- -
exposes deleted Traceables0.00012s
- -
exposes added Traceables0.00011s
- -
exposes deleted Traceables of category0.00010s
- -
exposes added Traceables of category0.00011s
- -
exploses changed traceids as array of [Traceid, levensthein, diff_as_html]0.01002s
- -
exposes unchanged Traceables0.00592s
- -
can be marshalled to a file0.00241s
- -
can be dumped to a graphml file0.00320s
+ +
merges traceables0.00043s
+ +
exposes deleted Traceables0.00015s
+ +
exposes added Traceables0.00014s
+ +
exposes deleted Traceables of category0.00012s
+ +
exposes added Traceables of category0.00016s
+ +
exploses changed traceids as array of [Traceid, levensthein, diff_as_html]0.02827s
+ +
exposes unchanged Traceables0.00526s
+ +
can be marshalled to a file0.00260s
+ +
can be dumped to a graphml file0.00331s
Traceable
- -
should == "id"0.00012s
- -
should == "origin"0.00010s
- -
should == "alternative_id"0.00012s
- -
should == "header_plain"0.00010s
- -
should == "\\textt{header_origin}"0.00009s
- + +
should == "id"0.00023s
+ +
should == "origin"0.00016s
+ +
should == "alternative_id"0.00016s
+ +
should == "header_plain"0.00013s
+ +
should == "\\textt{header_origin}"0.00019s
+
should == "body_plain"0.00010s
- -
should == ["contributes_to"]0.00010s
- + +
should == ["contributes_to"]0.00018s
+
should == "trace_orig"0.00010s
- -
should == "origin"0.00009s
- -
should == "category"0.00011s
- -
should == "info"0.00010s
+ +
should == "origin"0.00016s
+ +
should == "category"0.00012s
+ +
should == "info"0.00015s
Wortsammler generic issues
- -
provides a help0.41351s
- -
runs silent0.45418s
- -
reports version numbers0.50297s
- -
turns on vervbose mode0.50101s
- -
can create a new project folder0.45621s
- -
does not initialize into an existing project folder0.45304s
+ +
provides a help0.60931s
+ +
runs silent0.59435s
+ +
reports version numbers0.76085s
+ +
turns on vervbose mode0.65025s
+ +
can create a new project folder0.71120s
+ +
does not initialize into an existing project folder0.62626s
- +
controls the pandoc options by document class (PENDING: implement test to control pandoc options by document class)
Wortsammler options validator
- -
rejects no processing0.41461s
+ +
rejects no processing0.56336s
Wortsammler beautifier features
- -
beautifies all markdown files in a folder0.77112s
- -
beautifies a single file0.50677s
- -
recognizes if the specified manifest file is a directory0.44709s
- -
beautifies input files in a manifest0.50665s
- -
claims missing input0.44910s
- -
claims undefined document path0.44324s
+ +
beautifies all markdown files in a folder0.96581s
+ +
beautifies a single file0.65310s
+ +
recognizes if the specified manifest file is a directory0.59909s
+ +
beautifies input files in a manifest0.66532s
+ +
claims missing input0.60528s
+ +
claims undefined document path0.59351s
+ +
creates a semantically unchanged markdown file0.63535s
Wortsammler conversion
- -
converts a single file to output format4.74829s
- -
converts a single file to default output format4.66250s
- -
handles chapters up to 6 levels7.38425s
- -
handles lists up to 9 levels4.76945s
- -
converts all files within a folder to output format0.53458s
- -
processes a manifest14.88990s
- -
investigates the existence of a manifest0.40986s
- -
extracts the traceables according to a manifest0.56265s
- -
extracts plantuml according to a manifest0.65546s
- -
extracts plantuml from a single file1.99393s
- -
extracts plantuml from a folder2.57622s
+ +
converts a single file to output format5.50586s
+ +
converts a single file to default output format4.82411s
+ +
handles chapters up to 6 levels7.74781s
+ +
handles lists up to 9 levels5.03397s
+ +
converts all files within a folder to output format0.69999s
+ +
processes a manifest15.26699s
+ +
investigates the existence of a manifest0.57498s
+ +
extracts the traceables according to a manifest0.77385s
+ +
extracts plantuml according to a manifest0.82310s
+ +
extracts plantuml from a single file2.23827s
+ +
extracts plantuml from a folder2.90225s
- +
processes snippets (PENDING: Test not yet implemented)
- +
handles undefined snippets (PENDING: Test not yet implemented)
- -
runs the rake file in the sample document15.53942s
- -
compiles all documents0.00028s
+ +
runs the rake file in the sample document15.63666s
+ +
compiles all documents0.00033s
Wortsammler syntax extensions
- -
[RS_Comp_012] supports embedded images9.57791s
- -
TC_EXP_001 expands expected results from testcases0.00183s
+ +
[RS_Comp_012] supports embedded images9.55798s
+ +
TC_EXP_001 expands expected results from testcases0.00236s
-
TC_EXP_002 removes plantuml sources0.00072s
+
TC_EXP_002 removes plantuml sources0.00139s
-
TC_EXP_003 handles Markdown inlays0.48993s
+
TC_EXP_003 handles Markdown inlays0.66215s
-
generates an index4.70097s
+
generates an index5.04777s
-
reports TeX messages4.76241s
+
reports TeX messages4.93433s
- - + + diff --git a/testresults/wortsammler_testresults.log b/testresults/wortsammler_testresults.log index b583f9a..bcf4057 100644 --- a/testresults/wortsammler_testresults.log +++ b/testresults/wortsammler_testresults.log @@ -62,6 +62,7 @@ Wortsammler beautifier features beautifies input files in a manifest claims missing input claims undefined document path + creates a semantically unchanged markdown file Wortsammler conversion converts a single file to output format @@ -94,10 +95,10 @@ Pending: # ./spec/wortsammler_spec.rb:52 Wortsammler conversion processes snippets # Test not yet implemented - # ./spec/wortsammler_spec.rb:295 + # ./spec/wortsammler_spec.rb:315 Wortsammler conversion handles undefined snippets # Test not yet implemented - # ./spec/wortsammler_spec.rb:299 + # ./spec/wortsammler_spec.rb:319 -Finished in 2 minutes 10.22 seconds -70 examples, 0 failures, 3 pending +Finished in 2 minutes 17.7 seconds +71 examples, 0 failures, 3 pending diff --git a/wortsammler.gemspec b/wortsammler.gemspec index 9267bdc..8bc649b 100644 --- a/wortsammler.gemspec +++ b/wortsammler.gemspec @@ -28,10 +28,10 @@ END_DOC spec.required_ruby_version = '>= 1.9.3' spec.add_runtime_dependency 'logger' - spec.add_runtime_dependency 'nokogiri' - spec.add_runtime_dependency "rubyXL" + spec.add_runtime_dependency 'nokogiri', '=1.5.10 ' + spec.add_runtime_dependency 'rubyXL' spec.add_runtime_dependency 'diffy', "~> 2.1.3" - spec.add_runtime_dependency 'zip' + spec.add_runtime_dependency 'rubyzip' spec.add_runtime_dependency 'treetop' spec.summary = %q{an environment to manage documentation}