utopia-tags-google-analytics 0.12.1 → 1.0.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.
- checksums.yaml +6 -14
- data/lib/utopia/tags/google-analytics/version.rb +1 -1
- data/lib/utopia/tags/google-analytics.rb +11 -12
- data/utopia-tags-google-analytics.gemspec +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
metadata.gz: !binary |-
|
|
9
|
-
ODY0ZGVlODkzNzczN2M5YTQ5MzcxNmIxNTNjYWQxNjI5ZTU5MWQ4YTcxYWFm
|
|
10
|
-
N2IwYTZiYzQyMDQzN2U4ZWJiMGI4NmYxYzg3MGI4NGY5YjlhNjQ5NWQ5Yjg5
|
|
11
|
-
NThkZGMwNTZjYTRmMTMwZTQyNmNlMTQ3OGJhNDU1YTJkOTYwNmE=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
NDkwNTkyYmMzNjAzOTU5ZjFlNTQ2NDA1MGM1ZmY3Mzg1ZjAyYzA1Yjk4OTZh
|
|
14
|
-
OGIwMzdhMTQzMDEwZjFkM2UyYmUyZjczNTlkZTgyMmQ4NGY0M2M0OWJmMDBj
|
|
15
|
-
MjFkY2NlMjgxOTZjYmRkMWNmMWU3NGFhNTdkYTZkMDQxMTAwMWQ=
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 883223db2eff57012b021a3d98c522ff9ffa1076
|
|
4
|
+
data.tar.gz: 81e5ae9354935b7e7ae2f3bc31f8544acc34d621
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 137401067d3c9835ba04a41538fb818b8136268a7bba037d6c73107eaec352404627f3e7ea43afcb9cdd9f2f1913e47240aa4c70bca2b219f420c1af2235b53a
|
|
7
|
+
data.tar.gz: d6ca65f671f0d56d548c213eb41bf1f38d338ba75d439830b75dd2bddd54abbf40b8bd78ea92ad001049e630c17d63099d043bcc07b5de8a5d447ef8a3a97df8
|
|
@@ -18,27 +18,26 @@
|
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
19
|
# THE SOFTWARE.
|
|
20
20
|
|
|
21
|
-
require 'utopia/tags'
|
|
22
|
-
|
|
23
21
|
module Utopia
|
|
24
22
|
module Tags
|
|
25
23
|
module GoogleAnalytics
|
|
26
24
|
def self.call(transaction, state)
|
|
25
|
+
id = state['id']
|
|
26
|
+
|
|
27
27
|
html = <<-EOF
|
|
28
|
-
<script
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
28
|
+
<script>
|
|
29
|
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
30
|
+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
31
|
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
32
|
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
33
|
+
|
|
34
|
+
ga('create', #{Trenni::Strings.to_quoted_string(id)}, 'auto');
|
|
35
|
+
ga('send', 'pageview');
|
|
35
36
|
</script>
|
|
36
37
|
EOF
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
transaction.cdata(html)
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
end
|
|
42
43
|
end
|
|
43
|
-
|
|
44
|
-
Utopia::Tags.register("google-analytics", Utopia::Tags::GoogleAnalytics)
|
metadata
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: utopia-tags-google-analytics
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '1.3'
|
|
20
20
|
type: :development
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- - ~>
|
|
24
|
+
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.3'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - ">="
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: utopia
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
44
44
|
requirements:
|
|
45
|
-
- - ~>
|
|
45
|
+
- - "~>"
|
|
46
46
|
- !ruby/object:Gem::Version
|
|
47
|
-
version:
|
|
47
|
+
version: '1.0'
|
|
48
48
|
type: :runtime
|
|
49
49
|
prerelease: false
|
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
51
51
|
requirements:
|
|
52
|
-
- - ~>
|
|
52
|
+
- - "~>"
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
|
-
version:
|
|
55
|
-
description:
|
|
54
|
+
version: '1.0'
|
|
55
|
+
description: "\t\tUtopia is a website generation framework which provides a robust
|
|
56
56
|
set of tools\n\t\tto build highly complex dynamic websites. It uses the filesystem
|
|
57
57
|
heavily for\n\t\tcontent and provides frameworks for interacting with files and
|
|
58
58
|
directories as\n\t\tstructure representing the website.\n\n\t\tThis package includes
|
|
@@ -63,7 +63,7 @@ executables: []
|
|
|
63
63
|
extensions: []
|
|
64
64
|
extra_rdoc_files: []
|
|
65
65
|
files:
|
|
66
|
-
- .gitignore
|
|
66
|
+
- ".gitignore"
|
|
67
67
|
- Gemfile
|
|
68
68
|
- README.md
|
|
69
69
|
- Rakefile
|
|
@@ -80,17 +80,17 @@ require_paths:
|
|
|
80
80
|
- lib
|
|
81
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
82
|
requirements:
|
|
83
|
-
- -
|
|
83
|
+
- - ">="
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
85
|
version: '0'
|
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
87
|
requirements:
|
|
88
|
-
- -
|
|
88
|
+
- - ">="
|
|
89
89
|
- !ruby/object:Gem::Version
|
|
90
90
|
version: '0'
|
|
91
91
|
requirements: []
|
|
92
92
|
rubyforge_project:
|
|
93
|
-
rubygems_version: 2.
|
|
93
|
+
rubygems_version: 2.2.2
|
|
94
94
|
signing_key:
|
|
95
95
|
specification_version: 4
|
|
96
96
|
summary: A Google Analytics tag for use with the Utopia web framework.
|