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 CHANGED
@@ -14,5 +14,5 @@ Gem::Specification.new do |gem|
14
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
15
15
  gem.name = "dailycred"
16
16
  gem.require_paths = ["lib"]
17
- gem.version = "0.1.23"
17
+ gem.version = "0.1.24"
18
18
  end
@@ -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
- <!--<script src="#{@opts[:url]}/public/js/dailycred.coffee"></script>
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dailycred
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.23
4
+ version: 0.1.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: