opulent 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opulent/parser/text.rb +3 -3
- data/lib/opulent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d758a429a90aab4b943410bbb954b971f85c9a3
|
4
|
+
data.tar.gz: c9c89220aa3f00c3b9ddc007029c2fc413fba917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f008cdeea38b4421f7d65c3256781d25c184fa492821b0a9b7c92d6d7ce384c1750e189daa9033510ac8be7e42514c8bdbbe25f89eb9d12fdf3b65d0dd1a208
|
7
|
+
data.tar.gz: 9637a8d9741ae1ec2ae980c0b68975c469afc9d92a706576e2089d28430697e2150ee94e457fa137aa62e1ad3c315fff404a50315a837a0f6d3bdcff712ae87b
|
data/lib/opulent/parser/text.rb
CHANGED
@@ -20,15 +20,15 @@ module Opulent
|
|
20
20
|
# Get text node type
|
21
21
|
type = accept(:print) ? :print : :text
|
22
22
|
|
23
|
-
# Check if the text or print node is escaped or unescaped
|
24
|
-
escaped = accept(:unescaped_value) ? false : true
|
25
|
-
|
26
23
|
# Get leading whitespace
|
27
24
|
leading_whitespace = accept(:leading_whitespace)
|
28
25
|
|
29
26
|
# Get trailing whitespace
|
30
27
|
trailing_whitespace = accept(:trailing_whitespace)
|
31
28
|
|
29
|
+
# Check if the text or print node is escaped or unescaped
|
30
|
+
escaped = accept(:unescaped_value) ? false : true
|
31
|
+
|
32
32
|
# Get text value
|
33
33
|
value = accept :line_feed
|
34
34
|
value = value[1..-1] if value[0] == '\\'
|
data/lib/opulent/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opulent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Grozav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|