ganalytics 0.0.1 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in ganalytics.gemspec
4
3
  gemspec
@@ -1,5 +1,5 @@
1
1
  module Ganalytics
2
2
  class << self
3
- attr_accessor :google_account
3
+ attr_accessor :google_tracking_id
4
4
  end
5
5
  end
@@ -1,11 +1,11 @@
1
1
  module Ganalytics
2
2
  module GoogleAnalyticsFilter
3
3
  def add_google_analytics
4
- return unless (Ganalytics.google_account.present? and request.env['SERVER_NAME'] != 'localhost')
4
+ return unless (Ganalytics.google_tracking_id.present? and request.env['SERVER_NAME'] != 'localhost')
5
5
 
6
6
  google_code = "<script type=\"text/javascript\">
7
7
  var _gaq = _gaq || [];
8
- _gaq.push(['_setAccount', '#{Ganalytics.google_account}']);
8
+ _gaq.push(['_setAccount', '#{Ganalytics.google_tracking_id}']);
9
9
  _gaq.push(['_trackPageview']);
10
10
 
11
11
  (function() {
@@ -1,3 +1,3 @@
1
1
  module Ganalytics
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ganalytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.12
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: