flooph 0.1.3 → 0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/flooph.rb +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c694a2233ea418e1abfb91cbf3b3ae6829bbed7e1fd88bff779f9585e6ac4217
|
4
|
+
data.tar.gz: fdd9d311cd3a30b64cd77d06623356dbe697029b7cf47a7a2fe2b082da568a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b93419ccbad169bf7fd6dabca107188df2e96b0bf95e51cc266afcb0437793a5b7f9b86510c3570df18e87756c2f30617684f9b85764d893f9532050938afe9
|
7
|
+
data.tar.gz: 4a9168903e1260e07e08f7292064a0d8dd0696f7967d590503b2cb41d9253751c3b8d3d86580c62b0072d6c1047de8c014b2a8a7dc0c7ee24a7b7dcdf8f04907
|
data/lib/flooph.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'parslet'
|
2
2
|
|
3
3
|
class Flooph < Parslet::Parser
|
4
|
-
VERSION = '0.
|
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.
|
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-
|
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
|
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
|