contact_us 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
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 'formtastic', '~> 1.2.0'
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,3 +1,3 @@
1
1
  <p><%= @message %><p>
2
2
  <p>---------------------</p>
3
- <p>Sent by contact form.</p>
3
+ <p><%= t('.sent_by_contact_form') %></p>
@@ -1,4 +1,4 @@
1
1
  <%= @message %>
2
2
 
3
3
  -------------------------------------
4
- Sent by contact form.
4
+ <%= t('.sent_by_contact_form') %>
@@ -1,6 +1,6 @@
1
- <h2>Contact Us</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 "Submit", :button_html => { :title => 'Submit' } %>
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 %>
@@ -3,4 +3,12 @@
3
3
 
4
4
  en:
5
5
  contact_us:
6
- sent_by: "Sent by "
6
+ contact_mailer:
7
+ contact_email:
8
+ sent_by_contact_form: "Sent by contact form."
9
+ contacts:
10
+ new:
11
+ contact_us: "Contact Us"
12
+ email: "Email"
13
+ message: "Message"
14
+ submit: "Submit"
@@ -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", "~> 1.2.0")
22
+ s.add_runtime_dependency("formtastic", ">= 1.2.0")
23
23
  s.add_runtime_dependency("rails", "~> 3.0.0")
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module ContactUs
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
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-05-24 00:00:00 -04:00
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: