garails 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
module Garails::JavascriptHelper
|
2
|
-
def google_analytics_tracking_javascript
|
2
|
+
def google_analytics_tracking_javascript(extra_account=nil)
|
3
3
|
if Garails.ga_setup?
|
4
|
-
render :partial => "garails/google_analytics"
|
4
|
+
render :partial => "garails/google_analytics", :locals => { :extra_account => extra_account }
|
5
5
|
else
|
6
6
|
render :partial => "garails/no_google_analytics"
|
7
7
|
end
|
@@ -5,6 +5,10 @@
|
|
5
5
|
<% unless Garails.ga_cookie_domain.blank? -%>
|
6
6
|
_gaq.push(['_setDomainName', '<%= Garails.ga_cookie_domain %>']);
|
7
7
|
<% end -%>
|
8
|
+
<% if extra_account %>
|
9
|
+
_gaq.push(['b._setAccount', '<%= extra_account %>']);
|
10
|
+
<% end %>
|
11
|
+
|
8
12
|
_gaq.push(['_trackPageview']);
|
9
13
|
(function() {
|
10
14
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
data/lib/garails/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,12 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
13
|
-
default_executable:
|
12
|
+
date: 2011-09-23 00:00:00.000000000Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: gabbara
|
17
|
-
requirement: &
|
16
|
+
requirement: &2157115260 !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
18
|
requirements:
|
20
19
|
- - ~>
|
@@ -22,7 +21,7 @@ dependencies:
|
|
22
21
|
version: 0.0.5
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements: *
|
24
|
+
version_requirements: *2157115260
|
26
25
|
description: Google Analytics for Rails
|
27
26
|
email: michael@mobalean.com
|
28
27
|
executables: []
|
@@ -71,7 +70,6 @@ files:
|
|
71
70
|
- test/test_app/public/favicon.ico
|
72
71
|
- test/test_app/script/rails
|
73
72
|
- test/test_helper.rb
|
74
|
-
has_rdoc: true
|
75
73
|
homepage: http://github.com/mreinsch/garails
|
76
74
|
licenses: []
|
77
75
|
post_install_message:
|
@@ -92,8 +90,33 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
90
|
version: '0'
|
93
91
|
requirements: []
|
94
92
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.6
|
93
|
+
rubygems_version: 1.8.6
|
96
94
|
signing_key:
|
97
95
|
specification_version: 3
|
98
96
|
summary: Google Analytics for Rails
|
99
|
-
test_files:
|
97
|
+
test_files:
|
98
|
+
- test/controllers/google_analytics_controller_test.rb
|
99
|
+
- test/test_app/.gitignore
|
100
|
+
- test/test_app/app/controllers/application_controller.rb
|
101
|
+
- test/test_app/app/helpers/application_helper.rb
|
102
|
+
- test/test_app/app/views/layouts/application.html.erb
|
103
|
+
- test/test_app/config.ru
|
104
|
+
- test/test_app/config/application.rb
|
105
|
+
- test/test_app/config/boot.rb
|
106
|
+
- test/test_app/config/database.yml
|
107
|
+
- test/test_app/config/environment.rb
|
108
|
+
- test/test_app/config/environments/test.rb
|
109
|
+
- test/test_app/config/initializers/backtrace_silencers.rb
|
110
|
+
- test/test_app/config/initializers/garails.rb
|
111
|
+
- test/test_app/config/initializers/inflections.rb
|
112
|
+
- test/test_app/config/initializers/mime_types.rb
|
113
|
+
- test/test_app/config/initializers/secret_token.rb
|
114
|
+
- test/test_app/config/initializers/session_store.rb
|
115
|
+
- test/test_app/config/routes.rb
|
116
|
+
- test/test_app/db/seeds.rb
|
117
|
+
- test/test_app/public/404.html
|
118
|
+
- test/test_app/public/422.html
|
119
|
+
- test/test_app/public/500.html
|
120
|
+
- test/test_app/public/favicon.ico
|
121
|
+
- test/test_app/script/rails
|
122
|
+
- test/test_helper.rb
|