mathematical 1.6.9 → 1.6.10

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: 8ca8cd6855138696899ff2ea0c0bbeb158e7cf9f
4
- data.tar.gz: fd70b584ab7a1362448132f4587c652bd550d642
3
+ metadata.gz: ea8a72723abbdebedb6846446456bdb07ee686c4
4
+ data.tar.gz: aecc9627f2e37d81369d4530c07ae989e7e6375d
5
5
  SHA512:
6
- metadata.gz: 78900a0c9f91af294b4badc8f0f3b69783ae76d8f01b19444d9e0007baca9c96dc3f82a6efa62ff48cbe0bab3cd17ff26e6fd9bab59dd48070ca13d35ef8489f
7
- data.tar.gz: 9e028183c3380b18deedd0800de04e7b3849fc417676d656b23e7895b9d85ee501d63e3edc863dc20f48edbbe7ecfb2e7fd8af08229338263f882c331ef9eb41
6
+ metadata.gz: ef1fb6fee48bfc168a23f08647e3d00db38b2305af4c8b2e6923310c8e886855ccf3467a922c5430d6b0e4a406e3315077736a6971308f35458ff6a0b70ece6c
7
+ data.tar.gz: 52b554d17d8c599b3f5bc3cb1be3cb92bb6eed97e9d48db9370b5a88f73ef49c8d24ca22effe6d2ee04d225fa623d87a9cd23609ecb92a4d5a5120da7443f6f0
@@ -3,15 +3,23 @@ ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin|mac os/
3
3
  require 'mkmf'
4
4
  require 'rbconfig'
5
5
 
6
- HOST_OS = RbConfig::CONFIG['host_os']
7
- LIBDIR = RbConfig::CONFIG['libdir']
8
- INCLUDEDIR = RbConfig::CONFIG['includedir']
9
- SHARED_EXT = if HOST_OS =~ /darwin|mac os/
10
- 'dylib'
6
+ OS = case RbConfig::CONFIG['host_os']
7
+ when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
8
+ :windows
9
+ when /darwin|mac os/
10
+ :macosx
11
+ when /linux/
12
+ :linux
13
+ when /solaris|bsd/
14
+ :unix
11
15
  else
12
- 'so'
16
+ raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
13
17
  end
14
18
 
19
+ LIBDIR = RbConfig::CONFIG['libdir']
20
+ INCLUDEDIR = RbConfig::CONFIG['includedir']
21
+ SHARED_EXT = OS == :macosx ? 'dylib' : 'so'
22
+
15
23
  unless find_executable('cmake')
16
24
  $stderr.puts "\n\n\n[ERROR]: cmake is required and not installed. Get it here: http://www.cmake.org/\n\n"
17
25
  exit 1
@@ -37,7 +45,7 @@ MTEX2MML_BUILD_DIR = File.join(MTEX2MML_DIR, 'build')
37
45
  MTEX2MML_SRC_DIR = File.expand_path(File.join(MTEX2MML_DIR, 'src'))
38
46
  MTEX2MML_LIB_DIR = File.expand_path(File.join(File.dirname(__FILE__), 'lib'))
39
47
 
40
- if HOST_OS =~ /darwin|mac os/
48
+ if OS == :macos
41
49
  ENV['PKG_CONFIG_PATH'] = "/opt/X11/lib/pkgconfig:#{ENV['PKG_CONFIG_PATH']}"
42
50
  end
43
51
 
@@ -88,7 +96,11 @@ if !using_system_lasem?
88
96
  end
89
97
  FileUtils.mkdir_p(LASEM_LIB_DIR)
90
98
  FileUtils.cp_r(File.join(LASEM_BUILD_DIR, "liblasem.#{SHARED_EXT}"), LASEM_LIB_DIR)
91
- $LIBS << ' -llasem'
99
+ if OS == :linux
100
+ $LIBS << " -Wl,-rpath,#{LASEM_LIB_DIR} -llasem"
101
+ else
102
+ $LIBS << ' -llasem'
103
+ end
92
104
  else
93
105
  if dir_config('lasem').any? || system('dpkg -s liblasem >/dev/null')
94
106
  $LIBS << ' -llasem'
@@ -1,3 +1,3 @@
1
1
  class Mathematical
2
- VERSION = '1.6.9'.freeze
2
+ VERSION = '1.6.10'.freeze
3
3
  end
@@ -44,7 +44,7 @@ $$
44
44
 
45
45
  def test_it_properly_accounts_for_equations
46
46
  # seems to barf on Travis
47
- skip if TRAVIS_OSX
47
+ skip if TRAVIS_MACOS
48
48
  inputs = []
49
49
  (1..2).each do |i|
50
50
  string = """
@@ -6,6 +6,8 @@ class Mathematical::PNGTest < MiniTest::Test
6
6
  end
7
7
 
8
8
  def test_it_creates_a_png
9
+ # seems to barf on Travis
10
+ skip if TRAVIS_MACOS
9
11
  string = '''
10
12
  $$
11
13
  \begin{pmatrix}
@@ -21,7 +23,7 @@ $$
21
23
  header = data_hash[:data].unpack('H*').first.slice(0, 18)
22
24
  File.open("#{fixtures_dir}/png/pmatrix.png", 'w') { |f| f.write(data_hash[:data]) }
23
25
 
24
- file_bytes = TRAVIS_OSX ? '24240a5c626567696e' : '89504e470d0a1a0a00'
26
+ file_bytes = TRAVIS_MACOS ? '24240a5c626567696e' : '89504e470d0a1a0a00'
25
27
 
26
28
  assert_equal header, file_bytes
27
29
  end
@@ -9,7 +9,7 @@ require 'pry-byebug'
9
9
  MTEX2MML_FIXTURES_DIR = File.join('ext', 'mathematical', 'mtex2MML', 'tests', 'fixtures')
10
10
  MATHJAX_TEST_DIR = File.join(MTEX2MML_FIXTURES_DIR, 'MathJax')
11
11
  MATHJAX_TEX_DIR = File.join(MATHJAX_TEST_DIR, 'LaTeXToMathML-tex')
12
- TRAVIS_OSX = ENV['TRAVIS'] && ENV['TRAVIS_OS_NAME'] == 'osx'
12
+ TRAVIS_MACOS = ENV['TRAVIS'] && ENV['TRAVIS_OS_NAME'] == 'osx'
13
13
 
14
14
  def fixtures_dir
15
15
  'test/mathematical/fixtures'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mathematical
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.9
4
+ version: 1.6.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Garen Torikian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-12 00:00:00.000000000 Z
11
+ date: 2017-09-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-enum