bookmaker 0.7.0.pre3 → 0.7.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bookmaker.gemspec +2 -2
- data/lib/bookmaker/parser/pdf.rb +2 -2
- data/lib/bookmaker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 038efe8d52c7108fbc947a4c61109f180d833019
|
4
|
+
data.tar.gz: 88a7db1081d77411b1f3609bf6b55ff3f0b1d023
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a060be92fe42742d1c160781b7b2fe7bff6363d6b935d540645a03c39e44b9bf5fa033c17e1dae83fb78c36521a4d39c1551d3ccbbfa3cbf4e54148456a2a5a3
|
7
|
+
data.tar.gz: 4fb16940335b13d492bf44ff5fdd75ad883a73abee8a65324ea7eb7939e25c6e05666daf29d58a6a8a24f6cf525eaa1c573f94c69d6a3a2827c64bdc2f2590b4
|
data/bookmaker.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: bookmaker 0.7.0.
|
5
|
+
# stub: bookmaker 0.7.0.pre4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bookmaker"
|
9
|
-
s.version = "0.7.0.
|
9
|
+
s.version = "0.7.0.pre4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
data/lib/bookmaker/parser/pdf.rb
CHANGED
@@ -21,7 +21,7 @@ module Bookmaker
|
|
21
21
|
puts "-- Exporting PDF"
|
22
22
|
locals = config.merge({ :contents => parse_layout(content) })
|
23
23
|
locals['copyright'].gsub!("(C)", "\\copyright{}")
|
24
|
-
output = render_template(root_dir.join("
|
24
|
+
output = render_template(root_dir.join("_templates/pdf/layout.erb"), locals)
|
25
25
|
File.open(root_dir.join(tex_file), 'w').write(output)
|
26
26
|
puts " - Pass 1"
|
27
27
|
spawn_command ["xelatex", tex_file.to_s,]
|
@@ -36,7 +36,7 @@ module Bookmaker
|
|
36
36
|
end
|
37
37
|
|
38
38
|
spawn_command ["rm *.glo *.idx *.log *.out *.toc *aux *ist"]
|
39
|
-
spawn_command ["mv #{name}.pdf
|
39
|
+
spawn_command ["mv #{name}.pdf _output/#{name}.pdf"]
|
40
40
|
true
|
41
41
|
rescue Exception
|
42
42
|
p $!, $@
|
data/lib/bookmaker/version.rb
CHANGED