polytexnic 1.7.1 → 1.7.4

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
  SHA256:
3
- metadata.gz: 57e941e13dd5f01d451a691ddfe12b2c0aec374936b6d3ab7b3e87bbb40b0155
4
- data.tar.gz: 8713119cd89cb0a3ed59c89fe75fef408b4e529b511759605fe10f37906e59bb
3
+ metadata.gz: fcd4888489ddc66c8e377cffb57e9865f661ee8437edec7392698deab1bcba87
4
+ data.tar.gz: d9356871b2beaed1fe139e4d17501ccf9bac8d46fee9ef062420f90f3545597a
5
5
  SHA512:
6
- metadata.gz: 9745a0ed12d9980abd3155373e12a8d34547346d75685a0c2e3ae2489a6a774e9e5804ad57eeebb545bc4a8bfe267704a069fc86995585cfa9907d4f78f96e8b
7
- data.tar.gz: 2fa3da2933f7a818ffcb4e7ba34737b422ea26e4362fbf3263f0c2c3a57f986bc189b6af0b873e4f5ee5429bd0f22e6972b5af8656e546cf533c09e9b157fa81
6
+ metadata.gz: 94ee307f00892e3b5ae2b7c40641c75cb721e9f900e25fab5df44430dcdf647188da43eb54a553fd31d94454ba12081c4330a495f99270d640f11f23fd0f038e
7
+ data.tar.gz: 3bc450cfd6a536d82c3490afc0b5fb6dd0c092c1cb945ce15d1e3e6e3588d573e32cf3fd889a346714d7f8a84cfa186779de6f0a77cd6bbb2b4eb3daeba8f24a
data/Gemfile CHANGED
@@ -16,7 +16,6 @@ Encoding.default_internal = Encoding::UTF_8
16
16
  gemspec
17
17
 
18
18
  group :test do
19
- gem 'debugger2' unless RUBY_VERSION < "2.0"
20
19
  gem 'coveralls', require: false
21
20
  gem 'growl'
22
21
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polytexnic (1.7.1)
4
+ polytexnic (1.7.4)
5
5
  json (~> 2.3.0)
6
6
  kramdown (>= 2.0, < 3.0)
7
7
  msgpack (~> 1.2.0)
@@ -12,17 +12,12 @@ GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
14
  coderay (1.1.3)
15
- columnize (0.9.0)
16
15
  coveralls (0.7.2)
17
16
  multi_json (~> 1.3)
18
17
  rest-client (= 1.6.7)
19
18
  simplecov (>= 0.7)
20
19
  term-ansicolor (= 1.2.2)
21
20
  thor (= 0.18.1)
22
- debugger-linecache (1.2.0)
23
- debugger2 (1.0.0.beta2)
24
- columnize (>= 0.3.1)
25
- debugger-linecache (~> 1.2.0)
26
21
  diff-lcs (1.5.0)
27
22
  docile (1.1.5)
28
23
  ffi (1.15.5)
@@ -43,7 +38,7 @@ GEM
43
38
  guard-compat (~> 1.1)
44
39
  rspec (>= 2.99.0, < 4.0)
45
40
  json (2.3.1)
46
- kramdown (2.3.1)
41
+ kramdown (2.4.0)
47
42
  rexml
48
43
  listen (3.7.1)
49
44
  rb-fsevent (~> 0.10, >= 0.10.3)
@@ -56,7 +51,9 @@ GEM
56
51
  msgpack (1.2.10)
57
52
  multi_json (1.15.0)
58
53
  nenv (0.3.0)
59
- nokogiri (1.13.2-x86_64-darwin)
54
+ nokogiri (1.13.8-arm64-darwin)
55
+ racc (~> 1.4)
56
+ nokogiri (1.13.8-x86_64-darwin)
60
57
  racc (~> 1.4)
61
58
  notiffany (0.1.3)
62
59
  nenv (~> 0.1)
@@ -93,12 +90,12 @@ GEM
93
90
  tins (0.13.2)
94
91
 
95
92
  PLATFORMS
93
+ arm64-darwin-21
96
94
  x86_64-darwin-19
97
- x86_64-darwin-20
95
+ x86_64-darwin-21
98
96
 
99
97
  DEPENDENCIES
100
98
  coveralls
101
- debugger2
102
99
  growl
103
100
  guard-rspec
104
101
  polytexnic!
@@ -107,4 +104,4 @@ DEPENDENCIES
107
104
  simplecov (~> 0.15.1)
108
105
 
109
106
  BUNDLED WITH
110
- 2.2.17
107
+ 2.3.10
data/arm64-darwin21 ADDED
Binary file
@@ -585,7 +585,7 @@ module Polytexnic
585
585
  node['id'] = pipeline_label(label)
586
586
  label.remove
587
587
  end
588
- clean_node node, %w{data-label place width}
588
+ clean_node node, %w{data-label place width height}
589
589
  end
590
590
  doc.xpath('//table').each do |node|
591
591
  if unexpected = node.at_css('unexpected')
@@ -10,7 +10,9 @@ module Polytexnic
10
10
  def tralics
11
11
  executable = `which tralics`.chomp
12
12
  return executable unless executable.empty?
13
- filename = if os_x_newer?
13
+ filename = if apple_silicon?
14
+ 'tralics-apple-silicon'
15
+ elsif os_x_newer?
14
16
  'tralics-os-x-newer'
15
17
  elsif os_x_older?
16
18
  'tralics-os-x-older'
@@ -44,6 +46,11 @@ module Polytexnic
44
46
  end
45
47
  end
46
48
 
49
+ # Returns true for Apple Silicon.
50
+ def apple_silicon?
51
+ RUBY_PLATFORM.match(/arm64/)
52
+ end
53
+
47
54
  # Returns true for OS X Mountain Lion (10.8) and later.
48
55
  def os_x_newer?
49
56
  os_x? && !os_x_older?
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.4"
3
3
  end
File without changes
@@ -97,4 +97,4 @@ class String
97
97
  stripped_result = result.split("\n").map(&:strip).join("\n")
98
98
  stripped_result.gsub("\n", ' ').gsub(/[ \t]{2,}/, ' ')
99
99
  end
100
- end
100
+ end
@@ -141,12 +141,12 @@ describe 'Polytexnic::Pipeline#to_html' do
141
141
  \chapter{The chapter}
142
142
 
143
143
  \begin{figure}
144
- \includegraphics{foo.png}
144
+ \includegraphics[height="5in"]{foo.png}
145
145
  \caption{This is a \emph{caption} with $x$.}
146
146
  \end{figure}
147
147
 
148
148
  \begin{figure}
149
- \includegraphics{bar.png}
149
+ \includegraphics[width="4in"]{bar.png}
150
150
  \caption{This is another caption.}
151
151
  \end{figure}
152
152
  EOS
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polytexnic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
8
8
  - Nick Merwin
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-02-22 00:00:00.000000000 Z
12
+ date: 2022-08-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -226,6 +226,7 @@ files:
226
226
  - LICENSE.md
227
227
  - README.md
228
228
  - Rakefile
229
+ - arm64-darwin21
229
230
  - bin/polytexnic
230
231
  - lib/polytexnic.rb
231
232
  - lib/polytexnic/code_inclusion.rb
@@ -243,6 +244,7 @@ files:
243
244
  - notes/pandoc.md
244
245
  - polytexnic.gemspec
245
246
  - polytexnic_commands.sty
247
+ - precompiled_binaries/tralics-apple-silicon
246
248
  - precompiled_binaries/tralics-armv7l-linux-eabihf
247
249
  - precompiled_binaries/tralics-i686-linux
248
250
  - precompiled_binaries/tralics-os-x-newer
@@ -293,7 +295,7 @@ homepage: https://github.com/softcover/polytexnic
293
295
  licenses:
294
296
  - MIT
295
297
  metadata: {}
296
- post_install_message:
298
+ post_install_message:
297
299
  rdoc_options: []
298
300
  require_paths:
299
301
  - lib
@@ -308,8 +310,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
310
  - !ruby/object:Gem::Version
309
311
  version: '0'
310
312
  requirements: []
311
- rubygems_version: 3.1.6
312
- signing_key:
313
+ rubygems_version: 3.3.7
314
+ signing_key:
313
315
  specification_version: 4
314
316
  summary: Convert from PolyTeX & Markdown to HTML & LaTeX
315
317
  test_files: