rake4latex 0.1.3 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/bin/{call_rake4latex.rb → rake4latex.rb} +5 -1
  3. data/bin/{readme_call_rake4latex.txt → readme_rake4latex.txt} +0 -0
  4. data/lib/rake4latex.rb +6 -8
  5. data/lib/rake4latex/base.rb +60 -15
  6. data/lib/rake4latex/clean.rb +37 -32
  7. data/lib/rake4latex/glossaries.rb +3 -4
  8. data/lib/rake4latex/latexrunner.rb +9 -4
  9. data/lib/rake4latex/rail.rb +80 -0
  10. data/lib/rake4latex/rules.rb +25 -56
  11. data/lib/rake4latex/splitindex.rb +7 -7
  12. data/lib/rake4latex_dtx.rb +6 -4
  13. data/lib/rake4latex_dvipdfm.rb +3 -10
  14. data/lib/rake4latex_ps2pdf.rb +4 -8
  15. data/readme.html +37 -12
  16. data/readme.txt +23 -8
  17. data/test/_expected/bibtex_test.txt +0 -1
  18. data/test/_expected/bibtex_test_bib.txt +0 -1
  19. data/test/_expected/bibtex_test_build_rakefile.txt +0 -1
  20. data/test/_expected/dtx_test.txt +0 -1
  21. data/test/_expected/dtx_test_sty.txt +0 -1
  22. data/test/_expected/dvipdfm_test.txt +0 -1
  23. data/test/_expected/error_test.txt +0 -1
  24. data/test/_expected/error_test_ignore_error.txt +0 -1
  25. data/test/_expected/error_test_overview.txt +11 -12
  26. data/test/_expected/error_test_statistic.txt +0 -1
  27. data/test/_expected/gloss_test.txt +0 -1
  28. data/test/_expected/gloss_test_bib.txt +0 -1
  29. data/test/_expected/gloss_test_build_rakefile.txt +0 -1
  30. data/test/_expected/glossaries_test.txt +0 -1
  31. data/test/_expected/includes_test.txt +0 -1
  32. data/test/_expected/includes_test_build_rakefile.txt +1 -2
  33. data/test/_expected/index_test.txt +0 -1
  34. data/test/_expected/longtable_test.txt +0 -1
  35. data/test/_expected/minitoc_test.txt +0 -1
  36. data/test/_expected/ps2pdf_test.txt +0 -1
  37. data/test/_expected/rail_error_test.txt +2 -3
  38. data/test/_expected/rail_test.txt +0 -1
  39. data/test/_expected/splitindex_test.txt +0 -1
  40. data/test/_expected/splitindex_test_build_rakefile.txt +0 -1
  41. data/test/_expected/supertabular_test.txt +0 -1
  42. data/test/_expected/supertabular_test_statistic.txt +1 -2
  43. data/test/_expected/two_tasks_test.txt +0 -1
  44. data/test/_expected/two_tasks_test_statistic.txt +0 -1
  45. data/test/_expected/varioref_test.txt +0 -1
  46. data/test/_expected/varioref_test_ignore_error.txt +1 -2
  47. data/test/_expected/z_complex_test.txt +0 -1
  48. data/test/_expected/z_complex_test_overview.txt +58 -58
  49. data/test/_expected/z_complex_test_overview_file.txt +0 -1
  50. data/test/_expected/z_complex_test_statistic.txt +0 -1
  51. data/test/bibtex/rakefile.rb +4 -9
  52. data/test/gloss/rakefile.rb +0 -7
  53. data/test/glossaries/rakefile.rb +4 -5
  54. data/test/rake4latex_testhelper.rb +76 -0
  55. data/test/test_extract.rb +29 -0
  56. data/test/unittest_rail.rb +154 -0
  57. data/test/unittest_rake4latex.rb +1 -0
  58. data/test/unittest_rake4latex_testcases.rb +96 -63
  59. data/test/unittest_splitindex.rb +14 -3
  60. metadata +89 -117
@@ -2,6 +2,7 @@
2
2
  #Unit tests without TeX-Calls (see unittest_rake4latex_testcases.rb for thos tests.)
3
3
  #
