parsecs 0.2.20 → 0.2.21

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: baad050f7884ccde189b53870ea8b12919bf9814c389677794119e64590b0c37
4
- data.tar.gz: f46692c9899acb7993f103a223dfd2c8c582defba944c23b19bae345bbeda45e
3
+ metadata.gz: 917b6ad3fd9e860c55b127ec85a37301398472d58dcd422d6ad7798355c7984a
4
+ data.tar.gz: 7dba6d7168d479f8c47c67eb81f4d8febca6f6df64cf8dff7575a5d48a3ba02f
5
5
  SHA512:
6
- metadata.gz: f7b5293ef8325c2dffed4e73ec8957fcaf5e5f6ebe25ccfd9c3b2b44d1f0869c25324ca336da667fba9b4d0e82ba79ddb39d4a252371746b87d9e6bad69d19a4
7
- data.tar.gz: 57759958a8205ca77b00f8ff62629e6023aaf81e14c9a3d4cbfaf14404c7473909839e474ba16168b332746e3d72188669fc4591def308c73b76b66e61534297
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.20'.freeze
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://goo.gl/exJ66Y
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.20
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-06-19 00:00:00.000000000 Z
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.3
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