parsecs 0.11.8 → 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: 3a0df3c2ed8d2fa27bd7a7ce5c5e22731fcfb2c73b8c01deb9d1f4c091bf82b5
4
- data.tar.gz: 50ceb63aff90ee7b0d0b5d4246f848c85483703fca61ffae802bc02dbd65dec9
3
+ metadata.gz: 27bb96b53f0a4c2da464056a9c3f50acd53d3e00d315e960d08286a19a4d398a
4
+ data.tar.gz: 174c608b61872c0d3417324a7053377826f3b679e8b80fed10519be12e32221b
5
5
  SHA512:
6
- metadata.gz: c1f5c106772992da64362a542f8cff3476ce395445d3a187e13caba4827b45e28990291fdff3a4fa96d9c86ed9261c6b56862db60d8836044c1da11b9b45eac5
7
- data.tar.gz: 8ff45afe12a9a67abd5d562ba860c9b0ebfa4da284bbdcaa4bd4d61629c1815914f1ed73308d0306cb9dc99f7e9cf9879b379dd861543cc875a674b0787db323
6
+ metadata.gz: d192592844f0e597ba28ec9a8b5e3a93436731b330048fff1b235a4e9f6237174949d25f1bf7d71ba646930257b9c4bef876f7a685678b3b35b3da5575e4af2c
7
+ data.tar.gz: 7452c90667c7edac02ce61c2b9f6063d64c3daf49917d4d340a38be3e33f2d13e32451ac8e39b51ca1936be1464e21d51e7be9479b1da13acf73b84b88df0442
@@ -37,7 +37,7 @@ 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
40
+ GIT_REPOSITORY = 'https://github.com/oxeanbits/equations-parser.git'.freeze
41
41
  COMMIT = '8c4fab5b8949704cf4d80d4a4a898f451cbb3890'.freeze
42
42
 
43
43
  Dir.chdir(BASEDIR) do
@@ -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.8'.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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.8
4
+ version: 0.11.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nilton Vasques
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-01-20 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
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - swig
83
83
  - cmake
84
- rubygems_version: 3.0.9
84
+ rubygems_version: 3.4.10
85
85
  signing_key:
86
86
  specification_version: 4
87
87
  summary: A gem to evaluate equations using muparserx C++ library