4
4
 
5
+ gem 'test-unit'
5
6
  require 'test/unit'
6
7
  #~ require 'assert_equal_filecontent'
7
8
  if $0 == __FILE__
@@ -1,9 +1,9 @@
1
1
  #
2
2
  #Checks the test cases (May take some time, makes a lot TeX-runs).
3
3
  #
4
+ gem 'more_unit_test', '>0.0.2'
4
5
  gem 'test-unit'
5
6
  require 'test/unit'
6
- gem 'more_unit_test', '>0.0.2'
7
7
  require 'more_unit_test/assert_equal_filecontent'
8
8
 
9
9
  if $0 == __FILE__
@@ -14,86 +14,119 @@ else
14
14
  end
15
15
  require 'rake4latex'
16
16
  include Rake4LaTeX
17
-
17
+ require_relative('rake4latex_testhelper')
18
18
 
19
19
  class Test_testdocument < Test::Unit::TestCase
20
- #Test all testcases.
21
- def mytest_testcase( dir )
22
- assert_equal( true, File.directory?(dir))
23
-
24
- Dir.chdir(dir){
25
- assert_equal( true, File.exist?('rakefile.rb'), "No rakefile in #{dir}")
26
- #clean and check if test directory is empty in advance.
27
- `call rake clobber`
28
- assert_equal( true, Dir['*.{aux,log}'].empty?, "<#{dir}> contains old testdata")
29
-
30
- #Logger umh�ngen auf file
31
- #~ LaTeXRunner.logger.outputters = Log4r::FileOutputter.new("#{dir}.log4r")
32
-
33
- LaTeXRunner::DEFAULT_SETTINGS[:loglevel] = Log4r::INFO
34
- #testcases: test (test1 test2 ...)
35
- testcase = nil
36
- File.open('rakefile.rb'){|rakefile|
37
- rakefile_content = rakefile.read
38
- assert_match(/^\s*task\s*:basefile\s*=>|Rake4LaTeX::Basefile.set/, rakefile_content, "Missing basefile-task in Test #{dir}")
39
- #Get all test cases
40
- rakefile_content.scan(/^task\s*:(test\S*)\s*=>(.*)$/){|hit|
41
- testcase = hit.first
42
- dircontent = Dir['*'] #Remember the directory content before the task
43
- result = `call rake #{testcase}`
44
- result.sub!(/\(in .*?$/,'') #delete first line from rake (depends on directory the test runs).
45
- result.sub!(/^call (.*?)\n$/,'') if RUBY_VERSION =~ /1.9/
46
-
47
- #Take a look on the prerequisites
48
- case hit[1]
49
- #Special test with :log_overview.
50
- #Don't test stdout, but content of the overview-file
51
- when /:log_overview_file/
52
- assert_equal( 1, Dir['*'].size - dircontent.size , 'No log-overview created' ) #One file created
53
- end
54
-
55
- assert_equal_filecontent( "../_expected/#{dir}_#{testcase}.txt", result,
56
- "../_failure#{Date.today}",
57
- "Testcase #{dir}/#{testcase} changed content"
58
- )
59
- }#loop on test-tasks
60
- }#File rakefile
61
- assert_not_nil(testcase, "No testcase found in <#{dir}>")
62
-
63
- #Check overview file
64
- #~
65
- #~ `call rake log_overview`
66
-
67
- #~ `call rake clean`
68
- `call rake clobber` #PDFs not really needed after the test.
69
- }
70
- end
71
-
72
20
 
21
+ include Rake4latex_testhelper
73
22
  #
74
23
  #Loop on all test directories
75
24
  #
76
25
  Dir["*/"].each{|dir| #get all directories
77
- next if dir =~ /^_/ #files for assert_equal_filecontent
78
-
79
-
80
- #~ next unless dir =~ /bibte/
26
+ #skip testcases form other test files
27
+ next if dir =~ /^_/ #files for assert_equal_filecontent
28
+ next if dir =~ /^splitindex/ #see unittest_splitindex.rb
29
+ next if dir =~ /^rail/ #see unittest_rail.rb
30
+
31
+ next if dir =~ /^dtx/ ###endless loop in rb 1.9.2
32
+
33
+ #restrict for special tests (only for temporary use)
34
+ #~ next unless dir =~ /bibtex/
81
35
  #~ next unless dir =~ /dtx/
82
36
  #~ next unless dir =~ /includes/
83
37
  #~ next unless dir =~ /complex/
84
38
  #~ next unless dir =~ /vario/
85
- #~ next unless dir =~ /split/
86
39
  #~ next unless dir =~ /two_tasks/
87
-
88
40
  #~ next unless dir =~ /^error/
89
41
  #~ next unless dir =~ /glossaries/
90
- #~ next unless dir =~ /rail/
42
+ #~ next unless dir =~ /ps2pdf/
91
43
 
44
+ #Define testcase
92
45
  dir.chop! #delete trailing /
93
46
  class_eval <<code
94
47
  def test_#{dir}
95
- mytest_testcase( '#{dir}')
48
+ p 'testcase #{dir}'
49
+ define_testcase( '#{dir}')
96
50
  end
97
51
  code
98
52
  }
99
- end
53
+ end
54
+
55
+ __END__
56
+ Started
57
+ ...F.rake aborted!
58
+ uninitialized constant Open3
59
+
60
+ (See full trace by running task with --trace)
61
+ F..........FF
62
+
63
+ 1) Failure:
64
+ test_error(Test_testdocument)
65
+ [c:/program files/ruby19/lib/ruby/gems/1.9.1/gems/more_unit_test-0.1.2/lib/more_unit_test/assert_equal_filecontent.rb:105:in `assert_equal_filecontent'
66
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:61:in `block (3 levels) in define_testcase'
67
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `scan'
68
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `block (2 levels) in define_testcase'
69
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `open'
70
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `block in define_testcase'
71
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `chdir'
72
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `define_testcase'
73
+ (eval):2:in `test_error']:
74
+ Testcase error/test_overview changed content.
75
+ <"\nLog-overview for testdocument.tex\n Document : 1 page, 1 error (testdocument.log)\n--- \ntestdocument.log: \n :latex_errors: \n - Undefined control sequence. [log#282]\n :output: \n - Output written on testdocument.pdf (1 pages) [log#311]\n\n========\n Detailed analyse of testdocument.log\n========\n###########\n##The following list may contain wrong line assignments\n###########\n--- \n:output: \n- Output written on testdocument.pdf (1 pages) [page0] [log#18] - []\n:latex_errors: \n- Undefined control sequence. (./testdocument.tex) [log#62] - []\n"> expected (../_expected/error_test_overview.txt) but was
76
+ <"\nLog-overview for testdocument.tex\n Document : 1 page, 1 error (testdocument.log)\n--- \ntestdocument.log: \n :latex_errors: \n - Undefined control sequence. [log#256]\n :output: \n - Output written on testdocument.pdf (1 pages) [log#279]\n\n========\n Detailed analyse of testdocument.log\n========\n###########\n##The following list may contain wrong line assignments\n###########\n--- \n:latex_errors: \n- Undefined control sequence. (./testdocument.tex) [log#56] - []\n:output: \n- Output written on testdocument.pdf (1 pages) [page0] [log#17] - []\n">.
77
+ -> Build <../_failure2011-08-23/error_test_overview.txt>.
78
+ <false> is not true.
79
+
80
+ 2) Failure:
81
+ test_glossaries(Test_testdocument)
82
+ [c:/program files/ruby19/lib/ruby/gems/1.9.1/gems/more_unit_test-0.1.2/lib/more_unit_test/assert_equal_filecontent.rb:105:in `assert_equal_filecontent'
83
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:61:in `block (3 levels) in define_testcase'
84
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `scan'
85
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `block (2 levels) in define_testcase'
86
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `open'
87
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `block in define_testcase'
88
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `chdir'
89
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `define_testcase'
90
+ (eval):2:in `test_glossaries']:
91
+ Testcase glossaries/test changed content.
92
+ <"\n INFO sample: StartLaTeXRunner for sample.tex\n INFO sample: Excute pdflatex -interaction=batchmode sample.tex\n INFO sample: Rerun necessary (aux-file changed)\n INFO sample: Call target sample.gls (true)\n INFO sample: Prepare glossaries [\"main\", \"acronym\"]\n INFO sample: Excute pdflatex -interaction=batchmode sample.tex\n INFO sample: Rerun necessary (aux-file changed)\n INFO sample: Call target sample.gls (true)\n INFO sample: Excute pdflatex -interaction=batchmode sample.tex\n INFO sample: Call target sample.gls (true)\n INFO sample: TeX-run stopped after 3 runs\n"> expected (../_expected/glossaries_test.txt) but was
93
+ <"\n INFO sample: StartLaTeXRunner for sample.tex\n INFO sample: Excute pdflatex -interaction=batchmode sample.tex\n INFO sample: Rerun necessary (aux-file changed)\n INFO sample: Call target sample.gls (true)\n INFO sample: Prepare glossaries [\"main\", \"acronym\"]\n">.
94
+ -> Build <../_failure2011-08-23/glossaries_test.txt>.
95
+ <false> is not true.
96
+
97
+ 3) Failure:
98
+ test_varioref(Test_testdocument)
99
+ [c:/program files/ruby19/lib/ruby/gems/1.9.1/gems/more_unit_test-0.1.2/lib/more_unit_test/assert_equal_filecontent.rb:105:in `assert_equal_filecontent'
100
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:61:in `block (3 levels) in define_testcase'
101
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `scan'
102
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `block (2 levels) in define_testcase'
103
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `open'
104
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `block in define_testcase'
105
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `chdir'
106
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `define_testcase'
107
+ (eval):2:in `test_varioref']:
108
+ Testcase varioref/test_ignore_error changed content.
109
+ <"\n INFO LaTeXRunner: Clean: delete helpfiles [\"testdocument.aux\", \"testdocument.log\", \"testdocument.out\"]\n INFO LaTeXRunner: Clobber: delete helpfiles [\"testdocument.aux\", \"testdocument.log\", \"testdocument.out\", \"testdocument.pdf\"]\n INFO testdocument: StartLaTeXRunner for testdocument.tex\n INFO testdocument: Excute pdflatex -interaction=batchmode testdocument.tex\n INFO testdocument: Rerun necessary (aux-file changed)\n INFO testdocument: Excute pdflatex -interaction=batchmode testdocument.tex\nFATAL testdocument: There where pdflatex errors. See testdocument.log for details\n INFO testdocument: TeX-run stopped after 2 runs\nStatistic for testdocument:\n Document : 2 pages, 1 error (testdocument.log)\n"> expected (../_expected/varioref_test_ignore_error.txt) but was
110
+ <"\n INFO LaTeXRunner: Clean: delete helpfiles [\"testdocument.aux\", \"testdocument.log\", \"testdocument.out\"]\n INFO LaTeXRunner: Clobber: delete helpfiles [\"testdocument.aux\", \"testdocument.log\", \"testdocument.out\", \"testdocument.pdf\"]\n INFO testdocument: StartLaTeXRunner for testdocument.tex\n INFO testdocument: Excute pdflatex -interaction=batchmode testdocument.tex\n INFO testdocument: Rerun necessary (aux-file changed)\n INFO testdocument: Excute pdflatex -interaction=batchmode testdocument.tex\nFATAL testdocument: There where pdflatex errors. See testdocument.log for details\n INFO testdocument: TeX-run stopped after 2 runs\nStatistic for testdocument:\n Document : 2 pages, 1 error, 1 warning (testdocument.log)\n">.
111
+ -> Build <../_failure2011-08-23/varioref_test_ignore_error.txt>.
112
+ <false> is not true.
113
+
114
+ 4) Failure:
115
+ test_z_complex(Test_testdocument)
116
+ [c:/program files/ruby19/lib/ruby/gems/1.9.1/gems/more_unit_test-0.1.2/lib/more_unit_test/assert_equal_filecontent.rb:105:in `assert_equal_filecontent'
117
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:61:in `block (3 levels) in define_testcase'
118
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `scan'
119
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:46:in `block (2 levels) in define_testcase'
120
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `open'
121
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:42:in `block in define_testcase'
122
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `chdir'
123
+ C:/usr/script/rake4latex/test/rake4latex_testhelper.rb:31:in `define_testcase'
124
+ (eval):2:in `test_z_complex']:
125
+ Testcase z_complex/test_overview changed content.
126
+ <"\nLog-overview for testdocument.tex\n Document : 9 pages, 4 warnings (testdocument.log)\n Bibliography: Used testdocument.bib, 3 warnings (testdocument.blg)\n Index : 1 entry (testdocument-ani.ilg)\n Index : 1 entry (testdocument-veg.ilg)\n Index : 1 entry (testdocument-xxx.ilg)\n Index : 2 entries (testdocument-fru.ilg)\n Index : 3 entries (testdocument-idx.ilg)\n--- \ntestdocument.log: \n :package_warnings: \n minitoc(hints): \n - W0030 [log#373]\n - W0023 [log#378]\n - W0039 [log#383]\n - W0023 [log#388]\n - W0024 [log#449]\n :latex_warnings: \n - No \\author given. [log#397]\n - Citation `irgendwas' on page 5 undefined on input line 57. [log#428]\n - There were undefined references. [log#463]\n :output: \n - Output written on testdocument.pdf (9 pages) [log#481]\ntestdocument.blg: \n :source_information: \n - Database file testdocument.bib used\n :warnings: \n - string name \"dtk\" is undefined\n - Databaseentry irgendwas missing\n - empty journal in dtk00.4:lickert:blindtext\ntestdocument-ani.ilg: \n :source_information: \n - \"Input file: testdocument-ani.idx.\"\n - \"Entries accepted: 1\"\n - \"Entries rejected: 0\"\ntestdocument-fru.ilg: \n :source_information: \n - \"Input file: testdocument-fru.idx.\"\n - \"Entries accepted: 2\"\n - \"Entries rejected: 0\"\ntestdocument-idx.ilg: \n :source_information: \n - \"Input file: testdocument-idx.idx.\"\n - \"Entries accepted: 3\"\n - \"Entries rejected: 0\"\ntestdocument-veg.ilg: \n :source_information: \n - \"Input file: testdocument-veg.idx.\"\n - \"Entries accepted: 1\"\n - \"Entries rejected: 0\"\ntestdocument-xxx.ilg: \n :source_information: \n - \"Input file: testdocument-xxx.idx.\"\n - \"Entries accepted: 1\"\n - \"Entries rejected: 0\"\n\n========\n Detailed analyse of testdocument.log\n========\n###########\n##The following list may contain wrong line assignments\n###########\n--- \n:output: \n- Output written on testdocument.pdf (9 pages) [page0] [log#23] - []\n:package_warnings: \n minitoc(hints): \n - W0030 (./testdocument.tex) [log#96] - []\n - W0023 (./testdocument.tex) [log#101] - []\n - W0039 (./testdocument.tex) [log#106] - []\n - W0023 (./testdocument.tex) [log#111] - []\n - W0024 (./testdocument.tex) [log#163] - []\n:latex_warnings: \n- No \\author given. (./testdocument.tex) [log#120] - []\n- Citation `irgendwas' on page 5 undefined on input line 57. (./testdocument.tex) [log#150] - []\n- There were undefined references. (./testdocument.tex) [log#177] - []\n"> expected (../_expected/z_complex_test_overview.txt) but was
127
+ <"\nLog-overview for testdocument.tex\n Document : 9 pages, 4 warnings (testdocument.log)\n Bibliography: Used testdocument.bib, 3 warnings (testdocument.blg)\n Index : 1 entry (testdocument-ani.ilg)\n Index : 1 entry (testdocument-veg.ilg)\n Index : 1 entry (testdocument-xxx.ilg)\n Index : 2 entries (testdocument-fru.ilg)\n Index : 3 entries (testdocument-idx.ilg)\n--- \ntestdocument-ani.ilg: \n :source_information: \n - \"Input file: testdocument-ani.idx.\"\n - \"Entries accepted: 1\"\n - \"Entries rejected: 0\"\ntestdocument-fru.ilg: \n :source_information: \n - \"Input file: testdocument-fru.idx.\"\n - \"Entries accepted: 2\"\n - \"Entries rejected: 0\"\ntestdocument-idx.ilg: \n :source_information: \n - \"Input file: testdocument-idx.idx.\"\n - \"Entries accepted: 3\"\n - \"Entries rejected: 0\"\ntestdocument-veg.ilg: \n :source_information: \n - \"Input file: testdocument-veg.idx.\"\n - \"Entries accepted: 1\"\n - \"Entries rejected: 0\"\ntestdocument-xxx.ilg: \n :source_information: \n - \"Input file: testdocument-xxx.idx.\"\n - \"Entries accepted: 1\"\n - \"Entries rejected: 0\"\ntestdocument.blg: \n :source_information: \n - Database file testdocument.bib used\n :warnings: \n - string name \"dtk\" is undefined\n - Databaseentry irgendwas missing\n - empty journal in dtk00.4:lickert:blindtext\ntestdocument.log: \n :latex_warnings: \n - No \\author given. [log#371]\n - Citation `irgendwas' on page 5 undefined on input line 57. [log#418]\n - There were undefined references. [log#447]\n :output: \n - Output written on testdocument.pdf (9 pages) [log#465]\n :package_warnings: \n minitoc(hints): \n - W0030 [log#347]\n - W0023 [log#352]\n - W0039 [log#357]\n - W0023 [log#362]\n - W0024 [log#441]\n\n========\n Detailed analyse of testdocument.log\n========\n###########\n##The following list may contain wrong line assignments\n###########\n--- \n:latex_warnings: \n- No \\author given. (./testdocument.tex) [log#114] - []\n- Citation `irgendwas' on page 5 undefined on input line 57. (./testdocument.tex) [log#145] - []\n- There were undefined references. (./testdocument.tex) [log#166] - []\n:output: \n- Output written on testdocument.pdf (9 pages) [page0] [log#22] - []\n:package_warnings: \n minitoc(hints): \n - W0030 (./testdocument.tex) [log#90] - []\n - W0023 (./testdocument.tex) [log#95] - []\n - W0039 (./testdocument.tex) [log#100] - []\n - W0023 (./testdocument.tex) [log#105] - []\n - W0024 (./testdocument.tex) [log#160] - []\n">.
128
+ -> Build <../_failure2011-08-23/z_complex_test_overview.txt>.
129
+ <false> is not true.
130
+
131
+ Finished in 1019.21875 seconds.
132
+
@@ -1,3 +1,4 @@
1
+ gem 'more_unit_test', '>0.0.2'
1
2
  gem 'test-unit'
2
3
  require 'test/unit'
3
4
  #~ require 'assert_equal_filecontent'
@@ -9,7 +10,7 @@ else
9
10
  end
10
11
  require 'rake4latex'
11
12
  include Rake4LaTeX
12
-
13
+ require_relative('rake4latex_testhelper')
13
14
 
14
15
  class Test_Splitindex < Test::Unit::TestCase
15
16
  def self.startup
@@ -72,7 +73,12 @@ end #Test_Splitindex
72
73
 
73
74
 
74
75
  class Test_analyse < Test::Unit::TestCase
75
- def test_splitindex()
76
+
77
+ include Rake4latex_testhelper #get define_testcase
78
+
79
+ def test_texfile_splitindex()
80
+ assert_true(Dir.exist?('splitindex'))
81
+
76
82
  Dir.chdir('splitindex'){
77
83
  testfile = TeXfile.new('testdocument.tex')
78
84
  assert_equal( ['testdocument.tex'], testfile.tree )
@@ -80,7 +86,12 @@ class Test_analyse < Test::Unit::TestCase
80
86
  "ani"=>"[Index of Animals]",
81
87
  "idx"=>"[GeneralIndex]",
82
88
  "fru"=>"[Index of Fruits]"},
83
- testfile.splitindex )
89
+ testfile.splitindex, 'indices not found' )
84
90
  }
85
91
  end
92
+
93
+ def test_splitindex
94
+ define_testcase( 'splitindex')
95
+ end
96
+
86
97
  end
metadata CHANGED
@@ -1,116 +1,94 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rake4latex
3
- version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 1
9
- - 3
10
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.5
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Knut Lickert
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-08-19 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
22
14
  name: rake
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
33
20
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: log4r
37
21
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: log4r
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1'
47
34
  type: :runtime
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: knut_tools
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 3
58
- segments:
59
- - 0
60
- version: "0"
61
- type: :runtime
62
- version_requirements: *id003
63
- - !ruby/object:Gem::Dependency
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1'
41
+ - !ruby/object:Gem::Dependency
64
42
  name: more_unit_test
65
- prerelease: false
66
- requirement: &id004 !ruby/object:Gem::Requirement
67
- none: false
68
- requirements:
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
69
48
  - - ">"
70
- - !ruby/object:Gem::Version
71
- hash: 27
72
- segments:
73
- - 0
74
- - 0
75
- - 2
49
+ - !ruby/object:Gem::Version
76
50
  version: 0.0.2
77
51
  type: :development
78
- version_requirements: *id004
79
- description: |
80
- Rake4LaTeX contains rake-tasks to translate (La)TeX-files
81
- as often as needed. Necessary makeindex or bibliography-calls are done,
82
- support of splitindex, gloss, rail.
83
- Support of LaTeX (and dvips + ps2pdf), pdfLaTeX, XeLaTeX, LuaLaTeX.
84
-
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ - - ">"
59
+ - !ruby/object:Gem::Version
60
+ version: 0.0.2
61
+ description: "Rake4LaTeX contains rake-tasks to translate (La)TeX-files \nas often
62
+ as needed. Necessary makeindex or bibliography-calls are done, \nsupport of splitindex,
63
+ gloss, rail.\nSupport of LaTeX (and dvips + ps2pdf), pdfLaTeX, XeLaTeX, LuaLaTeX.\n"
85
64
  email: knut@lickert.net
