ponch 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +3 -0
  2. data/README.md +2 -0
  3. data/Rakefile +10 -0
  4. data/app/models/ponch/delivery.rb +16 -3
  5. data/lib/ponch.rb +1 -1
  6. data/lib/ponch/engine.rb +5 -0
  7. data/lib/ponch/interceptor.rb +10 -0
  8. data/lib/ponch/middleware.rb +26 -0
  9. data/lib/ponch/version.rb +1 -1
  10. data/ponch.gemspec +5 -2
  11. data/ponch.jpg +0 -0
  12. data/test/dummy/Rakefile +7 -0
  13. data/test/dummy/app/assets/javascripts/application.js +9 -0
  14. data/test/dummy/app/assets/javascripts/home.js +2 -0
  15. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  16. data/test/dummy/app/assets/stylesheets/home.css +4 -0
  17. data/test/dummy/app/controllers/application_controller.rb +3 -0
  18. data/test/dummy/app/controllers/home_controller.rb +5 -0
  19. data/test/dummy/app/helpers/application_helper.rb +2 -0
  20. data/test/dummy/app/helpers/home_helper.rb +2 -0
  21. data/test/dummy/app/mailers/.gitkeep +0 -0
  22. data/test/dummy/app/mailers/test_mailer.rb +8 -0
  23. data/test/dummy/app/models/.gitkeep +0 -0
  24. data/test/dummy/app/views/home/index.html.erb +2 -0
  25. data/test/dummy/app/views/layouts/application.html.erb +13 -0
  26. data/test/dummy/app/views/test_mailer/hello.html.erb +228 -0
  27. data/test/dummy/config.ru +4 -0
  28. data/test/dummy/config/application.rb +48 -0
  29. data/test/dummy/config/boot.rb +10 -0
  30. data/test/dummy/config/database.yml +25 -0
  31. data/test/dummy/config/environment.rb +5 -0
  32. data/test/dummy/config/environments/development.rb +30 -0
  33. data/test/dummy/config/environments/production.rb +60 -0
  34. data/test/dummy/config/environments/test.rb +39 -0
  35. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  36. data/test/dummy/config/initializers/inflections.rb +10 -0
  37. data/test/dummy/config/initializers/mime_types.rb +5 -0
  38. data/test/dummy/config/initializers/secret_token.rb +7 -0
  39. data/test/dummy/config/initializers/session_store.rb +8 -0
  40. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  41. data/test/dummy/config/locales/en.yml +5 -0
  42. data/test/dummy/config/routes.rb +61 -0
  43. data/test/dummy/db/migrate/20120125234750_create_ponch_deliveries.rb +25 -0
  44. data/test/dummy/db/schema.rb +30 -0
  45. data/test/dummy/lib/assets/.gitkeep +0 -0
  46. data/test/dummy/public/404.html +26 -0
  47. data/test/dummy/public/422.html +26 -0
  48. data/test/dummy/public/500.html +26 -0
  49. data/test/dummy/public/favicon.ico +0 -0
  50. data/test/dummy/script/rails +6 -0
  51. data/test/dummy/test/functional/home_controller_test.rb +9 -0
  52. data/test/dummy/test/functional/test_mailer_test.rb +7 -0
  53. data/test/dummy/test/unit/helpers/home_helper_test.rb +4 -0
  54. data/test/ponch_test.rb +7 -0
  55. data/test/test_helper.rb +10 -0
  56. metadata +83 -12
data/.gitignore CHANGED
@@ -17,3 +17,6 @@ spec/reports
17
17
  test/tmp
18
18
  test/version_tmp
19
19
  tmp
20
+ log
21
+ *.log
22
+ *.sqlite3
data/README.md CHANGED
@@ -40,3 +40,5 @@ And then Ponch takes care of the rest for you!
40
40
  ## Licence
41
41
 
42
42
  Ponch is released under the MIT license.
43
+
44
+ ![Ponch](https://github.com/kitop/ponch/raw/master/ponch.jpg)
data/Rakefile CHANGED
@@ -5,3 +5,13 @@ desc "Open an irb session preloaded with this library"
5
5
  task :console do
6
6
  sh "irb -rubygems -I lib -rponch"
7
7
  end
8
+
9
+ require 'rake/testtask'
10
+
11
+ Rake::TestTask.new(:test) do |t|
12
+ t.libs << 'lib'
13
+ t.libs << 'test'
14
+ t.pattern = 'test/**/*_test.rb'
15
+ t.verbose = false
16
+ end
17
+
@@ -1,6 +1,6 @@
1
1
  module Ponch
2
2
  class Delivery < ActiveRecord::Base
3
- set_table_name :ponch_deliveries
3
+ self.table_name = "ponch_deliveries"
4
4
 
5
5
  validates_presence_of :to, :from, :sent_at
6
6
 
@@ -12,11 +12,24 @@ module Ponch
12
12
  !opened_at.nil?
13
13
  end
14
14
 
15
- def open!(ip_address = nil)
15
+ def clicked?
16
+ !clicked_at.nil?
17
+ end
18
+
19
+ def open!(ip_address = nil, do_save = true)
16
20
  unless opened?
17
21
  self.opened_at = Time.now
18
22
  self.opened_ip = ip_address
19
- self.save!
23
+ self.save! if do_save
24
+ end
25
+ end
26
+
27
+ def open_and_click!(ip_address = nil)
28
+ open!(ip_address, false)
29
+ unless clicked?
30
+ self.clicked_at = Time.now
31
+ self.clicked_ip = ip_address
32
+ self.save!
20
33
  end
21
34
  end
22
35
 
@@ -1,6 +1,6 @@
1
1
  require "ponch/version"
2
2
  require 'ponch/config'
3
- require 'ponch/engine'
3
+ require 'ponch/engine' if defined? Rails
4
4
 
5
5
  module Ponch
6
6
 
@@ -1,4 +1,5 @@
1
1
  require 'ponch/interceptor'
2
+ require 'ponch/middleware'
2
3
 
3
4
  module Ponch
4
5
  class Engine < ::Rails::Engine#:nodoc:
@@ -11,6 +12,10 @@ module Ponch
11
12
  end
12
13
  end
13
14
 
15
+ initializer "ponch.add_middleware" do |app|
16
+ app.middleware.use Ponch::Middleware
17
+ end
18
+
14
19
  #action mailer register_interceptor
15
20
  ActiveSupport.on_load(:action_mailer) do
16
21
  ActionMailer::Base.register_interceptor(Interceptor)
@@ -11,6 +11,16 @@ module Ponch
11
11
 
12
12
  html_doc = Nokogiri::HTML(message_body)
13
13
 
14
+ #intercept_links
15
+ html_doc.search("a[href*='#{Ponch.config.url_options[:host]}']").each do |link|
16
+ href = link.attr("href")
17
+ uri = URI.parse(href)
18
+ query = Rack::Utils.parse_nested_query uri.query
19
+ query[:ponch] = delivery.code
20
+ uri.query = query.to_query
21
+ link.attributes["href"].value = uri.to_s
22
+ end
23
+
14
24
  pixel_url = Rails.application.routes.url_helpers.ponch_pixel_url(delivery.code, Ponch.config.url_options)
15
25
  tracking_pixel = "<img src=\"#{pixel_url}\" />"
16
26
  html_doc.at("body").add_child(tracking_pixel)
@@ -0,0 +1,26 @@
1
+ module Ponch
2
+ class Middleware
3
+
4
+ def initialize(app, options = {})
5
+ @app = app
6
+ end
7
+
8
+ def call(env)
9
+ dup._call(env)
10
+ end
11
+
12
+ def _call(env)
13
+
14
+ req = Rack::Request.new(env)
15
+ if req.params['ponch']
16
+ delivery = Ponch::Delivery.find_by_code req.params['ponch']
17
+ if delivery
18
+ delivery.open_and_click!(req.ip)
19
+ end
20
+ end
21
+
22
+ @app.call(env)
23
+ end
24
+
25
+ end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Ponch
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -4,8 +4,8 @@ require File.expand_path('../lib/ponch/version', __FILE__)
4
4
  Gem::Specification.new do |gem|
5
5
  gem.authors = ["Esteban Pastorino"]
6
6
  gem.email = ["ejpastorino@gmail.com"]
7
- gem.description = "Ponch lets you track opened emails if you're using your own sendmail server or Amazon SES. Only works on Rails 3.x. It works by inserting an 1x1 tracking gif on your html emails and adding a controller that handles the request to that image."
8
- gem.summary = "Simple email analytics for your Rails app"
7
+ gem.summary = "Ponch lets you track opened and clicked emails if you're using your own sendmail server or Amazon SES. Only works on Rails 3.x. It works by inserting an 1x1 tracking gif on your html emails and adding a controller that handles the request to that image."
8
+ gem.description = "Simple email analytics for your Rails app"
9
9
  gem.homepage = "https://github.com/kitop/ponch"
10
10
 
11
11
  gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
@@ -17,4 +17,7 @@ Gem::Specification.new do |gem|
17
17
 
18
18
  gem.add_dependency 'railties', ['>= 3.0.0']
19
19
  gem.add_dependency 'nokogiri', ['>= 1.4.7']
20
+
21
+ gem.add_development_dependency "rails", ">= 3.0.0"
22
+ gem.add_development_dependency "sqlite3"
20
23
  end
Binary file
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env rake
2
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
3
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4
+
5
+ require File.expand_path('../config/application', __FILE__)
6
+
7
+ Dummy::Application.load_tasks
@@ -0,0 +1,9 @@
1
+ // This is a manifest file that'll be compiled into including all the files listed below.
2
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3
+ // be included in the compiled file accessible from http://example.com/assets/application.js
4
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5
+ // the compiled file.
6
+ //
7
+ //= require jquery
8
+ //= require jquery_ujs
9
+ //= require_tree .
@@ -0,0 +1,2 @@
1
+ // Place all the behaviors and hooks related to the matching controller here.
2
+ // All this logic will automatically be available in application.js.
@@ -0,0 +1,7 @@
1
+ /*
2
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
3
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
4
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
5
+ *= require_self
6
+ *= require_tree .
7
+ */
@@ -0,0 +1,4 @@
1
+ /*
2
+ Place all the styles related to the matching controller here.
3
+ They will automatically be included in application.css.
4
+ */
@@ -0,0 +1,3 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ end
@@ -0,0 +1,5 @@
1
+ class HomeController < ApplicationController
2
+ def index
3
+ end
4
+
5
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,2 @@
1
+ module HomeHelper
2
+ end
File without changes
@@ -0,0 +1,8 @@
1
+ class TestMailer < ActionMailer::Base
2
+ default from: "from@example.com"
3
+
4
+ def hello(email)
5
+ mail(to: email)
6
+ end
7
+
8
+ end
File without changes
@@ -0,0 +1,2 @@
1
+ <h1>Home#index</h1>
2
+ <p>Find me in app/views/home/index.html.erb</p>
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag "application" %>
6
+ <%= csrf_meta_tags %>
7
+ </head>
8
+ <body>
9
+
10
+ <%= yield %>
11
+
12
+ </body>
13
+ </html>
@@ -0,0 +1,228 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Example</title>
5
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
6
+ <style>
7
+ /*<![CDATA[*/
8
+ a:link {
9
+ color: #61c7dd;
10
+ }
11
+ a:hover {
12
+ color: #59b8cc;
13
+ }
14
+ /*]]>*/
15
+ </style>
16
+ </meta>
17
+ </head>
18
+ <body bgcolor='#161616' leftmargin='0' marginheight='0' marginwidth='0' topmargin='0'>
19
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
20
+ <tr>
21
+ <td bgcolor='#161616' valign='top'>
22
+ <table align='center' border='0' cellpadding='0' cellspacing='0' style='font: 14px Helvetica, Arial, sans-serif; color: #767572; line-height: 100%;' width='600'>
23
+ <!-- /HEADER -->
24
+ <tr>
25
+ <td valign='top'>
26
+ <table border='0' cellpadding='0' cellspacing='0' height='204' width='600'>
27
+ <tr>
28
+ <td style='height: 63px;'>
29
+ <table border='0' cellpadding='10' cellspacing='0' width='100%'>
30
+ <tr>
31
+ <td style='font-family: Helvetica, Arial, sans-serif; font-size: 11px; color: #808080; padding-top: 15px;'>
32
+ Recibiste este newsletter porque estás suscripto a Example. No tengas miedo, si cancelás tu suscripción no habrá represalias. Si no querés recibir más este newsletter hacé click
33
+ <a href="http://example.com/subscriptions/UBSj4Efii3Lo4bXUnHTH/confirm_unsubscribe">acá.</a>
34
+ </td>
35
+ </tr>
36
+ </table>
37
+ </td>
38
+ <td style='height: 56px;'>
39
+ <img alt='' height='56' src='http://example.com/images/arrow.gif' style='display: block;' width='96'>
40
+ </td>
41
+ </tr>
42
+ <tr>
43
+ <td colspan='2' style='background-image: http://example.com/images/header_top_separator.gif; background-repeat: no-repeat; height: 7px;'>
44
+ <img alt='' height='7' src='http://example.com/images/header_top_separator.gif' style='display: block;' width='600'>
45
+ </td>
46
+ </tr>
47
+ <tr>
48
+ <td style='width: 504px; height: 125px;' valign='top'>
49
+ <table border='0' cellpadding='0' cellspacing='0' style='height: 125px;' width='100%'>
50
+ <tr>
51
+ <td bgcolor='#161616' style='height: 10px;' valign='top'> </td>
52
+ </tr>
53
+ <tr>
54
+ <td bgcolor='#161616' style='height: 50px; font-family: Helvetica, Arial, sans-serif; font-size: 55px; font-weight: bold; color: #f9f8f2; letter-spacing: 0px; line-height: 120%;' valign='top'>
55
+ <img alt='Example' height='68' src='http://example.com/images/logo.png' width='190'>
56
+ </td>
57
+ </tr>
58
+ </table>
59
+ </td>
60
+ <td valign='top'></td>
61
+ </tr>
62
+ <tr>
63
+ <td colspan='2' style='height: 16px; background-image: http://example.com/images/header_border.gif; background-repeat: no-repeat;' valign='top'>
64
+ <img height='16' src='http://example.com/images/header_border.gif' width='600'>
65
+ </td>
66
+ </tr>
67
+ </table>
68
+ </td>
69
+ </tr>
70
+ <!-- /CONTENT -->
71
+ <tr>
72
+ <td bgcolor='#161616' valign='top'>
73
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
74
+ <tr>
75
+ <td style='height: 35px;' valign='top'> </td>
76
+ </tr>
77
+ <tr>
78
+ <td valign='top'>
79
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
80
+ <tr>
81
+ <td style='font-family: Helvetica, Arial, sans-serif; font-size: 30px; font-weight: normal; color: #4D94DC; letter-spacing: 0px; line-height: 120%;'>
82
+ Bienvenido a la Famiglia
83
+ </td>
84
+ </tr>
85
+ <tr>
86
+ <td style='height: 30px;'> </td>
87
+ </tr>
88
+ <tr>
89
+ <td style='font-family: Helvetica, Arial, sans-serif; font-size: 16px; font-weight: normal; color: #dddddd; letter-spacing: 0px; line-height: 120%;'>
90
+ <p>¡Nos llena de alegría que hayas elegido sumarte a la famiglia Example! Ahora que estás en nuestro círculo de confianza, todos los días vas a tener acceso a increíbles descuentos en almuerzos, cenas, tratamientos de salud y belleza, productos y servicios de todo tipo. No preguntes con que métodos, pero nos comprometemos a ofrecerte siempre por lo menos un 50% de rebaja.</p>
91
+ Y como tenemos códigos, te garantizamos una increíble experiencia en cada compra. Si alguna vez quedás inconforme el primo Vinnie te devuelve el dinero ya sea en crédito para gastar con nosotros o de regreso en tu tarjeta de crédito o cuenta bancaria.
92
+ </td>
93
+ </tr>
94
+ </table>
95
+ </td>
96
+ </tr>
97
+ </table>
98
+ </td>
99
+ </tr>
100
+ <!-- /SEPARADOR -->
101
+ <tr>
102
+ <td style='height: 30px;'> </td>
103
+ </tr>
104
+ <!-- /MAIN DEAL PREVIEW -->
105
+ <tr>
106
+ <td>
107
+ <table border='0' cellpadding='0' cellspacing='0' style='padding-top: 10px;' width='600'>
108
+ <tr>
109
+ <td style='font-family: Helvetica, Arial, sans-serif; font-size: 22px; font-weight: normal; color: #ffffff; letter-spacing: 0px; line-height: 120%;'>
110
+ Empezá ahora a disfrutar de algunos de nuestros descuentos:
111
+ </td>
112
+ </tr>
113
+ <tr>
114
+ <td>
115
+ <table border='0' cellpadding='0' cellspacing='0' style='padding-top: 20px;' width='600'>
116
+ <tr>
117
+ <td colspan='2' style='font-family: Helvetica, Arial, sans-serif; font-size: 17px; font-weight: normal; color: #ffffff; letter-spacing: 0px; padding-bottom: 5px; line-height:105%'>
118
+ <a href="http://example.com/deals/pizza-grande-para-dos-personas-2-chopps-de-cerveza-por-37" style="color: #4D94DC; text-decoration:none;">¿Cuál es el mejor Plan con amigos? Pizza grande para dos personas + 2 chopps de cerveza por $37 en Cinema Music de Belgrano</a>
119
+ </td>
120
+ </tr>
121
+ <tr>
122
+ <td width='280'>
123
+ <a href="http://example.com/deals/pizza-grande-para-dos-personas-2-chopps-de-cerveza-por-37"><img alt='' height='150' src='http://example.com/system/deal_images/local_images/2/original/img_deal2.jpg?1327535012' width='250'>
124
+ </a>
125
+ </td>
126
+ <td width='320'>
127
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
128
+ <tr align='center' width='100%'>
129
+ <td align='center' colspan='3' width='70%'>
130
+ <a href="http://example.com/deals/pizza-grande-para-dos-personas-2-chopps-de-cerveza-por-37" style="color: #ffffff; text-decoration:none; font-weight:bold; color:#ffffff; font-size:25px; line-height: 180%; background-color: #4D94DC;text-shadow:1px 1px 1px #0D5CAC;border-radius: 5px; padding:10px 10px">$37
131
+ ¡Ver!
132
+ </a>
133
+ </td>
134
+ </tr>
135
+ <tr>
136
+ <td style='height: 30px;'> </td>
137
+ </tr>
138
+ <tr>
139
+ <td align='center' style='font-weight:bold; line-height: 180%; color:#D84C81;' width='33%'>
140
+ Precio
141
+ </td>
142
+ <td align='center' style='font-weight:bold; line-height: 180%; color:#D84C81;' width='34%'>
143
+ Ahorrás
144
+ </td>
145
+ <td align='center' style='font-weight:bold; line-height: 180%; color:#D84C81;' width='33%'>
146
+ Descuento
147
+ </td>
148
+ </tr>
149
+ <tr>
150
+ <td align='center' style='color:#ffffff; font-size:17px;' width='33%'>
151
+ $150
152
+ </td>
153
+ <td align='center' style='color:#ffffff; font-size:17px;' width='34%'>
154
+ $113
155
+ </td>
156
+ <td align='center' style='color:#ffffff; font-size:17px;' width='33%'>
157
+ 75%
158
+ </td>
159
+ </tr>
160
+ </table>
161
+ </td>
162
+ </tr>
163
+ </table>
164
+ </td>
165
+ </tr>
166
+ </table>
167
+ </td>
168
+ </tr>
169
+ <!-- /FOTER -->
170
+ <tr>
171
+ <td>
172
+ <table border='0' cellpadding='0' cellspacing='0' style='padding-top: 10px;' width='600'>
173
+ <tr>
174
+ <td colspan='6'>
175
+ <img alt='' height='25' src='http://example.com/images/footer_05.gif' width='599'>
176
+ </td>
177
+ <td rowspan='3' width='1'>
178
+ <img alt='' height='140' src='http://example.com/images/footer_02.gif' width='1'>
179
+ </td>
180
+ </tr>
181
+ <tr>
182
+ <td valign='top' width='70%'>
183
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
184
+ <tr>
185
+ <td valign='top' width='11%'>
186
+ <img alt='' height='37' src='http://example.com/images/icon_email_friend.gif' width='37'>
187
+ </td>
188
+ <td valign='top' width='5%'> </td>
189
+ <td valign='top' width='79%'>
190
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
191
+ <tr>
192
+ <td>
193
+ <table border='0' cellpadding='0' cellspacing='0' width='100%'>
194
+ <tr>
195
+ <td style='font-family: Helvetica, Arial, sans-serif; font-size: 17px; font-weight: bold; color: #f9f8f2;'>Reclutá a tus amigos</td>
196
+ </tr>
197
+ </table>
198
+ </td>
199
+ </tr>
200
+ <tr>
201
+ <td valign='top'> </td>
202
+ </tr>
203
+ <tr>
204
+ <td style='font-family: Helvetica, Arial, sans-serif; font-size: 12px; color: #767572;' valign='top'>
205
+ ¡Ayudanos a ampliar la famiglia! Invitá a tus amigos.
206
+ <br>
207
+ <forwardtoafriend>Reenviales este mail</forwardtoafriend>.
208
+ </td>
209
+ </tr>
210
+ </table>
211
+ </td>
212
+ </tr>
213
+ </table>
214
+ <p style='font-size: 16px; font-weight: bold; margin: 0; padding: 0 0 6px 0;'> </p>
215
+ </td>
216
+ <td valign='top' width='12%'> </td>
217
+ </tr>
218
+ </table>
219
+ </td>
220
+ </tr>
221
+ </table>
222
+ </td>
223
+ </tr>
224
+ </table>
225
+ </body>
226
+ </html>
227
+ 
228
+
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,48 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require 'rails/all'
4
+
5
+ Bundler.require
6
+ require "ponch"
7
+
8
+ module Dummy
9
+ class Application < Rails::Application
10
+ # Settings in config/environments/* take precedence over those specified here.
11
+ # Application configuration should go into files in config/initializers
12
+ # -- all .rb files in that directory are automatically loaded.
13
+
14
+ # Custom directories with classes and modules you want to be autoloadable.
15
+ # config.autoload_paths += %W(#{config.root}/extras)
16
+
17
+ # Only load the plugins named here, in the order given (default is alphabetical).
18
+ # :all can be used as a placeholder for all plugins not explicitly named.
19
+ # config.plugins = [ :exception_notification, :ssl_requirement, :all ]
20
+
21
+ # Activate observers that should always be running.
22
+ # config.active_record.observers = :cacher, :garbage_collector, :forum_observer
23
+
24
+ # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
+ # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
+ # config.time_zone = 'Central Time (US & Canada)'
27
+
28
+ # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
+ # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
+ # config.i18n.default_locale = :de
31
+
32
+ config.action_mailer.default_url_options = { host: "example.com" }
33
+ config.ponch.url_options = { host: "example.com" }
34
+
35
+ # Configure the default encoding used in templates for Ruby 1.9.
36
+ config.encoding = "utf-8"
37
+
38
+ # Configure sensitive parameters which will be filtered from the log file.
39
+ config.filter_parameters += [:password]
40
+
41
+ # Enable the asset pipeline
42
+ config.assets.enabled = true
43
+
44
+ # Version of your assets, change this if you want to expire all your assets
45
+ config.assets.version = '1.0'
46
+ end
47
+ end
48
+
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,30 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger
20
+ config.active_support.deprecation = :log
21
+
22
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Do not compress assets
26
+ config.assets.compress = false
27
+
28
+ # Expands the lines which load the assets
29
+ config.assets.debug = true
30
+ end
@@ -0,0 +1,60 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # Code is not reloaded between requests
5
+ config.cache_classes = true
6
+
7
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to Rails.root.join("public/assets")
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Use a different logger for distributed setups
37
+ # config.logger = SyslogLogger.new
38
+
39
+ # Use a different cache store in production
40
+ # config.cache_store = :mem_cache_store
41
+
42
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
43
+ # config.action_controller.asset_host = "http://assets.example.com"
44
+
45
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
46
+ # config.assets.precompile += %w( search.js )
47
+
48
+ # Disable delivery errors, bad email addresses will be ignored
49
+ # config.action_mailer.raise_delivery_errors = false
50
+
51
+ # Enable threaded mode
52
+ # config.threadsafe!
53
+
54
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
55
+ # the I18n.default_locale when a translation can not be found)
56
+ config.i18n.fallbacks = true
57
+
58
+ # Send deprecation notices to registered listeners
59
+ config.active_support.deprecation = :notify
60
+ end
@@ -0,0 +1,39 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
33
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
34
+ # like if you have constraints or database-specific column types
35
+ # config.active_record.schema_format = :sql
36
+
37
+ # Print deprecation notices to the stderr
38
+ config.active_support.deprecation = :stderr
39
+ end
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'a978dc650635fb38becf19df0a7232283b00627000eaf5a0e025d30eca94291ffdefb5a10b610940c78697f7a1312aae68169d503de0dee96e4c1ac9b6a2f9e6'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+ #
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,61 @@
1
+ Dummy::Application.routes.draw do
2
+ get "home/index"
3
+ root to: "home#index"
4
+
5
+ # The priority is based upon order of creation:
6
+ # first created -> highest priority.
7
+
8
+ # Sample of regular route:
9
+ # match 'products/:id' => 'catalog#view'
10
+ # Keep in mind you can assign values other than :controller and :action
11
+
12
+ # Sample of named route:
13
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
14
+ # This route can be invoked with purchase_url(:id => product.id)
15
+
16
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
17
+ # resources :products
18
+
19
+ # Sample resource route with options:
20
+ # resources :products do
21
+ # member do
22
+ # get 'short'
23
+ # post 'toggle'
24
+ # end
25
+ #
26
+ # collection do
27
+ # get 'sold'
28
+ # end
29
+ # end
30
+
31
+ # Sample resource route with sub-resources:
32
+ # resources :products do
33
+ # resources :comments, :sales
34
+ # resource :seller
35
+ # end
36
+
37
+ # Sample resource route with more complex sub-resources
38
+ # resources :products do
39
+ # resources :comments
40
+ # resources :sales do
41
+ # get 'recent', :on => :collection
42
+ # end
43
+ # end
44
+
45
+ # Sample resource route within a namespace:
46
+ # namespace :admin do
47
+ # # Directs /admin/products/* to Admin::ProductsController
48
+ # # (app/controllers/admin/products_controller.rb)
49
+ # resources :products
50
+ # end
51
+
52
+ # You can have the root of your site routed with "root"
53
+ # just remember to delete public/index.html.
54
+ # root :to => 'welcome#index'
55
+
56
+ # See how all your routes lay out with "rake routes"
57
+
58
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
59
+ # Note: This route will make all actions in every controller accessible via GET requests.
60
+ # match ':controller(/:action(/:id(.:format)))'
61
+ end
@@ -0,0 +1,25 @@
1
+ class CreatePonchDeliveries < ActiveRecord::Migration
2
+
3
+ def self.up
4
+ create_table :ponch_deliveries do |t|
5
+ t.string :to, :null => false
6
+ t.string :from, :null => false
7
+ t.string :subject
8
+
9
+ t.string :code, :null => false
10
+ t.datetime :sent_at, :null => false
11
+
12
+ t.datetime :opened_at
13
+ t.string :opened_ip
14
+
15
+ t.datetime :clicked_at
16
+ t.string :clicked_ip
17
+ end
18
+ add_index :ponch_deliveries, :code, unique: true
19
+ end
20
+
21
+ def self.down
22
+ drop_table :ponch_deliveries
23
+ end
24
+
25
+ end
@@ -0,0 +1,30 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20120125234750) do
15
+
16
+ create_table "ponch_deliveries", :force => true do |t|
17
+ t.string "to", :null => false
18
+ t.string "from", :null => false
19
+ t.string "subject"
20
+ t.string "code", :null => false
21
+ t.datetime "sent_at", :null => false
22
+ t.datetime "opened_at"
23
+ t.string "opened_ip"
24
+ t.datetime "clicked_at"
25
+ t.string "clicked_ip"
26
+ end
27
+
28
+ add_index "ponch_deliveries", ["code"], :name => "index_ponch_deliveries_on_code", :unique => true
29
+
30
+ end
File without changes
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </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'
@@ -0,0 +1,9 @@
1
+ require 'test_helper'
2
+
3
+ class HomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class TestMailerTest < ActionMailer::TestCase
4
+ # test "the truth" do
5
+ # assert true
6
+ # end
7
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class HomeHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class PonchTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, Ponch
6
+ end
7
+ end
@@ -0,0 +1,10 @@
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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ponch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-01 00:00:00.000000000 Z
12
+ date: 2012-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &19667820 !ruby/object:Gem::Requirement
16
+ requirement: &12300500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.0.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *19667820
24
+ version_requirements: *12300500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: nokogiri
27
- requirement: &19683660 !ruby/object:Gem::Requirement
27
+ requirement: &12299680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,11 +32,30 @@ dependencies:
32
32
  version: 1.4.7
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *19683660
36
- description: Ponch lets you track opened emails if you're using your own sendmail
37
- server or Amazon SES. Only works on Rails 3.x. It works by inserting an 1x1 tracking
38
- gif on your html emails and adding a controller that handles the request to that
39
- image.
35
+ version_requirements: *12299680
36
+ - !ruby/object:Gem::Dependency
37
+ name: rails
38
+ requirement: &12298840 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 3.0.0
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *12298840
47
+ - !ruby/object:Gem::Dependency
48
+ name: sqlite3
49
+ requirement: &12298080 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: *12298080
58
+ description: Simple email analytics for your Rails app
40
59
  email:
41
60
  - ejpastorino@gmail.com
42
61
  executables: []
@@ -59,8 +78,57 @@ files:
59
78
  - lib/ponch/config.rb
60
79
  - lib/ponch/engine.rb
61
80
  - lib/ponch/interceptor.rb
81
+ - lib/ponch/middleware.rb
62
82
  - lib/ponch/version.rb
63
83
  - ponch.gemspec
84
+ - ponch.jpg
85
+ - test/dummy/Rakefile
86
+ - test/dummy/app/assets/javascripts/application.js
87
+ - test/dummy/app/assets/javascripts/home.js
88
+ - test/dummy/app/assets/stylesheets/application.css
89
+ - test/dummy/app/assets/stylesheets/home.css
90
+ - test/dummy/app/controllers/application_controller.rb
91
+ - test/dummy/app/controllers/home_controller.rb
92
+ - test/dummy/app/helpers/application_helper.rb
93
+ - test/dummy/app/helpers/home_helper.rb
94
+ - test/dummy/app/mailers/.gitkeep
95
+ - test/dummy/app/mailers/test_mailer.rb
96
+ - test/dummy/app/models/.gitkeep
97
+ - test/dummy/app/views/home/index.html.erb
98
+ - test/dummy/app/views/layouts/application.html.erb
99
+ - test/dummy/app/views/test_mailer/hello.html.erb
100
+ - test/dummy/config.ru
101
+ - test/dummy/config/application.rb
102
+ - test/dummy/config/boot.rb
103
+ - test/dummy/config/database.yml
104
+ - test/dummy/config/environment.rb
105
+ - test/dummy/config/environments/development.rb
106
+ - test/dummy/config/environments/production.rb
107
+ - test/dummy/config/environments/test.rb
108
+ - test/dummy/config/initializers/backtrace_silencers.rb
109
+ - test/dummy/config/initializers/inflections.rb
110
+ - test/dummy/config/initializers/mime_types.rb
111
+ - test/dummy/config/initializers/secret_token.rb
112
+ - test/dummy/config/initializers/session_store.rb
113
+ - test/dummy/config/initializers/wrap_parameters.rb
114
+ - test/dummy/config/locales/en.yml
115
+ - test/dummy/config/routes.rb
116
+ - test/dummy/db/migrate/20120125234750_create_ponch_deliveries.rb
117
+ - test/dummy/db/schema.rb
118
+ - test/dummy/db/test.sqlite3
119
+ - test/dummy/lib/assets/.gitkeep
120
+ - test/dummy/log/.gitkeep
121
+ - test/dummy/log/test.log
122
+ - test/dummy/public/404.html
123
+ - test/dummy/public/422.html
124
+ - test/dummy/public/500.html
125
+ - test/dummy/public/favicon.ico
126
+ - test/dummy/script/rails
127
+ - test/dummy/test/functional/home_controller_test.rb
128
+ - test/dummy/test/functional/test_mailer_test.rb
129
+ - test/dummy/test/unit/helpers/home_helper_test.rb
130
+ - test/ponch_test.rb
131
+ - test/test_helper.rb
64
132
  homepage: https://github.com/kitop/ponch
65
133
  licenses: []
66
134
  post_install_message:
@@ -81,8 +149,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
149
  version: '0'
82
150
  requirements: []
83
151
  rubyforge_project:
84
- rubygems_version: 1.8.10
152
+ rubygems_version: 1.8.12
85
153
  signing_key:
86
154
  specification_version: 3
87
- summary: Simple email analytics for your Rails app
155
+ summary: Ponch lets you track opened and clicked emails if you're using your own sendmail
156
+ server or Amazon SES. Only works on Rails 3.x. It works by inserting an 1x1 tracking
157
+ gif on your html emails and adding a controller that handles the request to that
158
+ image.
88
159
  test_files: []