polytexnic 1.7.3 → 1.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ae9208f70f3f0a06275683bf047bc73870168cb5501b2726dbbadd8b9c55ceb
4
- data.tar.gz: c712dda3116e33168f71e70fcc19411b66f8c07ce9ae5bbd026dfd1b5b26a8e3
3
+ metadata.gz: fcd4888489ddc66c8e377cffb57e9865f661ee8437edec7392698deab1bcba87
4
+ data.tar.gz: d9356871b2beaed1fe139e4d17501ccf9bac8d46fee9ef062420f90f3545597a
5
5
  SHA512:
6
- metadata.gz: bdad58dffb6636ae21dc2a929a456ed005de8000d08f74b69c12bc5b269805b1c7f20ec026507bc70ed8b5a1ade086db559c42c67a8077c0fd50b770b329d8b0
7
- data.tar.gz: 9f900c12dc794ffa606f9beb8802102369c76f4a8ef1ba82d2902f03f0ed624d2b3ac4d3bb836aae2a5ca0f2223a77a543cd5efe93e57137d8385c3ffb59117c
6
+ metadata.gz: 94ee307f00892e3b5ae2b7c40641c75cb721e9f900e25fab5df44430dcdf647188da43eb54a553fd31d94454ba12081c4330a495f99270d640f11f23fd0f038e
7
+ data.tar.gz: 3bc450cfd6a536d82c3490afc0b5fb6dd0c092c1cb945ce15d1e3e6e3588d573e32cf3fd889a346714d7f8a84cfa186779de6f0a77cd6bbb2b4eb3daeba8f24a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polytexnic (1.7.3)
4
+ polytexnic (1.7.4)
5
5
  json (~> 2.3.0)
6
6
  kramdown (>= 2.0, < 3.0)
7
7
  msgpack (~> 1.2.0)
@@ -38,7 +38,7 @@ GEM
38
38
  guard-compat (~> 1.1)
39
39
  rspec (>= 2.99.0, < 4.0)
40
40
  json (2.3.1)
41
- kramdown (2.3.2)
41
+ kramdown (2.4.0)
42
42
  rexml
43
43
  listen (3.7.1)
44
44
  rb-fsevent (~> 0.10, >= 0.10.3)
@@ -51,7 +51,9 @@ GEM
51
51
  msgpack (1.2.10)
52
52
  multi_json (1.15.0)
53
53
  nenv (0.3.0)
54
- nokogiri (1.13.6-x86_64-darwin)
54
+ nokogiri (1.13.8-arm64-darwin)
55
+ racc (~> 1.4)
56
+ nokogiri (1.13.8-x86_64-darwin)
55
57
  racc (~> 1.4)
56
58
  notiffany (0.1.3)
57
59
  nenv (~> 0.1)
@@ -88,6 +90,7 @@ GEM
88
90
  tins (0.13.2)
89
91
 
90
92
  PLATFORMS
93
+ arm64-darwin-21
91
94
  x86_64-darwin-19
92
95
  x86_64-darwin-21
93
96
 
data/arm64-darwin21 ADDED
Binary file
@@ -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.3"
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
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.7.3
4
+ version: 1.7.4
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: 2022-05-19 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