google_analytics_mailer 0.2.0 → 0.2.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 +5 -13
- data/.gitignore +7 -1
- data/.travis.yml +2 -0
- data/Appraisals +4 -0
- data/Changelog.md +4 -0
- data/Gemfile +15 -1
- data/README.md +3 -2
- data/gemfiles/actionmailer3_2.gemfile +14 -1
- data/gemfiles/actionmailer4_0.gemfile +14 -1
- data/gemfiles/actionmailer4_1.gemfile +20 -0
- data/google_analytics_mailer.gemspec +1 -8
- data/lib/google_analytics_mailer/version.rb +1 -1
- data/spec/spec_helper.rb +6 -1
- metadata +9 -79
- data/.rvmrc +0 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NzVmNmI0NjRhMzg0NmRkYjIwMDNhZTk0NDVhOTFiMzFkOTk5OGEwMQ==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: c79ec78f1bb79fdbac0163b6994a2e05ccb7cca5
|
|
4
|
+
data.tar.gz: b7cf7d0a4b3aef2f5abc0cef62a9b4cc2d6464d7
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
ZmRiYTllZTRiYWFjZDhiNTJkMWE5Y2I5YzRlODdlMWZiMThhMjI2OTE5ZGMy
|
|
11
|
-
NWUxZjZhNjYyMzZiYTdmODA5ODAzNTMyYzAxNzNhYjJmZmVlYmQ=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
ZjRlM2M2MTBmOTk4ZTk5YzI4YmFkZmY0ZTcyZmY1ZjQ2OTlhYjY1NDM3N2Jl
|
|
14
|
-
MTMzMzhhZjRhOTRkNjMwN2E5OTg0ZmMxOTE3NDBmMTdkMDMzN2JjZjJjMTdi
|
|
15
|
-
ZGQyODE5MmRkNDJhOTMxOTA4MDI2M2U4NmI3Nzg1OTNmNzQwNWM=
|
|
6
|
+
metadata.gz: 995215ff6e64cf073191cea14726d22591756bec030aa7a4c45e3c3f472076aa1f4f9357aca46494a3705f3034b348a16d186b8ae981028203763b47f1f6d2e0
|
|
7
|
+
data.tar.gz: 704551ca2d01c8d33e8017263f4c3bd0425e5620373b494d97ff6ddb920b00262064d623a7edb035ab77bd979fad3052c0d71d20b63a4cc85c460a39722db1d6
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/Appraisals
CHANGED
data/Changelog.md
CHANGED
data/Gemfile
CHANGED
|
@@ -5,4 +5,18 @@ gemspec
|
|
|
5
5
|
|
|
6
6
|
# used locally for documentation
|
|
7
7
|
gem 'redcarpet'
|
|
8
|
-
gem 'yard'
|
|
8
|
+
gem 'yard'
|
|
9
|
+
# used for code coverage reports
|
|
10
|
+
gem 'coveralls', require: false
|
|
11
|
+
|
|
12
|
+
# gem dependencies for development
|
|
13
|
+
gem 'rake'
|
|
14
|
+
gem 'rails', '>= 3.2.0'
|
|
15
|
+
gem 'rspec-rails', '~> 2.14.0'
|
|
16
|
+
gem 'email_spec', '>= 1.5.0'
|
|
17
|
+
gem 'appraisal', '~> 1.0.2'
|
|
18
|
+
|
|
19
|
+
group :test do
|
|
20
|
+
gem 'sqlite3'
|
|
21
|
+
gem 'minitest'
|
|
22
|
+
end
|
data/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
# GoogleAnalyticsMailer
|
|
1
|
+
# GoogleAnalyticsMailer
|
|
2
|
+
[](http://badge.fury.io/rb/google_analytics_mailer) [](http://travis-ci.org/fabn/google_analytics_mailer) [](https://coveralls.io/r/fabn/google_analytics_mailer) [](https://codeclimate.com/github/fabn/google_analytics_mailer) [](https://gemnasium.com/fabn/google_analytics_mailer)
|
|
2
3
|
|
|
3
4
|
This gem automatically rewrites **absolute** links generated by ActionMailer. It intercepts all'`url_for` calls (so `link_to` calls are intercepted as well)
|
|
4
5
|
and change the final url to add [Custom Campaign parameters](http://support.google.com/analytics/bin/answer.py?hl=en&answer=1033867) to your URLs.
|
|
@@ -94,7 +95,7 @@ or you can disable them for a specific block
|
|
|
94
95
|
|
|
95
96
|
Since ActionMailer and ActionController use the same code base to provide view rendering this gem can be used in the
|
|
96
97
|
same way in any action controller which inherits from `ActionController::Base` (i.e. almost every controller in a
|
|
97
|
-
Rails application). The alias `google_analytics_controller` is provided for better
|
|
98
|
+
Rails application). The alias `google_analytics_controller` is provided for better naming thus in a controller you can do
|
|
98
99
|
|
|
99
100
|
```ruby
|
|
100
101
|
class UserController < ApplicationController
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
source "https://rubygems.org"
|
|
4
4
|
|
|
5
|
+
gem "redcarpet"
|
|
6
|
+
gem "yard"
|
|
7
|
+
gem "coveralls", :require => false
|
|
8
|
+
gem "rake"
|
|
9
|
+
gem "rails", ">= 3.2.0"
|
|
10
|
+
gem "rspec-rails", "~> 2.14.0"
|
|
11
|
+
gem "email_spec", ">= 1.5.0"
|
|
12
|
+
gem "appraisal", "~> 1.0.2"
|
|
5
13
|
gem "actionmailer", "~> 3.2.0"
|
|
6
14
|
|
|
7
|
-
|
|
15
|
+
group :test do
|
|
16
|
+
gem "sqlite3"
|
|
17
|
+
gem "minitest"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
gemspec :path => "../"
|
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
source "https://rubygems.org"
|
|
4
4
|
|
|
5
|
+
gem "redcarpet"
|
|
6
|
+
gem "yard"
|
|
7
|
+
gem "coveralls", :require => false
|
|
8
|
+
gem "rake"
|
|
9
|
+
gem "rails", ">= 3.2.0"
|
|
10
|
+
gem "rspec-rails", "~> 2.14.0"
|
|
11
|
+
gem "email_spec", ">= 1.5.0"
|
|
12
|
+
gem "appraisal", "~> 1.0.2"
|
|
5
13
|
gem "actionmailer", "~> 4.0.0"
|
|
6
14
|
|
|
7
|
-
|
|
15
|
+
group :test do
|
|
16
|
+
gem "sqlite3"
|
|
17
|
+
gem "minitest"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
gemspec :path => "../"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# This file was generated by Appraisal
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
gem "redcarpet"
|
|
6
|
+
gem "yard"
|
|
7
|
+
gem "coveralls", :require => false
|
|
8
|
+
gem "rake"
|
|
9
|
+
gem "rails", ">= 3.2.0"
|
|
10
|
+
gem "rspec-rails", "~> 2.14.0"
|
|
11
|
+
gem "email_spec", ">= 1.5.0"
|
|
12
|
+
gem "appraisal", "~> 1.0.2"
|
|
13
|
+
gem "actionmailer", "~> 4.1.0"
|
|
14
|
+
|
|
15
|
+
group :test do
|
|
16
|
+
gem "sqlite3"
|
|
17
|
+
gem "minitest"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
gemspec :path => "../"
|
|
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|
|
8
8
|
gem.version = GoogleAnalyticsMailer::VERSION
|
|
9
9
|
gem.authors = ['Fabio Napoleoni']
|
|
10
10
|
gem.email = ['f.napoleoni@gmail.com']
|
|
11
|
-
gem.description = %q{This gem add google analytics
|
|
11
|
+
gem.description = %q{This gem add google analytics campaign tags to every link in your action mailer}
|
|
12
12
|
gem.summary = %q{This gem provides automatic Google Analytics tagged links in ActionMailer generated emails}
|
|
13
13
|
gem.homepage = 'https://github.com/fabn/google_analytics_mailer'
|
|
14
14
|
gem.license = 'MIT'
|
|
@@ -21,11 +21,4 @@ Gem::Specification.new do |gem|
|
|
|
21
21
|
# gem dependencies for runtime
|
|
22
22
|
gem.add_runtime_dependency 'addressable', '~> 2.3.0'
|
|
23
23
|
gem.add_runtime_dependency 'actionmailer', '>= 3.2.0'
|
|
24
|
-
|
|
25
|
-
# gem dependencies for development
|
|
26
|
-
gem.add_development_dependency 'rake'
|
|
27
|
-
gem.add_development_dependency 'rails', '>= 3.2.0'
|
|
28
|
-
gem.add_development_dependency 'rspec-rails', '~> 2.13.0'
|
|
29
|
-
gem.add_development_dependency 'email_spec', '~> 1.2.0'
|
|
30
|
-
gem.add_development_dependency 'appraisal'
|
|
31
24
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
# This file is copied to spec/ when you run 'rails generate rspec:install'
|
|
2
1
|
ENV['RAILS_ENV'] ||= 'test'
|
|
2
|
+
require 'coveralls'
|
|
3
|
+
Coveralls.wear!
|
|
3
4
|
|
|
4
5
|
# Gem main file
|
|
5
6
|
require 'google_analytics_mailer'
|
|
@@ -8,6 +9,10 @@ require 'email_spec'
|
|
|
8
9
|
require 'rails/all'
|
|
9
10
|
require 'rspec/rails'
|
|
10
11
|
|
|
12
|
+
# Connect to an in memory db, needed for rails 4.1 testing
|
|
13
|
+
ActiveRecord::Base.establish_connection(adapter: "sqlite3", database: ":memory:")
|
|
14
|
+
ActiveRecord::Schema.verbose = false
|
|
15
|
+
|
|
11
16
|
# Requires supporting ruby files with custom matchers and macros, etc,
|
|
12
17
|
# in spec/support/ and its subdirectories.
|
|
13
18
|
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].each { |f| require f }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google_analytics_mailer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fabio Napoleoni
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2014-11-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: addressable
|
|
@@ -28,87 +28,17 @@ dependencies:
|
|
|
28
28
|
name: actionmailer
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: 3.2.0
|
|
34
34
|
type: :runtime
|
|
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: 3.2.0
|
|
41
|
-
|
|
42
|
-
name: rake
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - ! '>='
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - ! '>='
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rails
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - ! '>='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: 3.2.0
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - ! '>='
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: 3.2.0
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rspec-rails
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ~>
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: 2.13.0
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ~>
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: 2.13.0
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: email_spec
|
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
|
86
|
-
requirements:
|
|
87
|
-
- - ~>
|
|
88
|
-
- !ruby/object:Gem::Version
|
|
89
|
-
version: 1.2.0
|
|
90
|
-
type: :development
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - ~>
|
|
95
|
-
- !ruby/object:Gem::Version
|
|
96
|
-
version: 1.2.0
|
|
97
|
-
- !ruby/object:Gem::Dependency
|
|
98
|
-
name: appraisal
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ! '>='
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
105
|
-
prerelease: false
|
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
-
requirements:
|
|
108
|
-
- - ! '>='
|
|
109
|
-
- !ruby/object:Gem::Version
|
|
110
|
-
version: '0'
|
|
111
|
-
description: This gem add google analytics campagin tags to every link in your action
|
|
41
|
+
description: This gem add google analytics campaign tags to every link in your action
|
|
112
42
|
mailer
|
|
113
43
|
email:
|
|
114
44
|
- f.napoleoni@gmail.com
|
|
@@ -118,7 +48,6 @@ extra_rdoc_files: []
|
|
|
118
48
|
files:
|
|
119
49
|
- .gitignore
|
|
120
50
|
- .rspec
|
|
121
|
-
- .rvmrc
|
|
122
51
|
- .travis.yml
|
|
123
52
|
- .yardopts
|
|
124
53
|
- Appraisals
|
|
@@ -129,6 +58,7 @@ files:
|
|
|
129
58
|
- Rakefile
|
|
130
59
|
- gemfiles/actionmailer3_2.gemfile
|
|
131
60
|
- gemfiles/actionmailer4_0.gemfile
|
|
61
|
+
- gemfiles/actionmailer4_1.gemfile
|
|
132
62
|
- google_analytics_mailer.gemspec
|
|
133
63
|
- lib/google_analytics_mailer.rb
|
|
134
64
|
- lib/google_analytics_mailer/uri_builder.rb
|
|
@@ -151,17 +81,17 @@ require_paths:
|
|
|
151
81
|
- lib
|
|
152
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
153
83
|
requirements:
|
|
154
|
-
- -
|
|
84
|
+
- - '>='
|
|
155
85
|
- !ruby/object:Gem::Version
|
|
156
86
|
version: '0'
|
|
157
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
88
|
requirements:
|
|
159
|
-
- -
|
|
89
|
+
- - '>='
|
|
160
90
|
- !ruby/object:Gem::Version
|
|
161
91
|
version: '0'
|
|
162
92
|
requirements: []
|
|
163
93
|
rubyforge_project:
|
|
164
|
-
rubygems_version: 2.
|
|
94
|
+
rubygems_version: 2.4.2
|
|
165
95
|
signing_key:
|
|
166
96
|
specification_version: 4
|
|
167
97
|
summary: This gem provides automatic Google Analytics tagged links in ActionMailer
|
data/.rvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
rvm use 1.9.3@ga_mailer --create
|