barber 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -68,7 +68,7 @@ module Barber
68
68
  end
69
69
 
70
70
  def sanitize_with_execjs(template)
71
- context.eval("'#{template}'")
71
+ template.nil? ? " " : context.eval("'#{template}'")
72
72
  end
73
73
 
74
74
  def sanitize_with_regexp(template)
@@ -1,3 +1,3 @@
1
1
  module Barber
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: barber
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.1
5
+ version: 0.3.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - tchak
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-13 00:00:00.000000000 Z
13
+ date: 2013-02-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  type: :runtime
@@ -119,7 +119,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  segments:
121
121
  - 0
122
- hash: 770785921194956610
122
+ hash: 306443171706684444
123
123
  version: '0'
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  - !ruby/object:Gem::Version
129
129
  segments:
130
130
  - 0
131
- hash: 770785921194956610
131
+ hash: 306443171706684444
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project: