fifty 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/fifty.rb +7 -3
  2. metadata +1 -1
data/lib/fifty.rb CHANGED
@@ -6,7 +6,7 @@ module Fifty
6
6
  require 'json'
7
7
 
8
8
  # Version of the gem.
9
- VERSION = '0.1.0'
9
+ VERSION = '0.1.1'
10
10
 
11
11
  # Class-level variables.
12
12
 
@@ -289,7 +289,7 @@ module Fifty
289
289
 
290
290
  # Escape double and triple-mustaches.
291
291
  def self.escape_hbs(partial)
292
- 4.times do
292
+ 2.times do
293
293
  partial.gsub!("{{", "{%{")
294
294
  partial.gsub!("}}", "}%}")
295
295
  end
@@ -298,7 +298,11 @@ module Fifty
298
298
 
299
299
  # Unescape double and triple-mustaches.
300
300
  def self.unescape_hbs(html)
301
- html.gsub("{%{", "{{").gsub("}%}", "}}")
301
+ 2.times do
302
+ html.gsub!("{%{", "{{")
303
+ html.gsub!("}%}", "}}")
304
+ end
305
+ html
302
306
  end
303
307
 
304
308
  # * Helper-related methods * #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fifty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: