utopia-tags-google-analytics 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6be6c57abbbc9b5fa52d8b216cac1f03eb258ca
4
- data.tar.gz: a7818db84ab76a92120ebbab878176d9c9d7688f
3
+ metadata.gz: fe1eaf3379385cf8aa4db8500bc7452377a68cc5
4
+ data.tar.gz: 8e3981afccceeb328824ab545f5c8bff04ab2088
5
5
  SHA512:
6
- metadata.gz: f01322b073142d27137462e9035d2dc847b501df7335ba4fcb07299dde152141c1b19e8154e2176a60d4403fd577b20203a74c562edc1e8880c08f86cb618840
7
- data.tar.gz: d206975c915bedeae9bc182a1f0c428b82d128045ad3ebbdcd957b5522d0014ab7df68c68924c0243ad1163e1993bcc4fc7132f82e00d3d9f876682fa35ed67f
6
+ metadata.gz: 34a39dbfab7ddf0765709f6db4e91746da86ddcd3788a9cad53252963ff1b8d0043fdd28a6a9bc266288822e2741d9eaccfc8988657c1ea18f5b1522465ac6b2
7
+ data.tar.gz: 0dd65c471d183dc3dc4d776af7b415c890f96d44ee3a51575918fb07131f48c7d261dbfcd608359940c1ab5240128878df947423b230c4b47d07619ab7364e45
data/README.md CHANGED
@@ -20,11 +20,27 @@ Or install it yourself as:
20
20
 
21
21
  ## Usage
22
22
 
23
- You might want to combine this tag with the `<env>` tag to ensure that Google Analytics is only tracked in production. Simply set the `id` attribute to whatever you have been provided by Google Analytics:
23
+ First make sure to add the `<google-analytics>` tag to `Utopia::Content` in your rackup file along with all the other tags you
24
+ wish to use:
24
25
 
25
- <env only="production">
26
+ ```ruby
27
+ require 'utopia/tags/google-analytics'
28
+
29
+ ...
30
+
31
+ use Utopia::Content,
32
+ tags: {
33
+ ...
34
+ 'google-analytics' => Utopia::Tags::GoogleAnalytics,
35
+ ...
36
+ }
37
+ ```
38
+
39
+ You might want to combine this tag with the `<environment>` tag to ensure that Google Analytics is only tracked in production. Simply set the `id` attribute to whatever you have been provided by Google Analytics:
40
+
41
+ <environment only="production">
26
42
  <google-analytics id="UA-XXXXXXX-XX" />
27
- </env>
43
+ </environment>
28
44
 
29
45
  ## Contributing
30
46
 
@@ -1,7 +1,7 @@
1
1
  module Utopia
2
2
  module Tags
3
3
  module GoogleAnalytics
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.3"
5
5
  end
6
6
  end
7
7
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
25
25
  spec.require_paths = ["lib"]
26
26
 
27
- spec.add_dependency "utopia", "~> 1.6.0"
27
+ spec.add_dependency "utopia", "~> 1.6"
28
28
  spec.add_dependency "json"
29
29
 
30
30
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-tags-google-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-01 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: utopia
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.0
19
+ version: '1.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.0
26
+ version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement