polytexnic 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.pull_requests/1388802190 +0 -0
- data/lib/polytexnic/utils.rb +6 -0
- data/lib/polytexnic/version.rb +1 -1
- data/spec/to_html/core_spec.rb +17 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a2df43fa50a04aa19a8770e60ea9ec2b426015e
|
4
|
+
data.tar.gz: e81a69815be32543b785e56a3514e4c36647b2b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e2864c20e611c04ba188263d0c915d55d8ae0967a83b4ea9ffd5bd00f12bcc005a0807861db6f5165a6f5cbfa11aaf065575e82a06e9e5c393559fd0261658d
|
7
|
+
data.tar.gz: 2f3c38287429bbecd228b3d11aba90a8489540bf567bfc986f594c270d08df0671327823ec4364ad3290463cc986d2c4935a3d5b64607ac6df9bab423bba81bd
|
File without changes
|
data/lib/polytexnic/utils.rb
CHANGED
@@ -93,6 +93,12 @@ module Polytexnic
|
|
93
93
|
\newcommand{\filepath}[1]{\xmlelt{filepath}{#1}}
|
94
94
|
\newcommand{\image}[1]{\xmlelt{image}{#1}}
|
95
95
|
\newcommand{\imagebox}[1]{\xmlelt{imagebox}{#1}}
|
96
|
+
% Ignore pbox argument, just replacing with content.
|
97
|
+
\newcommand{\pbox}[2]{#2}
|
98
|
+
% Ignore some other commands.
|
99
|
+
\newcommand{\includepdf}[1]{}
|
100
|
+
\newcommand{\newunicodechar}[2]{fdsfdas}
|
101
|
+
|
96
102
|
|
97
103
|
% Code listings
|
98
104
|
\usepackage{amsthm}
|
data/lib/polytexnic/version.rb
CHANGED
data/spec/to_html/core_spec.rb
CHANGED
@@ -258,4 +258,21 @@ describe 'Polytexnic::Pipeline#to_html' do
|
|
258
258
|
it { should resemble '<p style="margin-top: 3.0pt"' }
|
259
259
|
end
|
260
260
|
end
|
261
|
+
|
262
|
+
describe "ignored commands" do
|
263
|
+
context "\\pbox" do
|
264
|
+
let(:polytex) { '\pbox{12cm}{The cumulative CPU time}' }
|
265
|
+
it { should_not include '12cm' }
|
266
|
+
end
|
267
|
+
|
268
|
+
context "\\includepdf" do
|
269
|
+
let(:polytex) { '\includepdf{images/cover.pdf}' }
|
270
|
+
it { should_not include 'images/cover.pdf' }
|
271
|
+
end
|
272
|
+
|
273
|
+
context "\\newunicodecharacter" do
|
274
|
+
let(:polytex) { '\newunicodechar{├}{\textSFviii}' }
|
275
|
+
it { should_not include '├' }
|
276
|
+
end
|
277
|
+
end
|
261
278
|
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: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Hartl
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- .pull_requests/1388112504
|
203
203
|
- .pull_requests/1388430185
|
204
204
|
- .pull_requests/1388440664
|
205
|
+
- .pull_requests/1388802190
|
205
206
|
- .rspec
|
206
207
|
- Gemfile
|
207
208
|
- Guardfile
|