contactus 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -0
- data/app/models/contactus/contact_form.rb +5 -1
- data/lib/contactus.rb +3 -0
- data/lib/contactus/version.rb +1 -1
- data/lib/templates/contactus.rb +3 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/test.log +272 -0
- data/spec/models/contactus/contact_form_spec.rb +5 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3041f5d262f65f33fbff34cfc477801d10d89cc2
|
4
|
+
data.tar.gz: 1df330524603cda8e04bf80fe76b86ac204f3f20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6926b20b89d65d3f0ddd3d7d88f5ff0ec21880a8b81590fe224bce35b075c20f507f7c149ee3820fb320e58672039201f1c3a9419fbc9b04e4443b7974db237b
|
7
|
+
data.tar.gz: 5fa61f9fd7826f6dcaeaa694ab094f55384b14ae2ee653603cab1b4e6bfe78c40433d800201b9e6aff84839d3f7246f9463d6460e601de26cfb18ad653fc8769
|
data/README.rdoc
CHANGED
@@ -29,6 +29,9 @@ There will be a initializer file called contactus.rb, where you can configure th
|
|
29
29
|
# Configure the e-mail address which should receive the cc email
|
30
30
|
#config.mailer_cc = "contact@example.com"
|
31
31
|
|
32
|
+
# Configure multiple e-mail address which should receive the bcc email
|
33
|
+
#config.mailer_bcc = ["contact1@example.com", "contact2@example.com", "contact3@example.com"]
|
34
|
+
|
32
35
|
# Configure extra fields
|
33
36
|
#config.extra_fields = %w(city phone)
|
34
37
|
|
@@ -21,7 +21,7 @@ module Contactus
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def headers
|
24
|
-
default_header.merge(cc_header)
|
24
|
+
default_header.merge(cc_header).merge(bcc_header)
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
@@ -38,6 +38,10 @@ module Contactus
|
|
38
38
|
(Contactus.mailer_cc)? { :cc => Contactus.mailer_cc } : {}
|
39
39
|
end
|
40
40
|
|
41
|
+
def bcc_header
|
42
|
+
(Contactus.mailer_bcc)? { :bcc => Contactus.mailer_bcc } : {}
|
43
|
+
end
|
44
|
+
|
41
45
|
def from_email
|
42
46
|
Contactus.mailer_from || %("#{name}" <#{email}>)
|
43
47
|
end
|
data/lib/contactus.rb
CHANGED
data/lib/contactus/version.rb
CHANGED
data/lib/templates/contactus.rb
CHANGED
@@ -8,6 +8,9 @@ Contactus.setup do |config|
|
|
8
8
|
# Configure the e-mail address which should receive the cc email
|
9
9
|
#config.mailer_cc = "contact@example.com"
|
10
10
|
|
11
|
+
# Configure multiple e-mail address which should receive the bcc email
|
12
|
+
#config.mailer_bcc = ["contact1@example.com", "contact2@example.com", "contact3@example.com"]
|
13
|
+
|
11
14
|
# Configure extra fields
|
12
15
|
#config.extra_fields = %w(city phone)
|
13
16
|
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/spec/dummy/log/test.log
CHANGED
@@ -7306,3 +7306,275 @@ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
|
7306
7306
|
[1m[35m (0.1ms)[0m rollback transaction
|
7307
7307
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7308
7308
|
[1m[35m (0.1ms)[0m rollback transaction
|
7309
|
+
[1m[36m (390.5ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7310
|
+
[1m[35m (45.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7311
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7312
|
+
[1m[35m (9.2ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
7313
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
7314
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:27:43 -0500
|
7315
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7316
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (858.3ms)
|
7317
|
+
Completed 200 OK in 920ms (Views: 919.3ms | ActiveRecord: 0.0ms)
|
7318
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:27:44 -0500
|
7319
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7320
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"", "city"=>"", "email"=>"", "message"=>"", "nickname"=>""}, "commit"=>"Enviar"}
|
7321
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (6.7ms)
|
7322
|
+
Completed 200 OK in 9ms (Views: 7.7ms | ActiveRecord: 0.0ms)
|
7323
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7324
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7325
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:27:44 -0500
|
7326
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7327
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (6.3ms)
|
7328
|
+
Completed 200 OK in 7ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
7329
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:27:44 -0500
|
7330
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7331
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"Bill Hicks", "city"=>"", "email"=>"beelzebozo@example.com", "message"=>"If you think you’re free, try going somewhere without fucking money, okay?", "nickname"=>""}, "commit"=>"Enviar"}
|
7332
|
+
Completed 500 Internal Server Error in 905ms
|
7333
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7334
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7335
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:27:45 -0500
|
7336
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7337
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (6.5ms)
|
7338
|
+
Completed 200 OK in 7ms (Views: 7.2ms | ActiveRecord: 0.0ms)
|
7339
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:27:45 -0500
|
7340
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7341
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"Bill Hicks", "city"=>"", "email"=>"beelzebozo@example.com", "message"=>"If you think you’re free, try going somewhere without fucking money, okay?", "nickname"=>"Hey there"}, "commit"=>"Enviar"}
|
7342
|
+
Redirected to http://www.example.com/
|
7343
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7344
|
+
Started GET "/" for 127.0.0.1 at 2014-02-24 10:27:45 -0500
|
7345
|
+
Processing by WelcomeController#index as HTML
|
7346
|
+
Rendered welcome/index.html.haml within layouts/application (0.7ms)
|
7347
|
+
Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
|
7348
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7349
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7352
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7353
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7354
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7355
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7356
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7357
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7358
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7359
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7360
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7361
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7362
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7363
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7364
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7365
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7366
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7367
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7368
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7369
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7370
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7371
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7372
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7373
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7374
|
+
[1m[35m (1.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
7375
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
7376
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:29:55 -0500
|
7377
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7378
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (428.6ms)
|
7379
|
+
Completed 200 OK in 452ms (Views: 451.7ms | ActiveRecord: 0.0ms)
|
7380
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:29:55 -0500
|
7381
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7382
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"", "city"=>"", "email"=>"", "message"=>"", "nickname"=>""}, "commit"=>"Enviar"}
|
7383
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (5.6ms)
|
7384
|
+
Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.0ms)
|
7385
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7386
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7387
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:29:55 -0500
|
7388
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7389
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (5.7ms)
|
7390
|
+
Completed 200 OK in 7ms (Views: 6.4ms | ActiveRecord: 0.0ms)
|
7391
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:29:55 -0500
|
7392
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7393
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"Bill Hicks", "city"=>"", "email"=>"beelzebozo@example.com", "message"=>"If you think you’re free, try going somewhere without fucking money, okay?", "nickname"=>""}, "commit"=>"Enviar"}
|
7394
|
+
Rendered /Users/joselo/.rvm/gems/ruby-2.0.0-p195@contactus/gems/mail_form-1.5.0/lib/mail_form/views/mail_form/contact.erb (3.4ms)
|
7395
|
+
|
7396
|
+
Sent mail to webmaster@example.com (38.9ms)
|
7397
|
+
Date: Mon, 24 Feb 2014 10:29:56 -0500
|
7398
|
+
From: Bill Hicks <beelzebozo@example.com>
|
7399
|
+
To: webmaster@example.com
|
7400
|
+
Message-ID: <530b6574b059_7ec3ffd2505e6d42198c@Joses-MacBook-Pro.local.mail>
|
7401
|
+
Subject: Alguien se a puesto en contacto.
|
7402
|
+
Mime-Version: 1.0
|
7403
|
+
Content-Type: text/html;
|
7404
|
+
charset=UTF-8
|
7405
|
+
Content-Transfer-Encoding: quoted-printable
|
7406
|
+
|
7407
|
+
<h4 style=3D"text-decoration:underline">Alguien se a puesto en contacto.<=
|
7408
|
+
/h4>
|
7409
|
+
|
7410
|
+
|
7411
|
+
<p><b>Nombres y Apellidos:</b>
|
7412
|
+
Bill Hicks</p>
|
7413
|
+
|
7414
|
+
<p><b>Correo electr=C3=B3nico:</b>
|
7415
|
+
beelzebozo@example.com</p>
|
7416
|
+
|
7417
|
+
<p><b>Comentarios:</b>
|
7418
|
+
If you think you=E2=80=99re free, try going somewhere without fucking m=
|
7419
|
+
oney, okay?</p>
|
7420
|
+
|
7421
|
+
<br /><h4 style=3D"text-decoration:underline">Informaci=C3=B3n t=C3=A9c=
|
7422
|
+
nica sobre el usuario</h4>
|
7423
|
+
|
7424
|
+
|
7425
|
+
<p><b>Direcci=C3=B3n IP:</b>
|
7426
|
+
127.0.0.1</p>
|
7427
|
+
|
7428
|
+
<p><b>Navegador:</b>
|
7429
|
+
nil</p>
|
7430
|
+
|
7431
|
+
<p><b>Session:</b>
|
7432
|
+
#<ActionDispatch::Request::Session:0x7ffa4dbc8410 not yet loaded&g=
|
7433
|
+
t;</p>
|
7434
|
+
<br />
|
7435
|
+
|
7436
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/create.html.haml within layouts/application (1.4ms)
|
7437
|
+
Completed 200 OK in 348ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
7438
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7439
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7440
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:29:56 -0500
|
7441
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7442
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (39.7ms)
|
7443
|
+
Completed 200 OK in 41ms (Views: 40.4ms | ActiveRecord: 0.0ms)
|
7444
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:29:56 -0500
|
7445
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7446
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"Bill Hicks", "city"=>"", "email"=>"beelzebozo@example.com", "message"=>"If you think you’re free, try going somewhere without fucking money, okay?", "nickname"=>"Hey there"}, "commit"=>"Enviar"}
|
7447
|
+
Redirected to http://www.example.com/
|
7448
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7449
|
+
Started GET "/" for 127.0.0.1 at 2014-02-24 10:29:56 -0500
|
7450
|
+
Processing by WelcomeController#index as HTML
|
7451
|
+
Rendered welcome/index.html.haml within layouts/application (0.7ms)
|
7452
|
+
Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
|
7453
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7454
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
7455
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7456
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7457
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7459
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7460
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7461
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7462
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7463
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7464
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7465
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7466
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7467
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7468
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7469
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7470
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7471
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7472
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7473
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7474
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7475
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7476
|
+
[1m[36m (2.7ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) [0m
|
7477
|
+
[1m[35m (1.8ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
7478
|
+
[1m[36m (0.1ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
7479
|
+
[1m[35m (1.0ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('0')
|
7480
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
7481
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:30:44 -0500
|
7482
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7483
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (433.4ms)
|
7484
|
+
Completed 200 OK in 456ms (Views: 455.8ms | ActiveRecord: 0.0ms)
|
7485
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:30:45 -0500
|
7486
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7487
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"", "city"=>"", "email"=>"", "message"=>"", "nickname"=>""}, "commit"=>"Enviar"}
|
7488
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (5.8ms)
|
7489
|
+
Completed 200 OK in 8ms (Views: 6.5ms | ActiveRecord: 0.0ms)
|
7490
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7491
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7492
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:30:45 -0500
|
7493
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7494
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (6.1ms)
|
7495
|
+
Completed 200 OK in 7ms (Views: 6.8ms | ActiveRecord: 0.0ms)
|
7496
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:30:45 -0500
|
7497
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7498
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"Bill Hicks", "city"=>"", "email"=>"beelzebozo@example.com", "message"=>"If you think you’re free, try going somewhere without fucking money, okay?", "nickname"=>""}, "commit"=>"Enviar"}
|
7499
|
+
Rendered /Users/joselo/.rvm/gems/ruby-2.0.0-p195@contactus/gems/mail_form-1.5.0/lib/mail_form/views/mail_form/contact.erb (3.0ms)
|
7500
|
+
|
7501
|
+
Sent mail to webmaster@example.com (9.8ms)
|
7502
|
+
Date: Mon, 24 Feb 2014 10:30:45 -0500
|
7503
|
+
From: Bill Hicks <beelzebozo@example.com>
|
7504
|
+
To: webmaster@example.com
|
7505
|
+
Message-ID: <530b65a5ab0b4_8033fdd2845e6d42996b@Joses-MacBook-Pro.local.mail>
|
7506
|
+
Subject: Alguien se a puesto en contacto.
|
7507
|
+
Mime-Version: 1.0
|
7508
|
+
Content-Type: text/html;
|
7509
|
+
charset=UTF-8
|
7510
|
+
Content-Transfer-Encoding: quoted-printable
|
7511
|
+
|
7512
|
+
<h4 style=3D"text-decoration:underline">Alguien se a puesto en contacto.<=
|
7513
|
+
/h4>
|
7514
|
+
|
7515
|
+
|
7516
|
+
<p><b>Nombres y Apellidos:</b>
|
7517
|
+
Bill Hicks</p>
|
7518
|
+
|
7519
|
+
<p><b>Correo electr=C3=B3nico:</b>
|
7520
|
+
beelzebozo@example.com</p>
|
7521
|
+
|
7522
|
+
<p><b>Comentarios:</b>
|
7523
|
+
If you think you=E2=80=99re free, try going somewhere without fucking m=
|
7524
|
+
oney, okay?</p>
|
7525
|
+
|
7526
|
+
<br /><h4 style=3D"text-decoration:underline">Informaci=C3=B3n t=C3=A9c=
|
7527
|
+
nica sobre el usuario</h4>
|
7528
|
+
|
7529
|
+
|
7530
|
+
<p><b>Direcci=C3=B3n IP:</b>
|
7531
|
+
127.0.0.1</p>
|
7532
|
+
|
7533
|
+
<p><b>Navegador:</b>
|
7534
|
+
nil</p>
|
7535
|
+
|
7536
|
+
<p><b>Session:</b>
|
7537
|
+
#<ActionDispatch::Request::Session:0x7fba51e14340 not yet loaded&g=
|
7538
|
+
t;</p>
|
7539
|
+
<br />
|
7540
|
+
|
7541
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/create.html.haml within layouts/application (1.7ms)
|
7542
|
+
Completed 200 OK in 259ms (Views: 3.4ms | ActiveRecord: 0.0ms)
|
7543
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7544
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7545
|
+
Started GET "/contact" for 127.0.0.1 at 2014-02-24 10:30:45 -0500
|
7546
|
+
Processing by Contactus::ContactFormsController#new as HTML
|
7547
|
+
Rendered /Users/joselo/code/contactus/app/views/contactus/contact_forms/new.html.haml within layouts/application (52.9ms)
|
7548
|
+
Completed 200 OK in 54ms (Views: 53.6ms | ActiveRecord: 0.0ms)
|
7549
|
+
Started POST "/contactus/contact_forms" for 127.0.0.1 at 2014-02-24 10:30:45 -0500
|
7550
|
+
Processing by Contactus::ContactFormsController#create as HTML
|
7551
|
+
Parameters: {"utf8"=>"✓", "contactus_contact_form"=>{"name"=>"Bill Hicks", "city"=>"", "email"=>"beelzebozo@example.com", "message"=>"If you think you’re free, try going somewhere without fucking money, okay?", "nickname"=>"Hey there"}, "commit"=>"Enviar"}
|
7552
|
+
Redirected to http://www.example.com/
|
7553
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
7554
|
+
Started GET "/" for 127.0.0.1 at 2014-02-24 10:30:45 -0500
|
7555
|
+
Processing by WelcomeController#index as HTML
|
7556
|
+
Rendered welcome/index.html.haml within layouts/application (0.7ms)
|
7557
|
+
Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
7558
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7559
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7560
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7561
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7562
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7563
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7564
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7565
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7566
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7567
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7568
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7569
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7570
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
7571
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7572
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7573
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7574
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7575
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7576
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7577
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7578
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
7579
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7580
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -38,6 +38,7 @@ module Contactus
|
|
38
38
|
|
39
39
|
before do
|
40
40
|
Contactus.mailer_cc = "cc@example.com"
|
41
|
+
Contactus.mailer_bcc = ["bcc1@example.com", "bcc2@example.com"]
|
41
42
|
Contactus.mailer_from = "from@example.com"
|
42
43
|
@contact_form = FactoryGirl.build(:contact_form)
|
43
44
|
end
|
@@ -46,6 +47,10 @@ module Contactus
|
|
46
47
|
@contact_form.headers[:cc].should == Contactus.mailer_cc
|
47
48
|
end
|
48
49
|
|
50
|
+
it 'should assing the bcc' do
|
51
|
+
@contact_form.headers[:bcc].should == Contactus.mailer_bcc
|
52
|
+
end
|
53
|
+
|
49
54
|
it 'should assing the from' do
|
50
55
|
@contact_form.headers[:from].should == Contactus.mailer_from
|
51
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contactus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jose Carrion
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -251,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
251
|
version: '0'
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
254
|
+
rubygems_version: 2.1.10
|
255
255
|
signing_key:
|
256
256
|
specification_version: 4
|
257
257
|
summary: Contactus is a simple Ruby on Rails gem that generate a contact form for
|