contact 0.0.10 → 0.0.11
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.
- data/app/controllers/contact/contacts_controller.rb +1 -1
- data/app/mailers/mailer.rb +1 -1
- data/lib/contact/version.rb +1 -1
- metadata +5 -19
- data/config/environments/development.rb +0 -26
- data/config/environments/production.rb +0 -49
- data/config/environments/test.rb +0 -35
- data/contact-0.0.1.gem +0 -0
- data/contact-0.0.2.gem +0 -0
- data/contact-0.0.3.gem +0 -0
- data/contact-0.0.4.gem +0 -0
- data/contact-0.0.5.gem +0 -0
- data/contact-0.0.6.gem +0 -0
- data/contact-0.0.7.gem +0 -0
- data/contact-0.0.8.gem +0 -0
- data/contact-0.0.9.gem +0 -0
@@ -18,7 +18,7 @@ module Contact
|
|
18
18
|
|
19
19
|
if @contact_form.valid?
|
20
20
|
Contact::Mailer.contact_us(@contact_form).deliver
|
21
|
-
redirect_to
|
21
|
+
redirect_to contact_path, :notice => 'Thank you! Your email has been sent.'
|
22
22
|
else
|
23
23
|
render :new
|
24
24
|
end
|
data/app/mailers/mailer.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
module Contact
|
2
2
|
require 'contact/engine' if defined?(Rails)
|
3
3
|
|
4
|
-
class
|
4
|
+
class Mailer < ActionMailer::Base
|
5
5
|
default :to => CONTACT['default_recipients']
|
6
6
|
|
7
7
|
# We have a contact form. That form is filled out by the customer. When they click 'send', this email is sent.
|
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: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jason Younker
|
@@ -15,8 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
19
|
-
default_executable:
|
18
|
+
date: 2011-06-27 00:00:00 Z
|
20
19
|
dependencies:
|
21
20
|
- !ruby/object:Gem::Dependency
|
22
21
|
name: rspec
|
@@ -78,22 +77,10 @@ files:
|
|
78
77
|
- config/contact.yml
|
79
78
|
- config/database.yml
|
80
79
|
- config/environment.rb
|
81
|
-
- config/environments/development.rb
|
82
|
-
- config/environments/production.rb
|
83
|
-
- config/environments/test.rb
|
84
80
|
- config/initializers/contact_mailer_setup.rb
|
85
81
|
- config/initializers/mime_types.rb
|
86
82
|
- config/locales/en.yml
|
87
83
|
- config/routes.rb
|
88
|
-
- contact-0.0.1.gem
|
89
|
-
- contact-0.0.2.gem
|
90
|
-
- contact-0.0.3.gem
|
91
|
-
- contact-0.0.4.gem
|
92
|
-
- contact-0.0.5.gem
|
93
|
-
- contact-0.0.6.gem
|
94
|
-
- contact-0.0.7.gem
|
95
|
-
- contact-0.0.8.gem
|
96
|
-
- contact-0.0.9.gem
|
97
84
|
- contact.gemspec
|
98
85
|
- db/seeds.rb
|
99
86
|
- doc/README_FOR_APP
|
@@ -122,7 +109,6 @@ files:
|
|
122
109
|
- test/performance/browsing_test.rb
|
123
110
|
- test/test_helper.rb
|
124
111
|
- vendor/plugins/.gitkeep
|
125
|
-
has_rdoc: true
|
126
112
|
homepage: http://www.28dev.com
|
127
113
|
licenses: []
|
128
114
|
|
@@ -152,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
138
|
requirements: []
|
153
139
|
|
154
140
|
rubyforge_project: contact
|
155
|
-
rubygems_version: 1.
|
141
|
+
rubygems_version: 1.8.5
|
156
142
|
signing_key:
|
157
143
|
specification_version: 3
|
158
144
|
summary: Engine to supply simple contact page functionality
|
@@ -1,26 +0,0 @@
|
|
1
|
-
Contact::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 webserver 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_view.debug_rjs = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Don't care if the mailer can't send
|
18
|
-
config.action_mailer.raise_delivery_errors = false
|
19
|
-
|
20
|
-
# Print deprecation notices to the Rails logger
|
21
|
-
config.active_support.deprecation = :log
|
22
|
-
|
23
|
-
# Only use best-standards-support built into browsers
|
24
|
-
config.action_dispatch.best_standards_support = :builtin
|
25
|
-
end
|
26
|
-
|
@@ -1,49 +0,0 @@
|
|
1
|
-
Contact::Application.configure do
|
2
|
-
# Settings specified here will take precedence over those in config/application.rb
|
3
|
-
|
4
|
-
# The production environment is meant for finished, "live" apps.
|
5
|
-
# Code is not reloaded between requests
|
6
|
-
config.cache_classes = true
|
7
|
-
|
8
|
-
# Full error reports are disabled and caching is turned on
|
9
|
-
config.consider_all_requests_local = false
|
10
|
-
config.action_controller.perform_caching = true
|
11
|
-
|
12
|
-
# Specifies the header that your server uses for sending files
|
13
|
-
config.action_dispatch.x_sendfile_header = "X-Sendfile"
|
14
|
-
|
15
|
-
# For nginx:
|
16
|
-
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
|
17
|
-
|
18
|
-
# If you have no front-end server that supports something like X-Sendfile,
|
19
|
-
# just comment this out and Rails will serve the files
|
20
|
-
|
21
|
-
# See everything in the log (default is :info)
|
22
|
-
# config.log_level = :debug
|
23
|
-
|
24
|
-
# Use a different logger for distributed setups
|
25
|
-
# config.logger = SyslogLogger.new
|
26
|
-
|
27
|
-
# Use a different cache store in production
|
28
|
-
# config.cache_store = :mem_cache_store
|
29
|
-
|
30
|
-
# Disable Rails's static asset server
|
31
|
-
# In production, Apache or nginx will already do this
|
32
|
-
config.serve_static_assets = false
|
33
|
-
|
34
|
-
# Enable serving of images, stylesheets, and javascripts from an asset server
|
35
|
-
# config.action_controller.asset_host = "http://assets.example.com"
|
36
|
-
|
37
|
-
# Disable delivery errors, bad email addresses will be ignored
|
38
|
-
# config.action_mailer.raise_delivery_errors = false
|
39
|
-
|
40
|
-
# Enable threaded mode
|
41
|
-
# config.threadsafe!
|
42
|
-
|
43
|
-
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
44
|
-
# the I18n.default_locale when a translation can not be found)
|
45
|
-
config.i18n.fallbacks = true
|
46
|
-
|
47
|
-
# Send deprecation notices to registered listeners
|
48
|
-
config.active_support.deprecation = :notify
|
49
|
-
end
|
data/config/environments/test.rb
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
Contact::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
|
-
# Log error messages when you accidentally call methods on nil.
|
11
|
-
config.whiny_nils = true
|
12
|
-
|
13
|
-
# Show full error reports and disable caching
|
14
|
-
config.consider_all_requests_local = true
|
15
|
-
config.action_controller.perform_caching = false
|
16
|
-
|
17
|
-
# Raise exceptions instead of rendering exception templates
|
18
|
-
config.action_dispatch.show_exceptions = false
|
19
|
-
|
20
|
-
# Disable request forgery protection in test environment
|
21
|
-
config.action_controller.allow_forgery_protection = false
|
22
|
-
|
23
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
24
|
-
# The :test delivery method accumulates sent emails in the
|
25
|
-
# ActionMailer::Base.deliveries array.
|
26
|
-
config.action_mailer.delivery_method = :test
|
27
|
-
|
28
|
-
# Use SQL instead of Active Record's schema dumper when creating the test database.
|
29
|
-
# This is necessary if your schema can't be completely dumped by the schema dumper,
|
30
|
-
# like if you have constraints or database-specific column types
|
31
|
-
# config.active_record.schema_format = :sql
|
32
|
-
|
33
|
-
# Print deprecation notices to the stderr
|
34
|
-
config.active_support.deprecation = :stderr
|
35
|
-
end
|
data/contact-0.0.1.gem
DELETED
Binary file
|
data/contact-0.0.2.gem
DELETED
Binary file
|
data/contact-0.0.3.gem
DELETED
Binary file
|
data/contact-0.0.4.gem
DELETED
Binary file
|
data/contact-0.0.5.gem
DELETED
Binary file
|
data/contact-0.0.6.gem
DELETED
Binary file
|
data/contact-0.0.7.gem
DELETED
Binary file
|
data/contact-0.0.8.gem
DELETED
Binary file
|
data/contact-0.0.9.gem
DELETED
Binary file
|