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