i18n_rails_helpers 0.17.1 → 0.18.0
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/lib/contextual_link_helpers.rb +4 -4
 - data/lib/i18n_rails_helpers/version.rb +1 -1
 - metadata +22 -40
 
| 
         @@ -56,7 +56,7 @@ module ContextualLinkHelpers 
     | 
|
| 
       56 
56 
     | 
    
         
             
                return icon_link_to(action, path, options)
         
     | 
| 
       57 
57 
     | 
    
         
             
              end
         
     | 
| 
       58 
58 
     | 
    
         | 
| 
       59 
     | 
    
         
            -
              def contextual_links_for(action = nil, resource_or_model = nil)
         
     | 
| 
      
 59 
     | 
    
         
            +
              def contextual_links_for(action = nil, resource_or_model = nil, options = {})
         
     | 
| 
       60 
60 
     | 
    
         
             
                # Use current action if not specified
         
     | 
| 
       61 
61 
     | 
    
         
             
                action ||= action_name
         
     | 
| 
       62 
62 
     | 
    
         | 
| 
         @@ -75,14 +75,14 @@ module ContextualLinkHelpers 
     | 
|
| 
       75 
75 
     | 
    
         
             
                  actions << 'new'
         
     | 
| 
       76 
76 
     | 
    
         
             
                end
         
     | 
| 
       77 
77 
     | 
    
         | 
| 
       78 
     | 
    
         
            -
                links = actions.map{|link_for| contextual_link_to(link_for, resource_or_model)}
         
     | 
| 
      
 78 
     | 
    
         
            +
                links = actions.map{|link_for| contextual_link_to(link_for, resource_or_model, options)}
         
     | 
| 
       79 
79 
     | 
    
         | 
| 
       80 
80 
     | 
    
         
             
                return links.join("\n").html_safe
         
     | 
| 
       81 
81 
     | 
    
         
             
              end
         
     | 
| 
       82 
82 
     | 
    
         | 
| 
       83 
     | 
    
         
            -
              def contextual_links(action = nil, resource_or_model = nil)
         
     | 
| 
      
 83 
     | 
    
         
            +
              def contextual_links(action = nil, resource_or_model = nil, options = {})
         
     | 
| 
       84 
84 
     | 
    
         
             
                content_tag('div', :class => 'contextual') do
         
     | 
| 
       85 
     | 
    
         
            -
                  contextual_links_for(action, resource_or_model)
         
     | 
| 
      
 85 
     | 
    
         
            +
                  contextual_links_for(action, resource_or_model, options)
         
     | 
| 
       86 
86 
     | 
    
         
             
                end
         
     | 
| 
       87 
87 
     | 
    
         
             
              end
         
     | 
| 
       88 
88 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,32 +1,24 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            --- !ruby/object:Gem::Specification 
     | 
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: i18n_rails_helpers
         
     | 
| 
       3 
     | 
    
         
            -
            version: !ruby/object:Gem::Version 
     | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.18.0
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
     | 
    
         
            -
              segments: 
         
     | 
| 
       7 
     | 
    
         
            -
              - 0
         
     | 
| 
       8 
     | 
    
         
            -
              - 17
         
     | 
| 
       9 
     | 
    
         
            -
              - 1
         
     | 
| 
       10 
     | 
    
         
            -
              version: 0.17.1
         
     | 
| 
       11 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
     | 
    
         
            -
            authors: 
     | 
| 
       13 
     | 
    
         
            -
            -  
     | 
| 
      
 7 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 8 
     | 
    
         
            +
            - Simon Hürlimann (CyT)
         
     | 
| 
       14 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       15 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
     | 
    
         
            -
             
     | 
| 
       18 
     | 
    
         
            -
            date: 2012-01-16 00:00:00 Z
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2012-03-22 00:00:00.000000000Z
         
     | 
| 
       19 
13 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       20 
     | 
    
         
            -
             
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
      
 14 
     | 
    
         
            +
            description: Rails i18n view helpers for things like crud actions, models and and
         
     | 
| 
      
 15 
     | 
    
         
            +
              attributes.
         
     | 
| 
       22 
16 
     | 
    
         
             
            email: simon.huerlimann@cyt.ch
         
     | 
| 
       23 
17 
     | 
    
         
             
            executables: []
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
18 
     | 
    
         
             
            extensions: []
         
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
            extra_rdoc_files: 
         
     | 
| 
      
 19 
     | 
    
         
            +
            extra_rdoc_files:
         
     | 
| 
       28 
20 
     | 
    
         
             
            - README.markdown
         
     | 
| 
       29 
     | 
    
         
            -
            files: 
     | 
| 
      
 21 
     | 
    
         
            +
            files:
         
     | 
| 
       30 
22 
     | 
    
         
             
            - config/locales/de.yml
         
     | 
| 
       31 
23 
     | 
    
         
             
            - config/locales/en.yml
         
     | 
| 
       32 
24 
     | 
    
         
             
            - lib/contextual_link_helpers.rb
         
     | 
| 
         @@ -38,37 +30,27 @@ files: 
     | 
|
| 
       38 
30 
     | 
    
         
             
            - README.markdown
         
     | 
| 
       39 
31 
     | 
    
         
             
            homepage: https://github.com/huerlisi/i18n_rails_helpers
         
     | 
| 
       40 
32 
     | 
    
         
             
            licenses: []
         
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
33 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       43 
34 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
     | 
    
         
            -
            require_paths: 
         
     | 
| 
      
 35 
     | 
    
         
            +
            require_paths:
         
     | 
| 
       46 
36 
     | 
    
         
             
            - lib
         
     | 
| 
       47 
     | 
    
         
            -
            required_ruby_version: !ruby/object:Gem::Requirement 
     | 
| 
      
 37 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
       48 
38 
     | 
    
         
             
              none: false
         
     | 
| 
       49 
     | 
    
         
            -
              requirements: 
     | 
| 
       50 
     | 
    
         
            -
              - -  
     | 
| 
       51 
     | 
    
         
            -
                - !ruby/object:Gem::Version 
     | 
| 
       52 
     | 
    
         
            -
                   
     | 
| 
       53 
     | 
    
         
            -
             
     | 
| 
       54 
     | 
    
         
            -
                  - 0
         
     | 
| 
       55 
     | 
    
         
            -
                  version: "0"
         
     | 
| 
       56 
     | 
    
         
            -
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
      
 39 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 40 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 41 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 42 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 43 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       57 
44 
     | 
    
         
             
              none: false
         
     | 
| 
       58 
     | 
    
         
            -
              requirements: 
     | 
| 
       59 
     | 
    
         
            -
              - -  
     | 
| 
       60 
     | 
    
         
            -
                - !ruby/object:Gem::Version 
     | 
| 
       61 
     | 
    
         
            -
                   
     | 
| 
       62 
     | 
    
         
            -
                  segments: 
         
     | 
| 
       63 
     | 
    
         
            -
                  - 0
         
     | 
| 
       64 
     | 
    
         
            -
                  version: "0"
         
     | 
| 
      
 45 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 46 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 47 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 48 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
       65 
49 
     | 
    
         
             
            requirements: []
         
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
       67 
50 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       68 
     | 
    
         
            -
            rubygems_version: 1.8. 
     | 
| 
      
 51 
     | 
    
         
            +
            rubygems_version: 1.8.15
         
     | 
| 
       69 
52 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       70 
53 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       71 
54 
     | 
    
         
             
            summary: I18n Rails helpers
         
     | 
| 
       72 
55 
     | 
    
         
             
            test_files: []
         
     | 
| 
       73 
     | 
    
         
            -
             
     | 
| 
       74 
56 
     | 
    
         
             
            has_rdoc: 
         
     |