parsecs 0.6.1 → 0.6.2

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: c08485876a66a7be42dad44eae2787495ffa98447defb56b9c5fa9afdebf3c2e
4
- data.tar.gz: 6e5a10133bd0aa4909bc58e0e2bf2d668638800fb80f17fa034406041eed1eb9
3
+ metadata.gz: 10d47b41fa674a87e82389eb1b269e54c4c64ad02a6682708c2d2b8c970c9f29
4
+ data.tar.gz: e5691c43532a99952c5e12d5f191a3f27382936b35b94f082edb087095d5938a
5
5
  SHA512:
6
- metadata.gz: 690e7b876e987b78f561e54b0d66edb4c45da9ddca09bc4253c33e6d4d7024f95212e803219b9debfae109f17d2aa094a304376ca84f32732caeaa37f167b07c
7
- data.tar.gz: 5b77f2a67f728c21a792f12b6c43044936ab2eb5b391e41893921ca6d0c08c15c215651a00a546d0621f9710ae9152d51b680bb9f7e888901e385dd71c0bd8bf
6
+ metadata.gz: d8ab0c269d1051285d9d562edd6a7a525278a2317c932b42033b559034420e474e72ffa9818074ea5f091e7f6e7369d63cabb8991d34a5c30c7b79d9ac3a8da4
7
+ data.tar.gz: 9cf6c8c8c994f33e7c4add7f1ee86de4347512910b41cf59790aed42730d43ad369e862b11d440dc034800f0654382172fb4594bceae4e44fcb6f13b9bd31d14
@@ -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 = 'a5ced9f1ce02a13f4eca138fa66c98a0e76775d6'.freeze
41
+ COMMIT = 'eae00acfc8c4ea9fb7ff16dff11e51bdd260035f'.freeze
42
42
 
43
43
  Dir.chdir(BASEDIR) do
44
44
  system('git init')
@@ -6,7 +6,7 @@ module Parsec
6
6
  class Parsec
7
7
  using StringToBooleanRefinements
8
8
 
9
- VERSION = '0.6.1'.freeze
9
+ VERSION = '0.6.2'.freeze
10
10
 
11
11
  # evaluates the equation and returns only the result
12
12
  def self.eval_equation(equation)
@@ -136,6 +136,8 @@ class TestParsec < Minitest::Test
136
136
  assert_raises(SyntaxError) { parsec.eval_equation('hoursdiff("INVALID1", "2018-01-01")') }
137
137
  assert_raises(SyntaxError) { parsec.eval_equation('hoursdiff("INVALID1", "INVALID2")') }
138
138
  assert_raises(SyntaxError) { parsec.eval_equation('hoursdiff(2, 3)') }
139
+ assert_raises(SyntaxError) { parsec.eval_equation('hoursdiff("2018-01-01", "2018-01-01T12:00")') }
140
+ assert_raises(SyntaxError) { parsec.eval_equation('hoursdiff("2018-01-01T12:00", "2018-01-01")') }
139
141
  end
140
142
 
141
143
  def test_eval_equation_with_type
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.6.1
4
+ version: 0.6.2
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: 2019-03-13 00:00:00.000000000 Z
13
+ date: 2019-03-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: minitest