tarteaucitron 0.2.0 → 0.3.0

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.
@@ -1,3 +1,3 @@
1
1
  module Tarteaucitron
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -16,21 +16,21 @@ module Tarteaucitron
16
16
  "removeCredit"=> false,
17
17
  }
18
18
  script = "tarteaucitron.init(#{default.to_json});"
19
- if options.has_key?("google_analytics")
19
+ if options["google_analytics"]
20
20
  script += "tarteaucitron.user.gajsUa = '#{options["google_analytics"]}';"
21
21
  script += "tarteaucitron.user.gajsMore = function () {};"
22
22
  script += "(tarteaucitron.job = tarteaucitron.job || []).push('gajs');"
23
23
  end
24
24
 
25
- if options.has_key?("facebook")
25
+ if options["facebook"]
26
26
  script += "(tarteaucitron.job = tarteaucitron.job || []).push('facebook');"
27
27
  end
28
28
 
29
- if options.has_key?("googleplus")
29
+ if options["googleplus"]
30
30
  script += "(tarteaucitron.job = tarteaucitron.job || []).push('gplus');"
31
31
  end
32
32
 
33
- if options.has_key?("twitter")
33
+ if options["twitter"]
34
34
  script += "(tarteaucitron.job = tarteaucitron.job || []).push('twitter');"
35
35
  end
36
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tarteaucitron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: