rack-google-analytics 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTIyMTU0ZmZlMTc5OTU3NzAzYzU1M2NiYjkyNjdkNGE1NGNlOGM4Zg==
5
- data.tar.gz: !binary |-
6
- YTczNzZkYzBlN2IzN2ZjYzllNThmOTNjYmFiY2UyN2Y2MWQxZDVjNQ==
2
+ SHA1:
3
+ metadata.gz: 1eaeb00a8c6306171e26372f1a51499adfb21113
4
+ data.tar.gz: 8dccab5c7eef3773a300eac2caacbbe7b4dad6b1
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MzdiYzkxOTM1YzU3YjZlY2Q0NzNiZTFhM2QzMGQ3YzI0NDU2ODI2ZTBhYmE0
10
- YTQzNmUxNjdmZDhmY2ZkZDYyNzAzNTg5Y2EwMTdmNTA3OTFlZDk0ZDI4NzI0
11
- ODU5YzhiZmUyNjc5ZGZiNWE3ZTczZGUzYjEyYmFmNGYxMjc4YTk=
12
- data.tar.gz: !binary |-
13
- ZjY5MmI5ZTY5NGRiOTNlZmU3YWZmY2UwZWMzODEyNjYzN2Q1YmYyM2ZlYmVh
14
- YmFkN2E5YTY0NThhMDU4ZGEzMGNmODkxYzQ1Y2JlMDg5ZTExMzQyMTNlNzg1
15
- MGY3NjkyNzYxZDJlOTczZTQ4ZDRjN2Y1OWY1MWFhNjk5ZWJlY2I=
6
+ metadata.gz: d0d544e0a38e8b7f2729dd9bd396f90975502683a46a8bd3cfa7f0acb46f01abc41052208b7f27de1507066675d4e48c1123435965f508b05e62e4700e4392d7
7
+ data.tar.gz: 3e3da13d1f86dd442ab1d9a2487445f7b00679d3cdc8b8e754f6219ed0f40a70543516ba7f4f7a30044154dddb15d742a102cc96b0f9ef595135be380ab7d574
@@ -6,7 +6,7 @@ module Rack
6
6
  class GoogleAnalytics
7
7
 
8
8
  EVENT_TRACKING_KEY = "google_analytics.event_tracking"
9
- DEFAULT = { async: true, enhanced_link_attribution: false }
9
+ DEFAULT = { async: true, enhanced_link_attribution: false, advertising: false }
10
10
 
11
11
  def initialize(app, options = {})
12
12
  @app, @options = app, DEFAULT.merge(options)
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class GoogleAnalytics
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
@@ -31,6 +31,11 @@
31
31
  <% end
32
32
  end
33
33
  %>
34
+
35
+ <% if @options[:advertising] %>
36
+ ga('require', 'displayfeatures');
37
+ <% end %>
38
+
34
39
  <% if @options[:tracker] %>
35
40
  ga('send', 'pageview');
36
41
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-google-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Hambley
@@ -9,104 +9,104 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-23 00:00:00.000000000 Z
12
+ date: 2014-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ! '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ! '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: '0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: activesupport
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ! '>='
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ! '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
48
  version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ! '>='
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
55
  version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: test-unit
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.5'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.5'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: shoulda
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '2.11'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '2.11'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rack
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: '1.2'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: '1.2'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rack-test
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0.5'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0.5'
112
112
  description: Simple Rack middleware for implementing google analytics tracking in
@@ -138,12 +138,12 @@ require_paths:
138
138
  - lib
139
139
  required_ruby_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - ! '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  requirements:
146
- - - ! '>='
146
+ - - ">="
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements: []