analytical 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
data/analytical.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{analytical}
8
- s.version = "1.1.0"
8
+ s.version = "1.1.1"
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"]
12
- s.date = %q{2010-06-25}
12
+ s.date = %q{2010-06-26}
13
13
  s.description = %q{Gem for managing multiple analytics services in your rails app.}
14
14
  s.email = %q{josh@transfs.com}
15
15
  s.extra_rdoc_files = [
@@ -9,7 +9,7 @@ module Analytical
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:body_append
12
+ return '' unless init_location?(location)
13
13
 
14
14
  @initializing = true
15
15
  html = "<!-- Analytical Init: Google Adwords -->\n"
@@ -44,6 +44,10 @@ module Analytical
44
44
  command_strings
45
45
  end
46
46
 
47
+ def init_location?(location)
48
+ @tracking_command_location==location
49
+ end
50
+
47
51
  end
48
52
  end
49
53
  end
@@ -9,7 +9,7 @@ module Analytical
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:body_append
12
+ return '' unless init_location?(location)
13
13
 
14
14
  protocol = options[:ssl] ? 'https' : 'http'
15
15
 
@@ -5,11 +5,11 @@ module Analytical
5
5
 
6
6
  def initialize(parent, options={})
7
7
  super
8
- @tracking_command_location = :head
8
+ @tracking_command_location = :body_append
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:head
12
+ return '' unless init_location?(location)
13
13
  js = <<-HTML
14
14
  <!-- Analytical Init: Console -->
15
15
  <script type="text/javascript">
@@ -9,7 +9,7 @@ module Analytical
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:body_append
12
+ return '' unless init_location?(location)
13
13
  code_url = "#{options[:key][0,4]}/#{options[:key][4,4]}"
14
14
  protocol = options[:ssl] ? 'https' : 'http'
15
15
  js = <<-HTML
@@ -9,7 +9,7 @@ module Analytical
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:body_prepend
12
+ return '' unless init_location?(location)
13
13
  js = <<-HTML
14
14
  <!-- Analytical Init: Google -->
15
15
  <script type="text/javascript">
@@ -9,7 +9,7 @@ module Analytical
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:body_append
12
+ return '' unless init_location?(location)
13
13
  js = <<-HTML
14
14
  <!-- Analytical Init: Hubspot -->
15
15
  <script type="text/javascript" language="javascript">
@@ -9,7 +9,7 @@ module Analytical
9
9
  end
10
10
 
11
11
  def init_javascript(location)
12
- return '' unless location==:body_prepend
12
+ return '' unless init_location?(location)
13
13
  js = <<-HTML
14
14
  <!-- Analytical Init: KissMetrics -->
15
15
  <script type="text/javascript">
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: analytical
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 0
10
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Krall
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-25 00:00:00 -05:00
18
+ date: 2010-06-26 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency