dailycred 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- data/dailycred.gemspec +1 -1
- data/lib/middleware/middleware.rb +3 -2
- metadata +1 -1
data/dailycred.gemspec
CHANGED
@@ -6,6 +6,7 @@ class Dailycred
|
|
6
6
|
@opts = opts
|
7
7
|
@opts[:url] ||= "https://www.dailycred.com"
|
8
8
|
@opts[:modal] ||= false
|
9
|
+
@opts[:sdk] ||= false
|
9
10
|
@opts[:triggers] ||= []
|
10
11
|
@app = app
|
11
12
|
@client_id = client_id
|
@@ -53,13 +54,13 @@ class Dailycred
|
|
53
54
|
document.body.appendChild(dc);
|
54
55
|
}).call(this);
|
55
56
|
</script>
|
56
|
-
|
57
|
+
#{'<!--' unless @opts[:sdk]}<script src="#{@opts[:url]}/public/js/dailycred.coffee"></script>
|
57
58
|
<script>
|
58
59
|
DC.init({
|
59
60
|
"showModal" : #{@opts[:modal]},
|
60
61
|
"triggers" : #{@opts[:triggers].to_s}
|
61
62
|
});
|
62
|
-
</script
|
63
|
+
</script>#{'-->' unless @opts[:sdk]}
|
63
64
|
<!-- end dailycred -->
|
64
65
|
EOT
|
65
66
|
end
|