shoulda_generator 0.2.2 → 1.3.2

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/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 2
2
+ :patch: 3
3
3
  :major: 0
4
4
  :minor: 2
@@ -1,9 +1,9 @@
1
- %h1 Editing <%= singular_name.humanize %>
1
+ %h1 t("Editing") <%= singular_name.humanize %>
2
2
 
3
3
  - form_for(@<%= singular_name %>) do |form|
4
4
  = render :partial => 'form', :locals => {:form => form}
5
- %p= form.submit 'Update'
5
+ %p= form.submit t('update')
6
6
 
7
7
  %p
8
- = link_to 'Show', @<%= singular_name %>
9
- = link_to 'Back', <%= plural_name %>_path
8
+ = link_to t('show'), @<%= singular_name %>
9
+ = link_to t('back'), <%= plural_name %>_path
@@ -1,4 +1,4 @@
1
- %h1 Listing <%= plural_name.humanize %>
1
+ %h1 t("Listing") <%= plural_name.humanize %>
2
2
 
3
3
  %table
4
4
  %tr
@@ -11,8 +11,8 @@
11
11
  <% for attribute in attributes -%>
12
12
  %td= h <%= singular_name %>.<%= attribute.name %>
13
13
  <% end -%>
14
- %td= link_to 'Show', <%= singular_name %>
15
- %td= link_to 'Edit', edit_<%= singular_name %>_path(<%= singular_name %>)
16
- %td= link_to 'Destroy', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete
14
+ %td= link_to t('show'), <%= singular_name %>
15
+ %td= link_to t('edit'), edit_<%= singular_name %>_path(<%= singular_name %>)
16
+ %td= link_to t('destroy'), <%= singular_name %>, :confirm => t('sure destroy'), :method => :delete
17
17
 
18
- %p= link_to 'New <%= singular_name.humanize %>', new_<%= singular_name %>_path
18
+ %p= link_to 't(new) <%= singular_name.humanize %>', new_<%= singular_name %>_path
@@ -1,7 +1,7 @@
1
- %h1 New <%= singular_name.humanize %>
1
+ %h1 t("New") <%= singular_name.humanize %>
2
2
 
3
3
  - form_for(@<%= singular_name %>) do |form|
4
4
  = render :partial => 'form', :locals => {:form => form}
5
- %p= form.submit "Create"
5
+ %p= form.submit t("create")
6
6
 
7
- %p= link_to 'Back', <%= plural_name %>_path
7
+ %p= link_to t('back'), <%= plural_name %>_path
@@ -5,6 +5,6 @@
5
5
  <% end -%>
6
6
 
7
7
  %p
8
- = link_to 'Edit', edit_<%= singular_name %>_path(@<%= singular_name %>)
8
+ = link_to t('edit'), edit_<%= singular_name %>_path(@<%= singular_name %>)
9
9
  |
10
- = link_to 'Back', <%= plural_name %>_path
10
+ = link_to t('back'), <%= plural_name %>_path
metadata CHANGED
@@ -3,14 +3,15 @@ name: shoulda_generator
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
- - 0
6
+ - 1
7
+ - 3
7
8
  - 2
8
- - 2
9
- version: 0.2.2
9
+ version: 1.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Josh Nichols
13
13
  - Martijn Storck
14
+ - Luis Prill Sempere
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
@@ -20,7 +21,7 @@ default_executable:
20
21
  dependencies: []
21
22
 
22
23
  description: Generators which create tests using shoulda
23
- email: josh@technicalpickles.com
24
+ email: ovantu@gmail.com
24
25
  executables: []
25
26
 
26
27
  extensions: []
@@ -83,7 +84,7 @@ files:
83
84
  - test/stolen_from_railties.rb
84
85
  - test/test_helper.rb
85
86
  has_rdoc: true
86
- homepage: http://github.com/technicalpickles/shoulda_generator
87
+ homepage: http://github.com/LuNiPriSe/shoulda_generator
87
88
  licenses: []
88
89
 
89
90
  post_install_message: