parsecs 0.9.0 → 0.9.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60a45f7bed4f8e37362535038632693c74a4aad9d4efd7294d65a2455e218e05
4
- data.tar.gz: 91f3e5ef94961ad9a7020f425f9cd4ce5a295d2b5c17215e3dffeaf7a252498c
3
+ metadata.gz: 787c99411c7e672564b1dafb59bc4827ec8e185d4e44c16fc6446d794f59e726
4
+ data.tar.gz: 5c060e8bc1799a012182014258f02cda546b32f0038c765a56c0c41e75049f25
5
5
  SHA512:
6
- metadata.gz: a507bc067a5cd679c909fe2f582962f8d52050b0a869ce4de18f177a5724d985f807864867df3ac3ebab3e595da243227b84aeb5e211654b5137ae688c05463c
7
- data.tar.gz: 81dad90965c2e7c822844762c27053b1f6615bc8d049ab0d6589222bbd59ca21ce0e9b788cf7ddf1b0616488889ee89e5c04d64fb05fdd0d97f21328cd0d5001
6
+ metadata.gz: e99a93bd999b2e9bb60e664ca89833e007238d8a93cdafb23f6f142b641f9893e228019f3ca8b6298f6e07b865d3370417473026ffb3f36272b44a178d4d39dc
7
+ data.tar.gz: 31c3a16a7dc6e32ebcd54be4c726070ec443100e00e663293c525721c5953f4a3ef23b579a37287db71e3f5f5cabc0e1d22ca55d7c2994444a0b1b3f56a72479
@@ -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 = '8acd8d964531f1b78ef905ccdace7b7b038e9d8d'.freeze
41
+ COMMIT = '8951b6498c465808b897457fe61fb0b52fdc1c65'.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.9.0'.freeze
9
+ VERSION = '0.9.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
@@ -60,9 +60,10 @@ class TestParsec < Minitest::Test
60
60
  assert_equal(5, parser.eval_equation('number("5")'))
61
61
  assert_equal('Hello', parser.eval_equation('left("Hello World", 5)'))
62
62
  assert_equal('World', parser.eval_equation('right("Hello World", 5)'))
63
- assert_equal('<a href=\"http://foo.bar\">Title</a>', parser.eval_equation('link("Title", "http://foo.bar")'))
64
- assert_equal('<a href=\"#\">Title</a>', parser.eval_equation('link("Title", "#")'))
65
- assert_equal('<a href=\"/test\">Test title</a>', parser.eval_equation('link("Test title", "/test")'))
63
+ puts parser.eval_equation('link("Title", "http://foo.bar")')
64
+ assert_equal('<a href="http://foo.bar">Title</a>', parser.eval_equation('link("Title", "http://foo.bar")'))
65
+ assert_equal('<a href="#">Title</a>', parser.eval_equation('link("Title", "#")'))
66
+ assert_equal('<a href="/test">Test title</a>', parser.eval_equation('link("Test title", "/test")'))
66
67
  assert_raises(SyntaxError) { parser.eval_equation_with_type('link()') }
67
68
  assert_raises(SyntaxError) { parser.eval_equation_with_type('link(1, 2, 3)') }
68
69
  assert_raises(SyntaxError) { parser.eval_equation_with_type('link(1, "2")') }
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nilton Vasques