parsecs 0.11.0 → 0.11.1

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: 978da8511da9083758dd2bb2b6dd9fe2fa51e0bfe42e3708c8dcfdda3f6c944b
4
- data.tar.gz: 2c081e2678b538d454285cea35d50beed3c784ea67bac8fa266be2ca9fd088e6
3
+ metadata.gz: 350da8f290d5c71fe46d88c97ea79a6aabb24a0ecb87bff326a3483c3858ad63
4
+ data.tar.gz: 0d0484793521f595e4b7fb4693892d0e83c4a26afefab215ec51c708c1f04745
5
5
  SHA512:
6
- metadata.gz: ab6d59f6dab5ab29fdc03f668bacb04e0f10b02c21e399a28628d9eb92b6cbd3882d51f53d63b4bfc0f7b35e02bfcb8ede83380d0d700a9c2486f53d989efd69
7
- data.tar.gz: 8d1b6123e69445bf74279a9d31c5b74829107f7ac6d1c4c63518034abc245f7810b5e2f5eed1ffaed21ce95c7ac5c1aaf85439db791dabd8cd775db80d4ed838
6
+ metadata.gz: c097c7bf8cf1ad6d1578043f9add109dc300d07cf26c21f9b5b28276f1345a629790d9c8eb91d7bd4973e8043b4c4484d5c8ede12aa071b46f755839ed2ce248
7
+ data.tar.gz: 3bffd0f7e85ac0eb765db5e01d8bf7b2e6b36660a1fa262456eeff1aab1516913bf2f4695e75d9d9f9fe0442aa3902f0f8e4ddcc2e7bd83d7b82b7b592ee24fd
@@ -38,7 +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 = '6846102ba56050057d04c9d63d9be1d260c5fe16'.freeze
41
+ COMMIT = 'b011ace5697fa65eade579f1c85aa38fd1fb816d'.freeze
42
42
 
43
43
  Dir.chdir(BASEDIR) do
44
44
  system('git init')
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.0'.freeze
9
+ VERSION = '0.11.1'.freeze
10
10
 
11
11
  # evaluates the equation and returns only the result
12
12
  def self.eval_equation(equation)
data/test/test_parsec.rb CHANGED
@@ -84,6 +84,7 @@ class TestParsec < Minitest::Test
84
84
  assert_equal('test lowercase', parser.eval_equation('tolower("TEST LOWERCASE")'))
85
85
  assert_equal('Hello', parser.eval_equation('left("Hello World", 5)'))
86
86
  assert_equal('World', parser.eval_equation('right("Hello World", 5)'))
87
+ assert_equal('Hello World', parser.eval_equation('right("Hello World", 20)'))
87
88
  end
88
89
 
89
90
  def test_general_equations
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.0
4
+ version: 0.11.1
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: 2021-08-30 00:00:00.000000000 Z
13
+ date: 2021-09-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest