contact_us 0.0.5 → 0.0.6
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/README.md +3 -3
- data/app/views/contact_us/contact_mailer/contact_email.html.erb +1 -1
- data/app/views/contact_us/contact_mailer/contact_email.text.plain.erb +1 -1
- data/app/views/contact_us/contacts/new.html.erb +4 -4
- data/config/locales/contact_us.en.yml +9 -1
- data/contact_us.gemspec +1 -1
- data/lib/contact_us/version.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -10,8 +10,7 @@ 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 '
|
14
|
-
gem 'contact_us', '~> 0.0.5'
|
13
|
+
gem 'contact_us', '~> 0.0.6'
|
15
14
|
|
16
15
|
From `Rails.root` run:
|
17
16
|
|
@@ -30,9 +29,10 @@ Change to the email address you would like to receive the form submissions at fo
|
|
30
29
|
|
31
30
|
The generator copies the view files to `app/views/contact_us`, and you can customize them to suit your needs.
|
32
31
|
|
32
|
+
You may also update your locales under `config/locales/contact_us.en.yml` or create your own. Please feel free to submit your own locales so that other users will hopefully find this gem more useful.
|
33
|
+
|
33
34
|
## TODO
|
34
35
|
|
35
36
|
* 100% test coverage
|
36
|
-
* i18n
|
37
37
|
|
38
38
|
Copyright (c) 2011 Jeff Dutil, released under the MIT license.
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<h2
|
1
|
+
<h2><%= t('.contact_us') %></h2>
|
2
2
|
<%= semantic_form_for @contact, :url => contacts_path do |f| %>
|
3
|
-
<%= f.input :email %>
|
4
|
-
<%= f.input :message, :as => :text %>
|
5
|
-
<%= f.commit_button
|
3
|
+
<%= f.input :email, :label => t('.email') %>
|
4
|
+
<%= f.input :message, :as => :text, :label => t('.message') %>
|
5
|
+
<%= f.commit_button t('.submit'), :button_html => { :alt => t('.submit'), :title => t('.submit') } %>
|
6
6
|
<% end %>
|
data/contact_us.gemspec
CHANGED
@@ -19,6 +19,6 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_runtime_dependency("formtastic", "
|
22
|
+
s.add_runtime_dependency("formtastic", ">= 1.2.0")
|
23
23
|
s.add_runtime_dependency("rails", "~> 3.0.0")
|
24
24
|
end
|
data/lib/contact_us/version.rb
CHANGED
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Dutil
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-06 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
hash: 31
|
30
30
|
segments:
|