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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f04fe1c74528b59323dcdceedb4f2ab42eed546e
4
- data.tar.gz: 0f1971101aea1434ee769d1e788b2a68fdd658b3
3
+ metadata.gz: 4a2df43fa50a04aa19a8770e60ea9ec2b426015e
4
+ data.tar.gz: e81a69815be32543b785e56a3514e4c36647b2b2
5
5
  SHA512:
6
- metadata.gz: ebb92b98f47b6ac972556c4b04e6a61f1501efa266899061487918005a8f513a162c6b589991d755c15a3f27429b928e90c8f67c8286e53200b6c0465019d665
7
- data.tar.gz: 30c0bcb1dacaf9b90c3dd8294273288591158c04e9288edacdc6eb9d6390b1d4b4c5aa8a1f7d46543eaf72e1bb236a488e0930d1df69aeccf78650cc94d6d5db
6
+ metadata.gz: 9e2864c20e611c04ba188263d0c915d55d8ae0967a83b4ea9ffd5bd00f12bcc005a0807861db6f5165a6f5cbfa11aaf065575e82a06e9e5c393559fd0261658d
7
+ data.tar.gz: 2f3c38287429bbecd228b3d11aba90a8489540bf567bfc986f594c270d08df0671327823ec4364ad3290463cc986d2c4935a3d5b64607ac6df9bab423bba81bd
File without changes
@@ -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}
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
@@ -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.0
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: 2013-12-31 00:00:00.000000000 Z
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