mathematical 1.6.8 → 1.6.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -0
  3. data/ext/mathematical/extconf.rb +27 -9
  4. data/ext/mathematical/lib/liblasem.dylib +0 -0
  5. data/ext/mathematical/lib/libmtex2MML.a +0 -0
  6. data/ext/mathematical/mtex2MML/build/CMakeCache.txt +9 -7
  7. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeCCompiler.cmake +68 -0
  8. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeCXXCompiler.cmake +70 -0
  9. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_C.bin +0 -0
  10. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_CXX.bin +0 -0
  11. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeSystem.cmake +15 -0
  12. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdC/CMakeCCompilerId.c +567 -0
  13. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdC/a.out +0 -0
  14. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdCXX/CMakeCXXCompilerId.cpp +539 -0
  15. data/ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdCXX/a.out +0 -0
  16. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeDirectoryInformation.cmake +1 -1
  17. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeOutput.log +532 -0
  18. data/ext/mathematical/mtex2MML/build/CMakeFiles/CMakeRuleHashes.txt +28 -28
  19. data/ext/mathematical/mtex2MML/build/CMakeFiles/Continuous.dir/build.make +4 -4
  20. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousBuild.dir/build.make +4 -4
  21. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousConfigure.dir/build.make +4 -4
  22. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousCoverage.dir/build.make +4 -4
  23. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousMemCheck.dir/build.make +4 -4
  24. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousStart.dir/build.make +4 -4
  25. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousSubmit.dir/build.make +4 -4
  26. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousTest.dir/build.make +4 -4
  27. data/ext/mathematical/mtex2MML/build/CMakeFiles/ContinuousUpdate.dir/build.make +4 -4
  28. data/ext/mathematical/mtex2MML/build/CMakeFiles/Experimental.dir/build.make +4 -4
  29. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalBuild.dir/build.make +4 -4
  30. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalConfigure.dir/build.make +4 -4
  31. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalCoverage.dir/build.make +4 -4
  32. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalMemCheck.dir/build.make +4 -4
  33. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalStart.dir/build.make +4 -4
  34. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalSubmit.dir/build.make +4 -4
  35. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalTest.dir/build.make +4 -4
  36. data/ext/mathematical/mtex2MML/build/CMakeFiles/ExperimentalUpdate.dir/build.make +4 -4
  37. data/ext/mathematical/mtex2MML/build/CMakeFiles/Makefile.cmake +107 -107
  38. data/ext/mathematical/mtex2MML/build/CMakeFiles/Makefile2 +3 -3
  39. data/ext/mathematical/mtex2MML/build/CMakeFiles/Nightly.dir/build.make +4 -4
  40. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyBuild.dir/build.make +4 -4
  41. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyConfigure.dir/build.make +4 -4
  42. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyCoverage.dir/build.make +4 -4
  43. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemCheck.dir/build.make +4 -4
  44. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyMemoryCheck.dir/build.make +4 -4
  45. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyStart.dir/build.make +4 -4
  46. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlySubmit.dir/build.make +4 -4
  47. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyTest.dir/build.make +4 -4
  48. data/ext/mathematical/mtex2MML/build/CMakeFiles/NightlyUpdate.dir/build.make +4 -4
  49. data/ext/mathematical/mtex2MML/build/CMakeFiles/feature_tests.bin +0 -0
  50. data/ext/mathematical/mtex2MML/build/CMakeFiles/format.dir/build.make +3 -3
  51. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/build.make +24 -24
  52. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/cmake_clean.cmake +1 -1
  53. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/flags.make +1 -1
  54. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML.dir/link.txt +1 -1
  55. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/C.includecache +1 -1
  56. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/build.make +24 -24
  57. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/depend.internal +1 -1
  58. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/depend.make +1 -1
  59. data/ext/mathematical/mtex2MML/build/CMakeFiles/libmtex2MML_static.dir/flags.make +1 -1
  60. data/ext/mathematical/mtex2MML/build/CMakeFiles/memcheck.dir/build.make +3 -3
  61. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/build.make +27 -27
  62. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/flags.make +1 -1
  63. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML.dir/link.txt +1 -1
  64. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/build.make +75 -75
  65. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/flags.make +1 -1
  66. data/ext/mathematical/mtex2MML/build/CMakeFiles/mtex2MML_clar.dir/link.txt +1 -1
  67. data/ext/mathematical/mtex2MML/build/DartConfiguration.tcl +2 -2
  68. data/ext/mathematical/mtex2MML/build/Makefile +15 -13
  69. data/ext/mathematical/mtex2MML/build/libmtex2MML.a +0 -0
  70. data/lib/mathematical/validator.rb +1 -1
  71. data/lib/mathematical/version.rb +1 -1
  72. data/test/mathematical/maliciousness_test.rb +3 -2
  73. metadata +12 -3
@@ -1,5 +1,5 @@
1
1
  # CMAKE generated file: DO NOT EDIT!
2
- # Generated by "Unix Makefiles" Generator, CMake Version 3.7
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.8
3
3
 
4
4
  # compile C with /Library/Developer/CommandLineTools/usr/bin/cc
5
5
  C_FLAGS = -Wall -Wextra -std=c99 -pedantic-errors -fextended-identifiers
@@ -1 +1 @@
1
- /Library/Developer/CommandLineTools/usr/bin/cc -Wall -Wextra -std=c99 -pedantic-errors -fextended-identifiers -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mtex2MML_clar.dir/src/colors.c.o CMakeFiles/mtex2MML_clar.dir/src/em.c.o CMakeFiles/mtex2MML_clar.dir/src/environment.c.o CMakeFiles/mtex2MML_clar.dir/src/string_dup.c.o CMakeFiles/mtex2MML_clar.dir/src/string_extras.c.o CMakeFiles/mtex2MML_clar.dir/tests/main.c.o CMakeFiles/mtex2MML_clar.dir/tests/clar.c.o CMakeFiles/mtex2MML_clar.dir/tests/array.c.o CMakeFiles/mtex2MML_clar.dir/tests/basic.c.o CMakeFiles/mtex2MML_clar.dir/tests/cornercases.c.o CMakeFiles/mtex2MML_clar.dir/tests/delimiters.c.o CMakeFiles/mtex2MML_clar.dir/tests/env.c.o CMakeFiles/mtex2MML_clar.dir/tests/functions.c.o CMakeFiles/mtex2MML_clar.dir/tests/helpers.c.o CMakeFiles/mtex2MML_clar.dir/tests/maliciousness.c.o CMakeFiles/mtex2MML_clar.dir/tests/mathjax.c.o CMakeFiles/mtex2MML_clar.dir/tests/numbered_equations.c.o CMakeFiles/mtex2MML_clar.dir/tests/performance.c.o CMakeFiles/mtex2MML_clar.dir/tests/symbols.c.o CMakeFiles/mtex2MML_clar.dir/tests/deps/file2str/file2str.c.o CMakeFiles/mtex2MML_clar.dir/tests/deps/mkdtemp/mkdtemp.c.o CMakeFiles/mtex2MML_clar.dir/tests/deps/trim/trim.c.o CMakeFiles/mtex2MML_clar.dir/parser.c.o CMakeFiles/mtex2MML_clar.dir/lexer.c.o -o mtex2MML_clar
1
+ /Library/Developer/CommandLineTools/usr/bin/cc -Wall -Wextra -std=c99 -pedantic-errors -fextended-identifiers -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/mtex2MML_clar.dir/src/colors.c.o CMakeFiles/mtex2MML_clar.dir/src/em.c.o CMakeFiles/mtex2MML_clar.dir/src/environment.c.o CMakeFiles/mtex2MML_clar.dir/src/string_dup.c.o CMakeFiles/mtex2MML_clar.dir/src/string_extras.c.o CMakeFiles/mtex2MML_clar.dir/tests/main.c.o CMakeFiles/mtex2MML_clar.dir/tests/clar.c.o CMakeFiles/mtex2MML_clar.dir/tests/array.c.o CMakeFiles/mtex2MML_clar.dir/tests/basic.c.o CMakeFiles/mtex2MML_clar.dir/tests/cornercases.c.o CMakeFiles/mtex2MML_clar.dir/tests/delimiters.c.o CMakeFiles/mtex2MML_clar.dir/tests/env.c.o CMakeFiles/mtex2MML_clar.dir/tests/functions.c.o CMakeFiles/mtex2MML_clar.dir/tests/helpers.c.o CMakeFiles/mtex2MML_clar.dir/tests/maliciousness.c.o CMakeFiles/mtex2MML_clar.dir/tests/mathjax.c.o CMakeFiles/mtex2MML_clar.dir/tests/numbered_equations.c.o CMakeFiles/mtex2MML_clar.dir/tests/performance.c.o CMakeFiles/mtex2MML_clar.dir/tests/symbols.c.o CMakeFiles/mtex2MML_clar.dir/tests/deps/file2str/file2str.c.o CMakeFiles/mtex2MML_clar.dir/tests/deps/mkdtemp/mkdtemp.c.o CMakeFiles/mtex2MML_clar.dir/tests/deps/trim/trim.c.o CMakeFiles/mtex2MML_clar.dir/parser.c.o CMakeFiles/mtex2MML_clar.dir/lexer.c.o -o mtex2MML_clar
@@ -33,7 +33,7 @@ ScpCommand: /usr/bin/scp
33
33
  NightlyStartTime: 00:00:00 EDT
34
34
 
35
35
  # Commands for the build/test/submit cycle
36
- ConfigureCommand: "/usr/local/Cellar/cmake/3.7.2/bin/cmake" "/Users/gjtorikian/Developer/mathematical/ext/mathematical/mtex2MML"
36
+ ConfigureCommand: "/usr/local/Cellar/cmake/3.8.0/bin/cmake" "/Users/gjtorikian/Developer/mathematical/ext/mathematical/mtex2MML"
37
37
  MakeCommand: /usr/local/Cellar/cmake/3.7.2/bin/cmake --build . --config "${CTEST_CONFIGURATION_TYPE}" -- -i
38
38
  DefaultCTestConfigurationType: Release
39
39
 
@@ -70,7 +70,7 @@ UpdateType: git
70
70
 
71
71
  # Compiler info
72
72
  Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
73
- CompilerVersion: 8.0.0.8000042
73
+ CompilerVersion: 8.1.0.8020042
74
74
 
75
75
  # Dynamic analysis (MemCheck)
76
76
  PurifyCommand:
@@ -1,5 +1,5 @@
1
1
  # CMAKE generated file: DO NOT EDIT!
2
- # Generated by "Unix Makefiles" Generator, CMake Version 3.7
2
+ # Generated by "Unix Makefiles" Generator, CMake Version 3.8
3
3
 
4
4
  # Default target executed when no arguments are given to make.
5
5
  default_target: all
@@ -39,10 +39,10 @@ cmake_force:
39
39
  SHELL = /bin/sh
40
40
 
41
41
  # The CMake executable.
42
- CMAKE_COMMAND = /usr/local/Cellar/cmake/3.7.2/bin/cmake
42
+ CMAKE_COMMAND = /usr/local/Cellar/cmake/3.8.0/bin/cmake
43
43
 
44
44
  # The command to remove a file.
45
- RM = /usr/local/Cellar/cmake/3.7.2/bin/cmake -E remove -f
45
+ RM = /usr/local/Cellar/cmake/3.8.0/bin/cmake -E remove -f
46
46
 
47
47
  # Escaping for special characters.
48
48
  EQUALS = =
@@ -59,23 +59,25 @@ CMAKE_BINARY_DIR = /Users/gjtorikian/Developer/mathematical/ext/mathematical/mte
59
59
  # Special rule for the target install/strip
60
60
  install/strip: preinstall
61
61
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
62
- /usr/local/Cellar/cmake/3.7.2/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
62
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
63
63
  .PHONY : install/strip
64
64
 
65
65
  # Special rule for the target install/strip
66
- install/strip/fast: install/strip
67
-
66
+ install/strip/fast: preinstall/fast
67
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
68
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
68
69
  .PHONY : install/strip/fast
69
70
 
70
71
  # Special rule for the target install/local
71
72
  install/local: preinstall
72
73
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
73
- /usr/local/Cellar/cmake/3.7.2/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
74
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
74
75
  .PHONY : install/local
75
76
 
76
77
  # Special rule for the target install/local
77
- install/local/fast: install/local
78
-
78
+ install/local/fast: preinstall/fast
79
+ @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
80
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
79
81
  .PHONY : install/local/fast
80
82
 
81
83
  # Special rule for the target list_install_components
@@ -91,7 +93,7 @@ list_install_components/fast: list_install_components
91
93
  # Special rule for the target rebuild_cache
92
94
  rebuild_cache:
93
95
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
94
- /usr/local/Cellar/cmake/3.7.2/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
96
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
95
97
  .PHONY : rebuild_cache
96
98
 
97
99
  # Special rule for the target rebuild_cache
@@ -113,19 +115,19 @@ edit_cache/fast: edit_cache
113
115
  # Special rule for the target install
114
116
  install: preinstall
115
117
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
116
- /usr/local/Cellar/cmake/3.7.2/bin/cmake -P cmake_install.cmake
118
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -P cmake_install.cmake
117
119
  .PHONY : install
118
120
 
119
121
  # Special rule for the target install
120
122
  install/fast: preinstall/fast
121
123
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
122
- /usr/local/Cellar/cmake/3.7.2/bin/cmake -P cmake_install.cmake
124
+ /usr/local/Cellar/cmake/3.8.0/bin/cmake -P cmake_install.cmake
123
125
  .PHONY : install/fast
124
126
 
125
127
  # Special rule for the target test
126
128
  test:
127
129
  @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..."
128
- /usr/local/Cellar/cmake/3.7.2/bin/ctest --force-new-ctest-process $(ARGS)
130
+ /usr/local/Cellar/cmake/3.8.0/bin/ctest --force-new-ctest-process $(ARGS)
129
131
  .PHONY : test
130
132
 
131
133
  # Special rule for the target test
@@ -5,7 +5,7 @@ class Mathematical
5
5
  RENDER_TYPES = [:parse, :filter, :text_filter, :strict_filter].freeze
6
6
 
7
7
  def validate_config(config)
8
- fail(TypeError, 'maxsize must be an integer!') unless config[:maxsize].is_a? Fixnum
8
+ fail(TypeError, 'maxsize must be an integer!') unless config[:maxsize].is_a? Integer
9
9
  fail(TypeError, 'maxsize cannot be less than 0!') if config[:maxsize] < 0
10
10
  fail(TypeError, 'format must be a symbol!') unless config[:format].is_a? Symbol
11
11
  fail(TypeError, "format type must be one of the following formats: #{FORMAT_TYPES.join(', ')}") unless FORMAT_TYPES.include?(config[:format])
@@ -1,3 +1,3 @@
1
1
  class Mathematical
2
- VERSION = '1.6.8'.freeze
2
+ VERSION = '1.6.9'.freeze
3
3
  end
@@ -58,8 +58,9 @@ class Mathematical::MaliciousnessTest < MiniTest::Test
58
58
  assert_equal output[:data], '$a \ne b$'
59
59
  assert_equal output[:exception].class, Mathematical::MaxsizeError
60
60
 
61
- assert_raises RangeError do
62
- render = Mathematical.new({ :maxsize => 4_294_967_295 }) # unsigned long max
61
+ # ruby <= 2.3, RangeError, > TypeError
62
+ assert_raises do
63
+ render = Mathematical.new({ :maxsize => 2**80 })
63
64
  render.render('$a \ne b$')
64
65
  end
65
66
  end
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.8
4
+ version: 1.6.9
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-03-08 00:00:00.000000000 Z
11
+ date: 2017-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-enum
@@ -579,6 +579,15 @@ files:
579
579
  - ext/mathematical/mtex2MML/build/CMakeFiles/3.7.2/CompilerIdC/a.out
580
580
  - ext/mathematical/mtex2MML/build/CMakeFiles/3.7.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
581
581
  - ext/mathematical/mtex2MML/build/CMakeFiles/3.7.2/CompilerIdCXX/a.out
582
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeCCompiler.cmake
583
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeCXXCompiler.cmake
584
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_C.bin
585
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeDetermineCompilerABI_CXX.bin
586
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CMakeSystem.cmake
587
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdC/CMakeCCompilerId.c
588
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdC/a.out
589
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdCXX/CMakeCXXCompilerId.cpp
590
+ - ext/mathematical/mtex2MML/build/CMakeFiles/3.8.0/CompilerIdCXX/a.out
582
591
  - ext/mathematical/mtex2MML/build/CMakeFiles/CMakeDirectoryInformation.cmake
583
592
  - ext/mathematical/mtex2MML/build/CMakeFiles/CMakeOutput.log
584
593
  - ext/mathematical/mtex2MML/build/CMakeFiles/CMakeRuleHashes.txt
@@ -1581,7 +1590,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1581
1590
  version: '0'
1582
1591
  requirements: []
1583
1592
  rubyforge_project:
1584
- rubygems_version: 2.4.5.1
1593
+ rubygems_version: 2.6.12
1585
1594
  signing_key:
1586
1595
  specification_version: 4
1587
1596
  summary: Quickly convert math equations into beautiful SVGs/PNGs/MathML.