opulent 1.7.5 → 1.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 649d50c129f267ce100a631b1b11b6d36594e77c
4
- data.tar.gz: cdb46f5248ab2559adb826d865537a789cb78e7f
3
+ metadata.gz: b59b4c5e2bf15d9811ed9d884408670ba01ea886
4
+ data.tar.gz: 1b5bfb6dc4b4ab45977b927c25ffb8da14f0890c
5
5
  SHA512:
6
- metadata.gz: 6af493f6245ab7c7978c6b069aee3cbcf05310cca64f1369decf27a649d60596f7886c236c7f02c899ac5210d20d5b5c05c8ea549694961222b636eacb983f82
7
- data.tar.gz: cb49b39f19db597c5e4ed84dd765ab7fdbc230be033c208117d01d72eb314ec765673168ed5d92ccae2bf9622fe5fbef13ad35e1af690397cd41df90600dce1c
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, code = $', $1
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 "\"#{string_current}\""
343
+ buffer_escape "\'#{string_current}\'"
342
344
  else
343
345
  buffer_freeze string_current
344
346
  end
@@ -1,4 +1,4 @@
1
1
  # @Opulent
2
2
  module Opulent
3
- VERSION = '1.7.5'
3
+ VERSION = '1.7.6'
4
4
  end
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.5
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-14 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler