opulent 1.7.5 → 1.7.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opulent/compiler/buffer.rb +6 -4
- 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: b59b4c5e2bf15d9811ed9d884408670ba01ea886
|
4
|
+
data.tar.gz: 1b5bfb6dc4b4ab45977b927c25ffb8da14f0890c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb0efc02944e95e2f92d07679b5d4d626ed535c5e860e65f4430c2e0cd21b01080069093541ddcfac5f1be236480564b7705b8da57baf2860c24cf24e905c177
|
7
|
+
data.tar.gz: 2e16fb13de65c3914eb51bc7424f84b20a98c8d16dedf954d35d3d9ec2b80801122e6630a9d5e692a73affc8b195c9dee136b64dda8be0df9290fc67b89f5a8c
|
@@ -319,26 +319,28 @@ module Opulent
|
|
319
319
|
# Split the text into multiple dynamic and static parts.
|
320
320
|
begin
|
321
321
|
case string
|
322
|
-
when /\A
|
322
|
+
when /\A\\\#\{/
|
323
323
|
# Escaped interpolation
|
324
324
|
buffer_freeze '#{'
|
325
325
|
string = $'
|
326
326
|
when /\A#\{((?>[^{}]|(\{(?>[^{}]|\g<1>)*\}))*)\}/
|
327
327
|
# Interpolation
|
328
|
-
string
|
328
|
+
string = $'
|
329
|
+
code = $1
|
330
|
+
|
329
331
|
# escape = code !~ /\A\{.*\}\Z/
|
330
332
|
if escape
|
331
333
|
buffer code
|
332
334
|
else
|
333
335
|
buffer_escape code[1..-2]
|
334
336
|
end
|
335
|
-
when /\A([
|
337
|
+
when /\A([\\#]?[^#\\]*([#\\][^\\#\{][^#\\]*)*)/
|
336
338
|
string_remaining = $'
|
337
339
|
string_current = $&
|
338
340
|
|
339
341
|
# Static text
|
340
342
|
if escape && string_current =~ Utils::ESCAPE_HTML_PATTERN
|
341
|
-
buffer_escape "\
|
343
|
+
buffer_escape "\'#{string_current}\'"
|
342
344
|
else
|
343
345
|
buffer_freeze string_current
|
344
346
|
end
|
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.7.
|
4
|
+
version: 1.7.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Grozav
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|