polytexnic 0.8.3 → 0.8.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
  SHA1:
3
- metadata.gz: 8e73721e69c72ece6549257bb3c30295b6892992
4
- data.tar.gz: 4a6936bfdc80f5d203a261c37acf351214d6b4b0
3
+ metadata.gz: 1423a3dd422cb364805b81b3d1b895ca1fc90aa6
4
+ data.tar.gz: fb5ac1f61afa117520566b9aafb1812994551cf0
5
5
  SHA512:
6
- metadata.gz: 4e498b2a6d0c5cb8f4ab9d682541c34ea29aef319ff539516f94bc1b2508edd99f6c3a5e0298c453ce6ea4f781ee5743a16aa5d8385c1b9d6e71ed3b752fac45
7
- data.tar.gz: 336b3755b1cbbd435310dce8285cac31b17120f7ff4425288cf093cc96bf660912a298dae4585ad310b20a378eee084d50b44aaa9305c13bc463d72dbf0f8f25
6
+ metadata.gz: c3f00576f1295d4cbf3cbfbe747bf4a2eace81c013045ce124e25a4939d445ee5457f32f2c6a3eb2aa84a5650915c655f9a6af8345b9c2e37d7765bef4f71d5c
7
+ data.tar.gz: 383d565f5bb1dd3257281a8f69da2321f9506db71c4901e496726ad32ad6686c50944c2d4faa9e8a995dd03a366141799f1bbadb67f899a9d50a9e5c7c30c93a
@@ -8,8 +8,10 @@ module Polytexnic
8
8
 
9
9
  # Returns the executable for the Tralics LaTeX-to-XML converter.
10
10
  def tralics
11
- filename = if os_x?
12
- 'tralics-os-x'
11
+ filename = if os_x_newer?
12
+ 'tralics-os-x-newer'
13
+ elsif os_x_older?
14
+ 'tralics-os-x-older'
13
15
  elsif linux?
14
16
  'tralics-linux'
15
17
  else
@@ -19,6 +21,16 @@ module Polytexnic
19
21
  File.join(project_root, 'precompiled_binaries', filename)
20
22
  end
21
23
 
24
+ # Returns true for OS X Mountain Lion (10.8) and later.
25
+ def os_x_newer?
26
+ os_x? && !os_x_older?
27
+ end
28
+
29
+ # Returns true for OS X Lion (10.7) and earlier.
30
+ def os_x_older?
31
+ os_x? && RUBY_PLATFORM.include?('11')
32
+ end
33
+
22
34
  # Returns true if platform is OS X.
23
35
  def os_x?
24
36
  RUBY_PLATFORM.match(/darwin/)
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "0.8.3"
2
+ VERSION = "0.8.4"
3
3
  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.3
4
+ version: 0.8.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: 2014-02-01 00:00:00.000000000 Z
12
+ date: 2014-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -226,7 +226,8 @@ files:
226
226
  - polytexnic.gemspec
227
227
  - polytexnic_commands.sty
228
228
  - precompiled_binaries/tralics-linux
229
- - precompiled_binaries/tralics-os-x
229
+ - precompiled_binaries/tralics-os-x-newer
230
+ - precompiled_binaries/tralics-os-x-older
230
231
  - spec/fixtures/code_listing.tex
231
232
  - spec/fixtures/figures.tex
232
233
  - spec/fixtures/inline_math.html