flooph 0.1.3 → 0.2

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 +5 -5
  2. data/lib/flooph.rb +2 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f718ff84dd25dade90072186cde278b586f39657
4
- data.tar.gz: 689471893e0b67601c5a7041c81ac89c109e17dc
2
+ SHA256:
3
+ metadata.gz: c694a2233ea418e1abfb91cbf3b3ae6829bbed7e1fd88bff779f9585e6ac4217
4
+ data.tar.gz: fdd9d311cd3a30b64cd77d06623356dbe697029b7cf47a7a2fe2b082da568a90
5
5
  SHA512:
6
- metadata.gz: a67d8d7e1b85e23d0a0fb066a64e7e5d051c2ee5eb39e19fcadf5f331580d7aac034ec8d3e252a69f77cf73af3313e8529cb561bfa79435e1cb929499f781acf
7
- data.tar.gz: b959cabe0b642938216d70c474a787f4cab09ee1932e45e3521bbb12391ccde69667995e9a9312eb6d144fd8c6144c680370152b5e80ad408e5fb09456abc4eb
6
+ metadata.gz: 8b93419ccbad169bf7fd6dabca107188df2e96b0bf95e51cc266afcb0437793a5b7f9b86510c3570df18e87756c2f30617684f9b85764d893f9532050938afe9
7
+ data.tar.gz: 4a9168903e1260e07e08f7292064a0d8dd0696f7967d590503b2cb41d9253751c3b8d3d86580c62b0072d6c1047de8c014b2a8a7dc0c7ee24a7b7dcdf8f04907
@@ -1,7 +1,7 @@
1
1
  require 'parslet'
2
2
 
3
3
  class Flooph < Parslet::Parser
4
- VERSION = '0.1.3'
4
+ VERSION = '0.2'
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.
@@ -132,9 +132,9 @@ class Flooph < Parslet::Parser
132
132
  tree = send(root_rule).parse(str)
133
133
  Transform.new.eval(tree, @vars)
134
134
  rescue Parslet::ParseFailed => error
135
+ raise unless $DEBUG
135
136
  puts "Flooph failed to parse #{str.inspect}"
136
137
  puts error.parse_failure_cause.ascii_tree
137
- puts
138
138
  # TODO: catch transformation errors
139
139
  end
140
140
  end
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.3
4
+ version: '0.2'
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-14 00:00:00.000000000 Z
11
+ date: 2018-04-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  version: '0'
62
62
  requirements: []
63
63
  rubyforge_project:
64
- rubygems_version: 2.6.14
64
+ rubygems_version: 2.7.6
65
65
  signing_key:
66
66
  specification_version: 4
67
67
  summary: A template markup and evaluator designed to be simple and safe from malicious