google-tag-manager-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/{LICENSE.txt → MIT-LICENSE} +1 -1
- data/README.md +44 -0
- data/Rakefile +28 -39
- data/lib/google-tag-manager-rails.rb +31 -0
- data/lib/google-tag-manager/rails/railtie.rb +9 -0
- data/lib/google-tag-manager/rails/view_helpers.rb +11 -0
- data/lib/google-tag-manager/version.rb +3 -0
- data/lib/tasks/google-tag-manager_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/log/development.log +2 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/google-tag-manager_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +83 -76
- data/.document +0 -5
- data/.rspec +0 -1
- data/Gemfile +0 -14
- data/README.rdoc +0 -19
- data/VERSION +0 -1
- data/google-tag-manager-rails.gemspec +0 -62
- data/spec/google-tag-manager-rails_spec.rb +0 -7
- data/spec/spec_helper.rb +0 -12
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-tag-manager-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,71 +12,23 @@ cert_chain: []
|
|
12
12
|
date: 2012-10-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: rails
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 2.8.0
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 2.8.0
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: rdoc
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
|
-
requirements:
|
35
|
-
- - ~>
|
36
|
-
- !ruby/object:Gem::Version
|
37
|
-
version: '3.12'
|
38
|
-
type: :development
|
39
|
-
prerelease: false
|
40
|
-
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '3.12'
|
46
|
-
- !ruby/object:Gem::Dependency
|
47
|
-
name: bundler
|
48
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
|
-
requirements:
|
51
|
-
- - ~>
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.2.0
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
|
-
requirements:
|
59
|
-
- - ~>
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 1.2.0
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: jeweler
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
|
-
requirements:
|
67
|
-
- - ~>
|
19
|
+
- - ! '>='
|
68
20
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
70
|
-
type: :
|
21
|
+
version: 3.0.0
|
22
|
+
type: :runtime
|
71
23
|
prerelease: false
|
72
24
|
version_requirements: !ruby/object:Gem::Requirement
|
73
25
|
none: false
|
74
26
|
requirements:
|
75
|
-
- -
|
27
|
+
- - ! '>='
|
76
28
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
29
|
+
version: 3.0.0
|
78
30
|
- !ruby/object:Gem::Dependency
|
79
|
-
name:
|
31
|
+
name: sqlite3
|
80
32
|
requirement: !ruby/object:Gem::Requirement
|
81
33
|
none: false
|
82
34
|
requirements:
|
@@ -93,27 +45,53 @@ dependencies:
|
|
93
45
|
version: '0'
|
94
46
|
description: Use Google Tag Manager ( http://www.google.com/tagmanager/ ) in your
|
95
47
|
Rails application.
|
96
|
-
email:
|
48
|
+
email:
|
49
|
+
- rcsorensen@gmail.com
|
97
50
|
executables: []
|
98
51
|
extensions: []
|
99
|
-
extra_rdoc_files:
|
100
|
-
- LICENSE.txt
|
101
|
-
- README.rdoc
|
52
|
+
extra_rdoc_files: []
|
102
53
|
files:
|
103
|
-
- .
|
104
|
-
- .
|
105
|
-
-
|
106
|
-
- LICENSE.txt
|
107
|
-
- README.rdoc
|
108
|
-
- Rakefile
|
109
|
-
- VERSION
|
110
|
-
- google-tag-manager-rails.gemspec
|
54
|
+
- lib/google-tag-manager/rails/railtie.rb
|
55
|
+
- lib/google-tag-manager/rails/view_helpers.rb
|
56
|
+
- lib/google-tag-manager/version.rb
|
111
57
|
- lib/google-tag-manager-rails.rb
|
112
|
-
-
|
113
|
-
-
|
58
|
+
- lib/tasks/google-tag-manager_tasks.rake
|
59
|
+
- MIT-LICENSE
|
60
|
+
- Rakefile
|
61
|
+
- README.md
|
62
|
+
- test/dummy/app/assets/javascripts/application.js
|
63
|
+
- test/dummy/app/assets/stylesheets/application.css
|
64
|
+
- test/dummy/app/controllers/application_controller.rb
|
65
|
+
- test/dummy/app/helpers/application_helper.rb
|
66
|
+
- test/dummy/app/views/layouts/application.html.erb
|
67
|
+
- test/dummy/config/application.rb
|
68
|
+
- test/dummy/config/boot.rb
|
69
|
+
- test/dummy/config/database.yml
|
70
|
+
- test/dummy/config/environment.rb
|
71
|
+
- test/dummy/config/environments/development.rb
|
72
|
+
- test/dummy/config/environments/production.rb
|
73
|
+
- test/dummy/config/environments/test.rb
|
74
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
75
|
+
- test/dummy/config/initializers/inflections.rb
|
76
|
+
- test/dummy/config/initializers/mime_types.rb
|
77
|
+
- test/dummy/config/initializers/secret_token.rb
|
78
|
+
- test/dummy/config/initializers/session_store.rb
|
79
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
80
|
+
- test/dummy/config/locales/en.yml
|
81
|
+
- test/dummy/config/routes.rb
|
82
|
+
- test/dummy/config.ru
|
83
|
+
- test/dummy/log/development.log
|
84
|
+
- test/dummy/public/404.html
|
85
|
+
- test/dummy/public/422.html
|
86
|
+
- test/dummy/public/500.html
|
87
|
+
- test/dummy/public/favicon.ico
|
88
|
+
- test/dummy/Rakefile
|
89
|
+
- test/dummy/README.rdoc
|
90
|
+
- test/dummy/script/rails
|
91
|
+
- test/google-tag-manager_test.rb
|
92
|
+
- test/test_helper.rb
|
114
93
|
homepage: http://github.com/rcs/google-tag-manager-rails
|
115
|
-
licenses:
|
116
|
-
- MIT
|
94
|
+
licenses: []
|
117
95
|
post_install_message:
|
118
96
|
rdoc_options: []
|
119
97
|
require_paths:
|
@@ -124,9 +102,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
102
|
- - ! '>='
|
125
103
|
- !ruby/object:Gem::Version
|
126
104
|
version: '0'
|
127
|
-
segments:
|
128
|
-
- 0
|
129
|
-
hash: -3028999765133141710
|
130
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
131
106
|
none: false
|
132
107
|
requirements:
|
@@ -139,4 +114,36 @@ rubygems_version: 1.8.23
|
|
139
114
|
signing_key:
|
140
115
|
specification_version: 3
|
141
116
|
summary: Google Tag Manager helpers for Rails
|
142
|
-
test_files:
|
117
|
+
test_files:
|
118
|
+
- test/dummy/app/assets/javascripts/application.js
|
119
|
+
- test/dummy/app/assets/stylesheets/application.css
|
120
|
+
- test/dummy/app/controllers/application_controller.rb
|
121
|
+
- test/dummy/app/helpers/application_helper.rb
|
122
|
+
- test/dummy/app/views/layouts/application.html.erb
|
123
|
+
- test/dummy/config/application.rb
|
124
|
+
- test/dummy/config/boot.rb
|
125
|
+
- test/dummy/config/database.yml
|
126
|
+
- test/dummy/config/environment.rb
|
127
|
+
- test/dummy/config/environments/development.rb
|
128
|
+
- test/dummy/config/environments/production.rb
|
129
|
+
- test/dummy/config/environments/test.rb
|
130
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
131
|
+
- test/dummy/config/initializers/inflections.rb
|
132
|
+
- test/dummy/config/initializers/mime_types.rb
|
133
|
+
- test/dummy/config/initializers/secret_token.rb
|
134
|
+
- test/dummy/config/initializers/session_store.rb
|
135
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
136
|
+
- test/dummy/config/locales/en.yml
|
137
|
+
- test/dummy/config/routes.rb
|
138
|
+
- test/dummy/config.ru
|
139
|
+
- test/dummy/log/development.log
|
140
|
+
- test/dummy/public/404.html
|
141
|
+
- test/dummy/public/422.html
|
142
|
+
- test/dummy/public/500.html
|
143
|
+
- test/dummy/public/favicon.ico
|
144
|
+
- test/dummy/Rakefile
|
145
|
+
- test/dummy/README.rdoc
|
146
|
+
- test/dummy/script/rails
|
147
|
+
- test/google-tag-manager_test.rb
|
148
|
+
- test/test_helper.rb
|
149
|
+
has_rdoc:
|
data/.document
DELETED
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--color
|
data/Gemfile
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
source "http://rubygems.org"
|
2
|
-
# Add dependencies required to use your gem here.
|
3
|
-
# Example:
|
4
|
-
# gem "activesupport", ">= 2.3.5"
|
5
|
-
|
6
|
-
# Add dependencies to develop your gem here.
|
7
|
-
# Include everything needed to run rake, tests, features, etc.
|
8
|
-
group :development do
|
9
|
-
gem "rspec", "~> 2.8.0"
|
10
|
-
gem "rdoc", "~> 3.12"
|
11
|
-
gem "bundler", "~> 1.2.0"
|
12
|
-
gem "jeweler", "~> 1.8.4"
|
13
|
-
gem "simplecov", ">= 0"
|
14
|
-
end
|
data/README.rdoc
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
= google-tag-manager-rails
|
2
|
-
|
3
|
-
Description goes here.
|
4
|
-
|
5
|
-
== Contributing to google-tag-manager-rails
|
6
|
-
|
7
|
-
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
|
-
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
9
|
-
* Fork the project.
|
10
|
-
* Start a feature/bugfix branch.
|
11
|
-
* Commit and push until you are happy with your contribution.
|
12
|
-
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
|
-
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
|
-
|
15
|
-
== Copyright
|
16
|
-
|
17
|
-
Copyright (c) 2012 Ryan Sorensen. See LICENSE.txt for
|
18
|
-
further details.
|
19
|
-
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.1.0
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
-
# -*- encoding: utf-8 -*-
|
5
|
-
|
6
|
-
Gem::Specification.new do |s|
|
7
|
-
s.name = "google-tag-manager-rails"
|
8
|
-
s.version = "0.1.0"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Ryan Sorensen"]
|
12
|
-
s.date = "2012-10-02"
|
13
|
-
s.description = "Use Google Tag Manager ( http://www.google.com/tagmanager/ ) in your Rails application."
|
14
|
-
s.email = "rcsorensen@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.rdoc"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
".rspec",
|
22
|
-
"Gemfile",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"google-tag-manager-rails.gemspec",
|
28
|
-
"lib/google-tag-manager-rails.rb",
|
29
|
-
"spec/google-tag-manager-rails_spec.rb",
|
30
|
-
"spec/spec_helper.rb"
|
31
|
-
]
|
32
|
-
s.homepage = "http://github.com/rcs/google-tag-manager-rails"
|
33
|
-
s.licenses = ["MIT"]
|
34
|
-
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = "1.8.23"
|
36
|
-
s.summary = "Google Tag Manager helpers for Rails"
|
37
|
-
|
38
|
-
if s.respond_to? :specification_version then
|
39
|
-
s.specification_version = 3
|
40
|
-
|
41
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
42
|
-
s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
|
43
|
-
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
44
|
-
s.add_development_dependency(%q<bundler>, ["~> 1.2.0"])
|
45
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
46
|
-
s.add_development_dependency(%q<simplecov>, [">= 0"])
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
49
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
50
|
-
s.add_dependency(%q<bundler>, ["~> 1.2.0"])
|
51
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
52
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
53
|
-
end
|
54
|
-
else
|
55
|
-
s.add_dependency(%q<rspec>, ["~> 2.8.0"])
|
56
|
-
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
57
|
-
s.add_dependency(%q<bundler>, ["~> 1.2.0"])
|
58
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
59
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
60
|
-
end
|
61
|
-
end
|
62
|
-
|