parsecs 0.2.20 → 0.2.21
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 +4 -4
- data/ext/libnativemath/extconf.rb +2 -0
- data/lib/parsec.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 917b6ad3fd9e860c55b127ec85a37301398472d58dcd422d6ad7798355c7984a
|
4
|
+
data.tar.gz: 7dba6d7168d479f8c47c67eb81f4d8febca6f6df64cf8dff7575a5d48a3ba02f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3485aa353d58f8c18f9f84e9661b35e9e7e512a00f0d9a71b0aa9226f68fec0f0d49559836efc544ac00f69fd7ceaa1f575394f9df07d1b59d0b8f291f4aac6
|
7
|
+
data.tar.gz: 6efbf3526a66ee6f764a35b515591f22aa63f0bf1a7692d0fbac47f616e6a68a50e5b7da03fd6bc56d0a12b6fb408d64745a64a3146bdb1e98f2fa35ac3dc66c
|
@@ -38,6 +38,7 @@ libs.each do |lib|
|
|
38
38
|
end
|
39
39
|
|
40
40
|
GIT_REPOSITORY = 'https://github.com/niltonvasques/equations-parser.git'.freeze
|
41
|
+
COMMIT = 'd53ae5eb308cb842351da7d1bb87c08e84c67d08'.freeze
|
41
42
|
|
42
43
|
Dir.chdir(BASEDIR) do
|
43
44
|
system('git init')
|
@@ -45,6 +46,7 @@ Dir.chdir(BASEDIR) do
|
|
45
46
|
system('git submodule update --init --recursive')
|
46
47
|
|
47
48
|
Dir.chdir('ext/equations-parser/') do
|
49
|
+
system("git checkout #{COMMIT}")
|
48
50
|
system('cmake CMakeLists.txt -DCMAKE_BUILD_TYPE=Release')
|
49
51
|
system('make')
|
50
52
|
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.2.
|
9
|
+
VERSION = '0.2.21'.freeze
|
10
10
|
|
11
11
|
# evaluates the equation
|
12
12
|
def self.eval_equation(equation)
|
@@ -35,7 +35,7 @@ module Parsec
|
|
35
35
|
equation.gsub!(/[\n\t\r]/, ' ')
|
36
36
|
|
37
37
|
# The following regex remove all spaces that are not between quot marks
|
38
|
-
# https://
|
38
|
+
# https://tinyurl.com/ybc7bng3
|
39
39
|
equation.gsub!(/( |(".*?"))/, '\\2') if new_line == true
|
40
40
|
end
|
41
41
|
|
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.2.
|
4
|
+
version: 0.2.21
|
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: 2018-
|
13
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -82,7 +82,7 @@ requirements:
|
|
82
82
|
- swig
|
83
83
|
- cmake
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.7.
|
85
|
+
rubygems_version: 2.7.6
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: A gem to evaluate equations using muparserx C++ library
|