analytical 0.14.0 → 0.15.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.14.0
1
+ 0.15.0
data/analytical.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{analytical}
8
- s.version = "0.14.0"
8
+ s.version = "0.15.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Joshua Krall"]
@@ -32,6 +32,7 @@ module Analytical
32
32
  # value: 0
33
33
  #
34
34
  def event(name, *args)
35
+ data = args.first || {}
35
36
  html = ''
36
37
  if conversion = options[name]
37
38
  html = <<-HTML
@@ -43,7 +44,7 @@ module Analytical
43
44
  var google_conversion_format = "#{conversion[:format]}";
44
45
  var google_conversion_color = "#{conversion[:color]}";
45
46
  var google_conversion_label = "#{conversion[:label]}";
46
- var google_conversion_value = #{conversion[:value]};
47
+ var google_conversion_value = #{data[:value] || conversion[:value]};
47
48
  /* ]]> */
48
49
  </script>
49
50
  <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"></script>
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 14
7
+ - 15
8
8
  - 0
9
- version: 0.14.0
9
+ version: 0.15.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joshua Krall