polytexnic 0.7.1 → 0.7.2

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
  SHA1:
3
- metadata.gz: 93e7a161df1d0fc8631624f51fef9be7a5f16339
4
- data.tar.gz: 954a0a11d427e76354205d4110908fc238734b83
3
+ metadata.gz: 6b4c121bf68950ca38bc3289bba23be0aefc1dbc
4
+ data.tar.gz: 95bede188fb95eb68d77d6f5649bc0e13fce0e82
5
5
  SHA512:
6
- metadata.gz: 2d801736323773b196ada2a40a686cbfa5293158b136e992e9aa74aab3b1c5304805097df24e2d892474c09b118664d86a0a84e46e42c856473ac5c7e116dae1
7
- data.tar.gz: 7e23803974f5ec2d7cf71478ce8d21e1d418cf83d5944d6035dc1929f9af35c35863d4d11399fe3be1b3646b59ee67ca0e07ec63cd267ee3798a759e5b0b83e9
6
+ metadata.gz: 08b4f08b13293443da017c949961a42d35e843259c44ccbcb0d2902452e2bf4f1efbcd4bdca55fef27eb4d5b9d30b813e1810226761360bcb8b84024e3d2b903
7
+ data.tar.gz: b354bb460db2386757b17f6665fa24a0e3ea538d744878bc6b6a4926cd61b3cd80fd9059a04253e82be7a9e5a2c32af525ff851c36763c40de08ce4af5fbac9f
File without changes
data/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # polytexnic
2
2
 
3
- This is the `polytexnic` gem, which converts input in Markdown or PolyTeX to HTML and LaTeX. It currently has no standalone applications, but rather exists to support the `polytexnic` gem.
3
+ This is the `polytexnic` gem, which converts input in Markdown or PolyTeX to HTML and LaTeX. It currently has no standalone applications, but rather exists to support the `softcover` gem.
4
4
 
5
5
  ## Installation
6
6
 
7
- This gem is installed automatically as a dependency of the `polytexnic` gem:
7
+ This gem is installed automatically as a dependency of the `softcover` gem:
8
8
 
9
9
  $ gem install polytexnic
10
10
 
11
11
  ## Usage
12
12
 
13
- See [*The PolyTeXnic Book*](http://polytexnic.org/book) for more information.
13
+ See [*The Softcover Book*](http://manual.softcover.io/book) for more information.
14
14
 
15
15
  ## Contributing
16
16
 
@@ -23,7 +23,7 @@ module Polytexnic
23
23
  # At this point, I fear that "Markdown" has become little more than a
24
24
  # marketing term.</rant>
25
25
  def to_polytex
26
- require 'Kramdown'
26
+ require 'kramdown'
27
27
  cache = {}
28
28
  math_cache = {}
29
29
  cleaned_markdown = cache_code_environments
@@ -91,7 +91,7 @@ module Polytexnic
91
91
  |
92
92
  \\- # hyphenation
93
93
  |
94
- \\[ %&$#@] # space or special character
94
+ \\[ %&$\#@] # space or special character
95
95
  )
96
96
  /x
97
97
  markdown.gsub!(command_regex) do
@@ -230,4 +230,4 @@ module Polytexnic
230
230
  end
231
231
  end
232
232
  end
233
- end
233
+ end
@@ -7,8 +7,15 @@ module Polytexnic
7
7
 
8
8
  # Returns the executable for the Tralics LaTeX-to-XML converter.
9
9
  def tralics
10
+ filename = if RUBY_PLATFORM.match(/darwin/)
11
+ 'tralics-os-x'
12
+ elsif RUBY_PLATFORM.match(/linux/)
13
+ 'tralics-linux'
14
+ else
15
+ raise "Platform #{RUBY_PLATFORM} not supported"
16
+ end
10
17
  File.join(File.dirname(__FILE__), '..', '..',
11
- 'precompiled_binaries', 'tralics')
18
+ 'precompiled_binaries', filename)
12
19
  end
13
20
 
14
21
  # Returns a salted hash digest of the string.
@@ -1,3 +1,3 @@
1
1
  module Polytexnic
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
Binary file
File without changes
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.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Hartl
@@ -190,6 +190,7 @@ files:
190
190
  - .pull_requests/1386036048
191
191
  - .pull_requests/1386105869
192
192
  - .pull_requests/1386184858
193
+ - .pull_requests/1386718874
193
194
  - .rspec
194
195
  - Gemfile
195
196
  - Guardfile
@@ -211,7 +212,8 @@ files:
211
212
  - notes/pandoc.md
212
213
  - polytexnic.gemspec
213
214
  - polytexnic_commands.sty
214
- - precompiled_binaries/tralics
215
+ - precompiled_binaries/tralics-linux
216
+ - precompiled_binaries/tralics-os-x
215
217
  - spec/fixtures/code_listing.tex
216
218
  - spec/fixtures/figures.tex
217
219
  - spec/fixtures/inline_math.html