contact_us 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,23 +10,25 @@ Contact Us requires the Formtastic Gem. Read more about Formtastic @ https://gi
10
10
 
11
11
  In your `Gemfile`, add the following dependencies:
12
12
 
13
- gem 'formtastic'
14
- gem 'contact_us', '~> 0.0.4'
13
+ gem 'formtastic', '~> 1.2.0'
14
+ gem 'contact_us', '~> 0.0.5'
15
15
 
16
16
  From `Rails.root` run:
17
17
 
18
18
  $ bundle install
19
19
  $ rake contact_us:install
20
-
21
- Modify the installed initializer's mailer to settings to use your own email address.
22
20
 
23
- ## CONFIGURATION
21
+ In `config/initializers/contact_us.rb` modify:
22
+
23
+ config.mailer_to = "contact@please-change-me.com"
24
24
 
25
- The installation generator creates the `contact_us.rb` initializer within your apps `config/initializers` directory.
25
+ Change to the email address you would like to receive the form submissions at for example:
26
26
 
27
- Modify the mailer to setting to be where you would like to send the contact form emails.
27
+ config.mailer_to = "contact@yourdomain.com"
28
+
29
+ ## CONFIGURATION
28
30
 
29
- The generator has also copied the view files to `app/views/contact_us`, and you can customize them to suit your needs.
31
+ The generator copies the view files to `app/views/contact_us`, and you can customize them to suit your needs.
30
32
 
31
33
  ## TODO
32
34
 
@@ -18,4 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
+
22
+ s.add_runtime_dependency("formtastic", "~> 1.2.0")
23
+ s.add_runtime_dependency("rails", "~> 3.0.0")
21
24
  end
@@ -1,7 +1,7 @@
1
1
  module ContactUs
2
2
  require 'contact_us/engine'
3
3
 
4
- # Address which sends Devise e-mails.
4
+ # Address to send ContactUs e-mails.
5
5
  mattr_accessor :mailer_to
6
6
 
7
7
  # Default way to setup ContactUs. Run rake contact_us:install to create
@@ -1,3 +1,3 @@
1
1
  module ContactUs
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contact_us
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeff Dutil
@@ -15,10 +15,41 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-04 00:00:00 -04:00
18
+ date: 2011-05-24 00:00:00 -04:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: formtastic
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 31
30
+ segments:
31
+ - 1
32
+ - 2
33
+ - 0
34
+ version: 1.2.0
35
+ type: :runtime
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: rails
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 7
46
+ segments:
47
+ - 3
48
+ - 0
49
+ - 0
50
+ version: 3.0.0
51
+ type: :runtime
52
+ version_requirements: *id002
22
53
  description: A Rails 3 Engine providing a basic contact form. I used Formtastic to keep things simple, and to hook into your apps custom Formtastic stylesheets.
23
54
  email:
24
55
  - JDutil@BurlingtonWebApps.com
@@ -38,7 +69,7 @@ files:
38
69
  - app/helpers/contact_us/contacts_helper.rb
39
70
  - app/mailers/contact_us/contact_mailer.rb
40
71
  - app/models/contact_us/contact.rb
41
- - app/views/contact_us/contact_mailer/contact_email.text.html.erb
72
+ - app/views/contact_us/contact_mailer/contact_email.html.erb
42
73
  - app/views/contact_us/contact_mailer/contact_email.text.plain.erb
43
74
  - app/views/contact_us/contacts/new.html.erb
44
75
  - config/locales/contact_us.en.yml