polytexnic 1.3.4 → 1.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6d64b5f799c855860e08cf07769e7f32addfd07
4
- data.tar.gz: d6514a45e3a4cfafa97c11ba213c1cf9512125a5
3
+ metadata.gz: 293fcbd01f96a6b9aff727e119a30ef79bad2587
4
+ data.tar.gz: 99566a9937c51b7f13a10a4665aa958eae03f708
5
5
  SHA512:
6
- metadata.gz: b1fe2bd2840e06a7a21a26af7b41d700bc5f319dd922bab044f1c95b4efdeb3d667b65744486cf4dc520b242a6f32e8f5ec1cfe355fa9fbc237373b55ca2f2bb
7
- data.tar.gz: a19fbd1631ac5c92b368e0a97ef9d4329743340a0bb8b80fb1ae253d05b3ecd625764db2a21d9c7345bbfa767049f66b7a3bb13976659f34be0194fe566e509f
6
+ metadata.gz: 1bd94faa5106c6c6756d0946f047af81517c6541aa57adbaaca9e3152394b48de4d35a5fe8fcba3d340c6253083831875fe0a32f8535d5aaa5a024994c416555
7
+ data.tar.gz: 37df35e091bb4e355199644a819266d8dc06ffdf3b67369360726e44e68529ad1d81e0e353291f51327bc0e3815bb77a9d61e56ad1205502972c9e8a374a47b9
@@ -54,7 +54,9 @@ module Polytexnic
54
54
  else
55
55
  default_language_labels.merge(labels)
56
56
  end
57
- @highlight_cache_filename = '.highlight_cache'
57
+ tempdir = 'tmp'
58
+ FileUtils.mkdir(tempdir) unless File.directory?(tempdir)
59
+ @highlight_cache_filename = File.join(tempdir, '.highlight_cache')
58
60
  if File.exist?(@highlight_cache_filename)
59
61
  content = File.read(@highlight_cache_filename)
60
62
  .force_encoding('ASCII-8BIT')
@@ -31,6 +31,7 @@ module Polytexnic
31
31
  headings(doc)
32
32
  sout(doc)
33
33
  kode(doc)
34
+ # return '2'
34
35
  coloredtext(doc)
35
36
  filepath(doc)
36
37
  backslash_break(doc)
@@ -45,17 +46,20 @@ module Polytexnic
45
46
  codelistings(doc)
46
47
  asides(doc)
47
48
  make_cross_references(doc)
49
+ # return '3'
48
50
  hrefs(doc)
49
51
  graphics_and_figures(doc)
50
52
  images_and_imageboxes(doc)
51
53
  tables(doc)
52
54
  math(doc)
53
55
  frontmatter(doc)
56
+ # return '4'
54
57
  mainmatter(doc)
55
58
  footnotes(doc)
56
59
  table_of_contents(doc)
57
60
  add_noindent(doc)
58
61
  convert_to_html(doc)
62
+ # return '5'
59
63
  end
60
64
 
61
65
  private
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "1.3.4"
2
+ VERSION = "1.3.5"
3
3
  end
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
 
4
4
  describe Polytexnic::Pipeline do
5
5
  before(:all) do
6
- FileUtils.rm('.highlight_cache') if File.exist?('.highlight_cache')
6
+ FileUtils.rm('tmp/.highlight_cache') if File.exist?('tmp/.highlight_cache')
7
7
  end
8
8
  subject(:processed_text) { Polytexnic::Pipeline.new(polytex).to_html }
9
9
 
@@ -75,7 +75,7 @@ describe Polytexnic::Pipeline do
75
75
  Polytexnic::Pipeline.new(polytex).to_html
76
76
  end
77
77
  it "should not crash" do
78
- expect(File.exist?('.highlight_cache')).to be_truthy
78
+ expect(File.exist?('tmp/.highlight_cache')).to be_truthy
79
79
  expect { Polytexnic::Pipeline.new(polytex).to_html }.not_to raise_error
80
80
  end
81
81
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polytexnic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl