contact 0.0.3 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- # module Contact
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
- # end
28
+ end
data/config/contact.yml CHANGED
@@ -1,14 +1,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
+ # 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(File.expand_path('../../contact.yml', __FILE__)))[env]
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
@@ -1,6 +1,6 @@
1
1
  Rails.application.routes.draw do
2
2
  scope :module => 'contact' do
3
- get "contact", :to => 'contacts#new'
3
+ get "contact", :to => 'contacts#new'
4
4
  post "contact/send_email", :to => 'contacts#send_email', :as => 'send_email'
5
5
  end
6
6
  end
data/contact-0.0.3.gem ADDED
Binary file
data/contact-0.0.4.gem ADDED
Binary file
@@ -1,3 +1,3 @@
1
1
  module Contact
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
  end
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: 25
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
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-03 00:00:00 -07:00
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