flooph 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flooph.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28f98cd187750e628f79e3dd298d7d3f27ae9911
4
- data.tar.gz: c0bca7b0c97038f0f5dbc23cdce33e1d78feb0fe
3
+ metadata.gz: 397455cd933754f2e32524faf8fd77174b449924
4
+ data.tar.gz: 381df232799f92c66646faa4805fbf9262ed0470
5
5
  SHA512:
6
- metadata.gz: 3f1fc0c32ed6b6d12fbda06a5c647446cc8fb319a0a62228dfd828914c7f6985d3c31ab49a7fa9fe5b8c3f5b167acb3a6dd4d04efc84c7fe7ec69f7b6352344a
7
- data.tar.gz: 32e845a6d33ab09a451bc74e3d72133a575f9b6484f9f942ec59f6d8c55c61db42123b2e2c4c81162c53e3958f8c459768a65e567020bc07d4fe273d8f48c784
6
+ metadata.gz: 409848c4904545dcee4b1a21a9e4ab07c18a0fbb073d179a8448832705c5014230d64ab98d11b4bdd7640b140cb718680ef1c2275c90000f4c71ada39292ab42
7
+ data.tar.gz: 20aa112d7f471bf833ee054cc4ced58b1c6528beb4d0628a4a26fdf82d24ce008367874d82d4c9b4f660ddba7cb78ac3148f6aaa9e22024c6fe84b8e1cc6a8c4
data/lib/flooph.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'parslet'
2
2
 
3
3
  class Flooph < Parslet::Parser
4
- VERSION = 0.1
4
+ VERSION = '0.1.1'
5
5
 
6
6
  # The current values used when evaluating templates and conditionals.
7
7
  # Can also be updated by user input using #update_variables.
@@ -166,7 +166,7 @@ class Flooph < Parslet::Parser
166
166
  rule(:cmpOp) { (match['<>='] >> str('=').maybe) | match['≤≥≠'] | str('!=') }
167
167
 
168
168
  # assignment
169
- rule(:varset){ pair >> (match("\n") >> pair.maybe).repeat }
169
+ rule(:varset){ pair >> (str("\r").maybe >> str("\n") >> pair.maybe).repeat }
170
170
  rule(:pair) { var.as(:set) >> sp >> str(':') >> sp >> value.as(:val) >> sp }
171
171
  rule(:value) { bool | adds | num | text | var.as(:lookup) }
172
172
  rule(:adds) { (var.as(:lookup) | num).as(:a) >> sp >> match['+-'].as(:addOp) >> sp >> (var.as(:lookup) | num).as(:b) }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flooph
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Kistner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-08 00:00:00.000000000 Z
11
+ date: 2018-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet