contact 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/app/controllers/{contacts_controller.rb → contact/contacts_controller.rb} +2 -2
- data/config/contact.yml +14 -14
- data/config/initializers/contact_mailer_setup.rb +1 -1
- data/config/routes.rb +1 -1
- data/contact-0.0.3.gem +0 -0
- data/contact-0.0.4.gem +0 -0
- data/lib/contact/version.rb +1 -1
- metadata +8 -6
- /data/app/views/{contacts → contact/contacts}/new.haml +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
# Until this issue is solved, I can't place it inside Contact:
|
2
2
|
# http://stackoverflow.com/questions/5445350/rails3-engine-controller-scoped-inside-engine-module-returning-load-error-by-c
|
3
|
-
|
3
|
+
module Contact
|
4
4
|
class ContactsController < ApplicationController
|
5
5
|
|
6
6
|
# This must be included in your engine controllers. Unloadable marks your class for reloading inbetween requests.
|
@@ -25,4 +25,4 @@
|
|
25
25
|
end
|
26
26
|
|
27
27
|
end
|
28
|
-
|
28
|
+
end
|
data/config/contact.yml
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
development:
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
# development:
|
2
|
+
# host: localhost:3000
|
3
|
+
# default_recipients: 'contact_engine@28dev.com'
|
4
|
+
# smtp:
|
5
|
+
# address: 'smtp.webfaction.com'
|
6
|
+
# port: '25'
|
7
|
+
# domain: 'webfaction.com'
|
8
|
+
# authentication: 'login'
|
9
|
+
# username: 'younker_test'
|
10
|
+
# password: 'T3stpwd'
|
11
|
+
# interceptor:
|
12
|
+
# intercept: true
|
13
|
+
# intercept_recipient: 'intercepted@28dev.com'
|
14
|
+
#
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
env = Rails.env.present? ? Rails.env.to_s : 'test'
|
3
|
-
CONTACT = YAML.load(File.read(
|
3
|
+
CONTACT = YAML.load(File.read(Rails.root.to_s.concat('/config/contact.yml')))[env]
|
4
4
|
|
5
5
|
ActionMailer::Base.smtp_settings = {
|
6
6
|
:address => CONTACT['smtp']['address'],
|
data/config/routes.rb
CHANGED
data/contact-0.0.3.gem
ADDED
Binary file
|
data/contact-0.0.4.gem
ADDED
Binary file
|
data/lib/contact/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Younker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-04-
|
18
|
+
date: 2011-04-07 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -63,11 +63,11 @@ files:
|
|
63
63
|
- README
|
64
64
|
- Rakefile
|
65
65
|
- app/controllers/application_controller.rb
|
66
|
-
- app/controllers/contacts_controller.rb
|
66
|
+
- app/controllers/contact/contacts_controller.rb
|
67
67
|
- app/helpers/application_helper.rb
|
68
68
|
- app/mailers/mailer.rb
|
69
69
|
- app/models/form.rb
|
70
|
-
- app/views/contacts/new.haml
|
70
|
+
- app/views/contact/contacts/new.haml
|
71
71
|
- app/views/layouts/application.html.erb
|
72
72
|
- app/views/mailer/contact_us.html.haml
|
73
73
|
- app/views/mailer/contact_us.text.haml
|
@@ -87,6 +87,8 @@ files:
|
|
87
87
|
- config/routes.rb
|
88
88
|
- contact-0.0.1.gem
|
89
89
|
- contact-0.0.2.gem
|
90
|
+
- contact-0.0.3.gem
|
91
|
+
- contact-0.0.4.gem
|
90
92
|
- contact.gemspec
|
91
93
|
- db/seeds.rb
|
92
94
|
- doc/README_FOR_APP
|
File without changes
|