smooch 0.1.0 → 0.1.1

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.
@@ -117,14 +117,16 @@ module Smooch
117
117
  end
118
118
  out += "]);\n"
119
119
  end
120
- out.html_safe!
120
+ out = out.html_safe if out.respond_to?(:html_safe)
121
+ out
121
122
  end
122
123
  def push_set(hash)
123
124
  out = ""
124
125
  hash.each do |key, value|
125
126
  out += "_kmq.push(['set', {'#{js(key)}' : '#{js(value)}'}]);\n"
126
127
  end
127
- out.html_safe!
128
+ out = out.html_safe if out.respond_to?(:html_safe)
129
+ out
128
130
  end
129
131
 
130
132
  def api_key
@@ -160,8 +162,9 @@ module Smooch
160
162
  out += push_set(@sets)
161
163
  out += push_set(@choices)
162
164
 
163
- out += "</script>\n"
164
- out.html_safe!
165
+ out += "</script>\n"
166
+ out = out.html_safe if out.respond_to?(:html_safe)
167
+ out
165
168
  end
166
169
 
167
170
 
@@ -1,3 +1,3 @@
1
1
  module Smooch
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smooch
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Brian Leonard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-05 00:00:00 -08:00
18
+ date: 2011-02-07 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies: []
21
21