86
- executables:
87
- - call_rake4latex.rb
65
+ executables:
66
+ - rake4latex.rb
88
67
  extensions: []
89
-
90
68
  extra_rdoc_files: []
91
-
92
- files:
93
- - bin/call_rake4latex.rb
69
+ files:
70
+ - bin/rake4latex.rb
71
+ - bin/readme_rake4latex.txt
94
72
  - lib/rake4latex.rb
95
- - lib/rake4latex_dtx.rb
96
- - lib/rake4latex_dvipdfm.rb
97
- - lib/rake4latex_lualatex.rb
98
- - lib/rake4latex_pdflatex.rb
99
- - lib/rake4latex_ps2pdf.rb
100
- - lib/rake4latex_xelatex.rb
101
73
  - lib/rake4latex/analyse_texfile.rb
102
74
  - lib/rake4latex/base.rb
103
75
  - lib/rake4latex/clean.rb
76
+ - lib/rake4latex/glossaries.rb
104
77
  - lib/rake4latex/latexrunner.rb
105
- - lib/rake4latex/splitindex.rb
78
+ - lib/rake4latex/rail.rb
79
+ - lib/rake4latex/rake4latex.yaml
106
80
  - lib/rake4latex/rules.rb
81
+ - lib/rake4latex/splitindex.rb
107
82
  - lib/rake4latex/tex_statistic.rb
108
- - lib/rake4latex/rake4latex.yaml
109
- - lib/rake4latex/glossaries.rb
110
- - readme.txt
111
- - readme.html
112
- - bin/readme_call_rake4latex.txt
83
+ - lib/rake4latex_dtx.rb
84
+ - lib/rake4latex_dvipdfm.rb
85
+ - lib/rake4latex_lualatex.rb
86
+ - lib/rake4latex_pdflatex.rb
87
+ - lib/rake4latex_ps2pdf.rb
88
+ - lib/rake4latex_xelatex.rb
113
89
  - license.txt
90
+ - readme.html
91
+ - readme.txt
114
92
  - test/_expected/bibtex_test.txt
115
93
  - test/_expected/bibtex_test_bib.txt
116
94
  - test/_expected/bibtex_test_build_rakefile.txt
@@ -178,14 +156,17 @@ files:
178
156
  - test/rail/testrail.tex
179
157
  - test/rail_error/rakefile.rb
180
158
  - test/rail_error/testrail_error.tex
159
+ - test/rake4latex_testhelper.rb
181
160
  - test/splitindex/rakefile.rb
182
161
  - test/splitindex/testdocument.tex
183
162
  - test/supertabular/rakefile.rb
184
163
  - test/supertabular/testdocument.tex
164
+ - test/test_extract.rb
185
165
  - test/testdocument.tex
186
166
  - test/two_tasks/rakefile.rb
187
167
  - test/two_tasks/testdocument_1.tex
188
168
  - test/two_tasks/testdocument_2.tex
169
+ - test/unittest_rail.rb
189
170
  - test/unittest_rake4latex.rb
190
171
  - test/unittest_rake4latex_testcases.rb
191
172
  - test/unittest_splitindex.rb
@@ -194,42 +175,34 @@ files:
194
175
  - test/z_complex/rakefile.rb
195
176
  - test/z_complex/testdocument.bib
196
177
  - test/z_complex/testdocument.tex
197
- has_rdoc: true
198
178
  homepage: http://gems.rubypla.net/
199
- licenses: []
200
-
179
+ licenses:
180
+ - LPPL-1.3c
181
+ metadata: {}
201
182
  post_install_message:
202
- rdoc_options:
203
- - --main
183
+ rdoc_options:
184
+ - "--main"
204
185
  - lib/rake4latex.rb
205
- require_paths:
186
+ require_paths:
206
187
  - lib
207
- required_ruby_version: !ruby/object:Gem::Requirement
208
- none: false
209
- requirements:
188
+ required_ruby_version: !ruby/object:Gem::Requirement
189
+ requirements:
210
190
  - - ">="
211
- - !ruby/object:Gem::Version
212
- hash: 3
213
- segments:
214
- - 0
215
- version: "0"
216
- required_rubygems_version: !ruby/object:Gem::Requirement
217
- none: false
218
- requirements:
191
+ - !ruby/object:Gem::Version
192
+ version: '0'
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
+ requirements:
219
195
  - - ">="
220
- - !ruby/object:Gem::Version
221
- hash: 3
222
- segments:
223
- - 0
224
- version: "0"
225
- requirements:
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ requirements:
226
199
  - A (La)TeX-system with bibTeX, makeindex...
227
200
  rubyforge_project: rake4latex
228
- rubygems_version: 1.3.7
201
+ rubygems_version: 2.4.5
229
202
  signing_key:
230
- specification_version: 3
203
+ specification_version: 4
231
204
  summary: Rake4LaTeX contains rake-tasks to compile TeX-Documents.
232
- test_files:
205
+ test_files:
233
206
  - test/_expected/bibtex_test.txt
234
207
  - test/_expected/bibtex_test_bib.txt
235
208
  - test/_expected/bibtex_test_build_rakefile.txt
@@ -297,20 +270,19 @@ test_files:
297
270
  - test/rail/testrail.tex
298
271
  - test/rail_error/rakefile.rb
299
272
  - test/rail_error/testrail_error.tex
273
+ - test/rake4latex_testhelper.rb
300
274
  - test/splitindex/rakefile.rb
301
275
  - test/splitindex/testdocument.tex
302
276
  - test/supertabular/rakefile.rb
303
277
  - test/supertabular/testdocument.tex
304
- - test/testdocument.tex
278
+ - test/test_extract.rb
305
279
  - test/testdocument.tex
306
280
  - test/two_tasks/rakefile.rb
307
281
  - test/two_tasks/testdocument_1.tex
308
282
  - test/two_tasks/testdocument_2.tex
309
- - test/unittest_rake4latex.rb
283
+ - test/unittest_rail.rb
310
284
  - test/unittest_rake4latex.rb
311
285
  - test/unittest_rake4latex_testcases.rb
312
- - test/unittest_rake4latex_testcases.rb
313
- - test/unittest_splitindex.rb
314
286
  - test/unittest_splitindex.rb
315
287
  - test/varioref/rakefile.rb
316
288
  - test/varioref/testdocument.tex