parsecs 0.11.6 → 0.11.9

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
  SHA256:
3
- metadata.gz: eb2d58cc370e6c777c700923e4fa4bfc75bb636787a6a6cc1072d6102bc6ad96
4
- data.tar.gz: 45081cad563cf4dec9d10da97632a69b9018676868b774151fdf43428e2910d7
3
+ metadata.gz: 27bb96b53f0a4c2da464056a9c3f50acd53d3e00d315e960d08286a19a4d398a
4
+ data.tar.gz: 174c608b61872c0d3417324a7053377826f3b679e8b80fed10519be12e32221b
5
5
  SHA512:
6
- metadata.gz: fdea60ccb0971c7434f32ac105248908a2aca0bac01ce6c3ba1608ac4d6fc0e22a4c2ecaaee0f2d8ca5fc4242d401dbc0fc176b5532bf44a9c6ec7cf330f8dfb
7
- data.tar.gz: 461f9ce0cf4507390ecee30d31e67c827ab601e71677037ecfbaaa62ef90f9c732f1345be130f58ced14078fffa99b0e2d8c0d339decece3abd0ca6f928c5dc3
6
+ metadata.gz: d192592844f0e597ba28ec9a8b5e3a93436731b330048fff1b235a4e9f6237174949d25f1bf7d71ba646930257b9c4bef876f7a685678b3b35b3da5575e4af2c
7
+ data.tar.gz: 7452c90667c7edac02ce61c2b9f6063d64c3daf49917d4d340a38be3e33f2d13e32451ac8e39b51ca1936be1464e21d51e7be9479b1da13acf73b84b88df0442
@@ -37,8 +37,8 @@ libs.each do |lib|
37
37
  $LOCAL_LIBS << "#{lib} "
38
38
  end
39
39
 
40
- GIT_REPOSITORY = 'https://github.com/niltonvasques/equations-parser.git'.freeze
41
- COMMIT = 'fe93ca5534484b05cd1eb68f7acfc32ff05dc20c'.freeze
40
+ GIT_REPOSITORY = 'https://github.com/oxeanbits/equations-parser.git'.freeze
41
+ COMMIT = '8c4fab5b8949704cf4d80d4a4a898f451cbb3890'.freeze
42
42
 
43
43
  Dir.chdir(BASEDIR) do
44
44
  system('git init')
@@ -64,10 +64,17 @@ unless File.exist?("#{MUPARSER_LIB}/libmuparserx.a")
64
64
  abort 'libmuparserx.a is missing.'
65
65
  end
66
66
 
67
- create_makefile('ext/libnativemath/libnativemath')
67
+ if RUBY_VERSION >= '3.2'
68
+ create_makefile('../ext/libnativemath')
69
+ else
70
+ create_makefile('ext/libnativemath/libnativemath')
71
+ end
68
72
 
69
73
  Dir.chdir(BASEDIR) do
70
74
  Dir.chdir('ext/libnativemath/') do
71
75
  system('make')
76
+ if RUBY_VERSION >= '3.2'
77
+ FileUtils.cp('libnativemath.so', '../../lib/')
78
+ end
72
79
  end
73
80
  end
data/lib/parsec.rb CHANGED
@@ -6,7 +6,7 @@ module Parsec
6
6
  class Parsec
7
7
  using StringToBooleanRefinements
8
8
 
9
- VERSION = '0.11.6'.freeze
9
+ VERSION = '0.11.9'.freeze
10
10
 
11
11
  # evaluates the equation and returns only the result
12
12
  def self.eval_equation(equation)
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.6
4
+ version: 0.11.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nilton Vasques
8
8
  - Victor Cordeiro
9
9
  - Beatriz Fagundes
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-23 00:00:00.000000000 Z
13
+ date: 2023-04-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest
@@ -62,7 +62,7 @@ homepage: https://github.com/niltonvasques/parsec
62
62
  licenses:
63
63
  - MIT
64
64
  metadata: {}
65
- post_install_message:
65
+ post_install_message:
66
66
  rdoc_options: []
67
67
  require_paths:
68
68
  - lib
@@ -81,8 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - swig
83
83
  - cmake
84
- rubygems_version: 3.0.9
85
- signing_key:
84
+ rubygems_version: 3.4.10
85
+ signing_key:
86
86
  specification_version: 4
87
87
  summary: A gem to evaluate equations using muparserx C++ library
88
88
  test_files: