utopia-tags-google-analytics 1.0.0 → 1.0.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 883223db2eff57012b021a3d98c522ff9ffa1076
4
- data.tar.gz: 81e5ae9354935b7e7ae2f3bc31f8544acc34d621
3
+ metadata.gz: 03556a7c0a95b851caa60b5af89c1c51e22e2f03
4
+ data.tar.gz: cdba11c51794d9fe1ef3a39b53c0c60e76864617
5
5
  SHA512:
6
- metadata.gz: 137401067d3c9835ba04a41538fb818b8136268a7bba037d6c73107eaec352404627f3e7ea43afcb9cdd9f2f1913e47240aa4c70bca2b219f420c1af2235b53a
7
- data.tar.gz: d6ca65f671f0d56d548c213eb41bf1f38d338ba75d439830b75dd2bddd54abbf40b8bd78ea92ad001049e630c17d63099d043bcc07b5de8a5d447ef8a3a97df8
6
+ metadata.gz: e039dc84204b9c73030c65f58f9cc09376c73747ab43897e9cb96d48709bf0df53e29b1c53d81b735d2d4b6104f199734019e993a5c9cda047929c191ebcabdd
7
+ data.tar.gz: 043603f2ac13bc506c321afe9bb7447b84b328f9fd936dcadd52bc6c0872c8b240a3b2f41a9da7ac1483c1854fd1e7a49b2253531c8699a8084e96ec9e86b861
@@ -18,6 +18,8 @@
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 'json'
22
+
21
23
  module Utopia
22
24
  module Tags
23
25
  module GoogleAnalytics
@@ -31,7 +33,7 @@ module Utopia
31
33
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
32
34
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
33
35
 
34
- ga('create', #{Trenni::Strings.to_quoted_string(id)}, 'auto');
36
+ ga('create', #{JSON.dump(id)}, 'auto');
35
37
  ga('send', 'pageview');
36
38
  </script>
37
39
  EOF
@@ -1,7 +1,7 @@
1
1
  module Utopia
2
2
  module Tags
3
3
  module GoogleAnalytics
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
6
6
  end
7
7
  end
@@ -10,9 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["samuel.williams@oriontransfer.co.nz"]
11
11
  spec.description = <<-EOF
12
12
  Utopia is a website generation framework which provides a robust set of tools
13
- to build highly complex dynamic websites. It uses the filesystem heavily for
14
- content and provides frameworks for interacting with files and directories as
15
- structure representing the website.
13
+ to build highly complex dynamic websites.
16
14
 
17
15
  This package includes a useful <google-analytics> tag for easily integrating
18
16
  with Google Analytics.
@@ -26,8 +24,9 @@ Gem::Specification.new do |spec|
26
24
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
27
25
  spec.require_paths = ["lib"]
28
26
 
27
+ spec.add_dependency "utopia", "~> 1.0"
28
+ spec.add_dependency "json"
29
+
29
30
  spec.add_development_dependency "bundler", "~> 1.3"
30
31
  spec.add_development_dependency "rake"
31
-
32
- spec.add_dependency "utopia", "~> 1.0"
33
32
  end
metadata CHANGED
@@ -1,37 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia-tags-google-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-29 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: bundler
14
+ name: utopia
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
20
- type: :development
19
+ version: '1.0'
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.3'
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
- type: :development
34
+ type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
@@ -39,24 +39,37 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: utopia
42
+ name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
48
- type: :runtime
47
+ version: '1.3'
48
+ type: :development
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: '1.0'
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: "\t\tUtopia is a website generation framework which provides a robust
56
- set of tools\n\t\tto build highly complex dynamic websites. It uses the filesystem
57
- heavily for\n\t\tcontent and provides frameworks for interacting with files and
58
- directories as\n\t\tstructure representing the website.\n\n\t\tThis package includes
59
- a useful <google-analytics> tag for easily integrating\n\t\twith Google Analytics.\n"
70
+ set of tools\n\t\tto build highly complex dynamic websites.\n\n\t\tThis package
71
+ includes a useful <google-analytics> tag for easily integrating\n\t\twith Google
72
+ Analytics.\n"
60
73
  email:
61
74
  - samuel.williams@oriontransfer.co.nz
62
75
  executables: []