smeagol 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,20 @@
|
|
9
9
|
<!--[if lt IE 9]>
|
10
10
|
<script src="/smeagol/html5.js"></script>
|
11
11
|
<![endif]-->
|
12
|
+
|
13
|
+
{{#tracking_id}}
|
14
|
+
<script type="text/javascript">
|
15
|
+
var _gaq = _gaq || [];
|
16
|
+
_gaq.push(['_setAccount', '{{{tracking_id}}}']);
|
17
|
+
_gaq.push(['_trackPageview']);
|
18
|
+
|
19
|
+
(function() {
|
20
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
21
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
22
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
23
|
+
})();
|
24
|
+
</script>
|
25
|
+
{{/tracking_id}}
|
12
26
|
</head>
|
13
27
|
|
14
28
|
<body>
|
@@ -8,6 +8,20 @@
|
|
8
8
|
<!--[if lt IE 9]>
|
9
9
|
<script src="/smeagol/html5.js"></script>
|
10
10
|
<![endif]-->
|
11
|
+
|
12
|
+
{{#tracking_id}}
|
13
|
+
<script type="text/javascript">
|
14
|
+
var _gaq = _gaq || [];
|
15
|
+
_gaq.push(['_setAccount', '{{{tracking_id}}}']);
|
16
|
+
_gaq.push(['_trackPageview']);
|
17
|
+
|
18
|
+
(function() {
|
19
|
+
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
20
|
+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
21
|
+
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
22
|
+
})();
|
23
|
+
</script>
|
24
|
+
{{/tracking_id}}
|
11
25
|
</head>
|
12
26
|
|
13
27
|
<body>
|
data/lib/smeagol/version.rb
CHANGED
data/lib/smeagol/views/base.rb
CHANGED
@@ -27,6 +27,11 @@ module Smeagol
|
|
27
27
|
wiki.settings.source_url
|
28
28
|
end
|
29
29
|
|
30
|
+
# Public: The Google Analytics tracking id from the settings file.
|
31
|
+
def tracking_id
|
32
|
+
wiki.settings.tracking_id
|
33
|
+
end
|
34
|
+
|
30
35
|
# Public: The HTML menu generated from the settings.yml file.
|
31
36
|
def menu_html
|
32
37
|
menu = wiki.settings.menu
|
@@ -57,7 +62,7 @@ module Smeagol
|
|
57
62
|
end
|
58
63
|
end
|
59
64
|
|
60
|
-
|
65
|
+
|
61
66
|
##########################################################################
|
62
67
|
#
|
63
68
|
# Internal Methods
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smeagol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben Johnson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-11-21 00:00:00 -07:00
|
19
19
|
default_executable: smeagol
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|