twitter_bootstrap_combo 0.0.1 → 0.0.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/README.md +2 -2
- data/lib/twitter_bootstrap_combo/version.rb +1 -1
- data/lib/twitter_bootstrap_combo/view_helpers.rb +2 -2
- metadata +21 -40
    
        data/README.md
    CHANGED
    
    | @@ -27,13 +27,13 @@ Add this line to `app/assets/javascripts/application.js`: | |
| 27 27 | 
             
            Then in your views, use:
         | 
| 28 28 |  | 
| 29 29 | 
             
            ~~~erb
         | 
| 30 | 
            -
            <%= combo_box(:calendar, :parent_id, Calendar.all.collect { |c| [ (content_tag(:i, "", :class => " | 
| 30 | 
            +
            <%= combo_box(:calendar, :parent_id, Calendar.all.collect { |c| [ (content_tag(:i, "", :class => "fa fa-angle-right fa-fw") * c.level + c.name).html_safe, c.id ] }, :include_blank => true) %>
         | 
| 31 31 | 
             
            ~~~
         | 
| 32 32 |  | 
| 33 33 | 
             
            to produce:
         | 
| 34 34 |  | 
| 35 35 | 
             
            ~~~html
         | 
| 36 | 
            -
            <input id="calendar_parent_id" name="calendar[parent_id]" type="hidden" value="6" /><div class="btn-group"><a href="#" class="btn dropdown-toggle" data-toggle="dropdown"><span class="combo_box_text">Child 1</span> <i class=" | 
| 36 | 
            +
            <input id="calendar_parent_id" name="calendar[parent_id]" type="hidden" value="6" /><div class="btn-group"><a href="#" class="btn dropdown-toggle" data-toggle="dropdown"><span class="combo_box_text">Child 1</span> <i class="fa fa-caret-down"></i></a><ul class="dropdown-menu" data-for="calendar_parent_id"><li class=""><a href="#" class="combo_box_item">(None)</a></li><li class=""><a href="#" class="combo_box_item" data-value="5">Root</a></li><li class="active"><a href="#" class="combo_box_item" data-value="6"><i class="fa fa-angle-right fa-fw"></i>Child 1</a></li><li class=""><a href="#" class="combo_box_item" data-value="8"><i class="fa fa-angle-right fa-fw"></i><i class="fa fa-angle-right fa-fw"></i>SubChild 1</a></li><li class=""><a href="#" class="combo_box_item" data-value="9"><i class="fa fa-angle-right fa-fw"></i><i class="fa fa-angle-right fa-fw"></i>SubChild 2</a></li><li class=""><a href="#" class="combo_box_item" data-value="7"><i class="fa fa-angle-right fa-fw"></i>Child 2</a></li></ul></div>
         | 
| 37 37 | 
             
            ~~~
         | 
| 38 38 |  | 
| 39 39 | 
             
            which render like this:
         | 
| @@ -68,7 +68,7 @@ module TwitterBootstrapCombo | |
| 68 68 |  | 
| 69 69 | 
             
                  hidden_field(object, method) +
         | 
| 70 70 | 
             
                  content_tag(:div, :class => "btn-group") do
         | 
| 71 | 
            -
                    link_to(content_tag(:span, strip_tags(current_text), :class => "combo_box_text") + " " + content_tag(:i, "", :class => " | 
| 71 | 
            +
                    link_to(content_tag(:span, strip_tags(current_text), :class => "combo_box_text") + " " + content_tag(:i, "", :class => "fa fa-caret-down"), "#", :class => "btn dropdown-toggle", :data => { :toggle => "dropdown" }) +
         | 
| 72 72 | 
             
                    content_tag(:ul, :class => "dropdown-menu", :data => { :for => "#{object}_#{method}" }) do
         | 
| 73 73 | 
             
                      if options[:include_blank] then
         | 
| 74 74 | 
             
                        css_class = []
         | 
| @@ -77,7 +77,7 @@ module TwitterBootstrapCombo | |
| 77 77 | 
             
                        end
         | 
| 78 78 | 
             
                        content_tag(:li, :class => css_class.join(" ")) do
         | 
| 79 79 | 
             
                          link_to("(None)", '#', :class => "combo_box_item")
         | 
| 80 | 
            -
                        end
         | 
| 80 | 
            +
                        end + content_tag(:li, "", :class => "divider")
         | 
| 81 81 | 
             
                      else
         | 
| 82 82 | 
             
                        "".html_safe
         | 
| 83 83 | 
             
                      end +
         | 
    
        metadata
    CHANGED
    
    | @@ -1,33 +1,23 @@ | |
| 1 | 
            -
            --- !ruby/object:Gem::Specification | 
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: twitter_bootstrap_combo
         | 
| 3 | 
            -
            version: !ruby/object:Gem::Version | 
| 4 | 
            -
               | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.0.2
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 | 
            -
              segments: 
         | 
| 7 | 
            -
              - 0
         | 
| 8 | 
            -
              - 0
         | 
| 9 | 
            -
              - 1
         | 
| 10 | 
            -
              version: 0.0.1
         | 
| 11 6 | 
             
            platform: ruby
         | 
| 12 | 
            -
            authors: | 
| 7 | 
            +
            authors:
         | 
| 13 8 | 
             
            - Romain Tartiere
         | 
| 14 9 | 
             
            autorequire: 
         | 
| 15 10 | 
             
            bindir: bin
         | 
| 16 11 | 
             
            cert_chain: []
         | 
| 17 | 
            -
             | 
| 18 | 
            -
            date: 2013-02-02 00:00:00 Z
         | 
| 12 | 
            +
            date: 2013-11-17 00:00:00.000000000 Z
         | 
| 19 13 | 
             
            dependencies: []
         | 
| 20 | 
            -
             | 
| 21 14 | 
             
            description: Advanced combo-box using Twitter-Bootstrap
         | 
| 22 | 
            -
            email: | 
| 15 | 
            +
            email:
         | 
| 23 16 | 
             
            - romain@blogreen.org
         | 
| 24 17 | 
             
            executables: []
         | 
| 25 | 
            -
             | 
| 26 18 | 
             
            extensions: []
         | 
| 27 | 
            -
             | 
| 28 19 | 
             
            extra_rdoc_files: []
         | 
| 29 | 
            -
             | 
| 30 | 
            -
            files: 
         | 
| 20 | 
            +
            files:
         | 
| 31 21 | 
             
            - .gitignore
         | 
| 32 22 | 
             
            - Gemfile
         | 
| 33 23 | 
             
            - LICENSE.txt
         | 
| @@ -42,36 +32,27 @@ files: | |
| 42 32 | 
             
            - vendor/assets/javascripts/twitter_bootstrap_combo.js.coffee
         | 
| 43 33 | 
             
            homepage: https://github.com/smortex/twitter_bootstrap_combo
         | 
| 44 34 | 
             
            licenses: []
         | 
| 45 | 
            -
             | 
| 46 35 | 
             
            post_install_message: 
         | 
| 47 36 | 
             
            rdoc_options: []
         | 
| 48 | 
            -
             | 
| 49 | 
            -
            require_paths: 
         | 
| 37 | 
            +
            require_paths:
         | 
| 50 38 | 
             
            - lib
         | 
| 51 | 
            -
            required_ruby_version: !ruby/object:Gem::Requirement | 
| 39 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 52 40 | 
             
              none: false
         | 
| 53 | 
            -
              requirements: | 
| 54 | 
            -
              - -  | 
| 55 | 
            -
                - !ruby/object:Gem::Version | 
| 56 | 
            -
                   | 
| 57 | 
            -
             | 
| 58 | 
            -
                  - 0
         | 
| 59 | 
            -
                  version: "0"
         | 
| 60 | 
            -
            required_rubygems_version: !ruby/object:Gem::Requirement 
         | 
| 41 | 
            +
              requirements:
         | 
| 42 | 
            +
              - - '>='
         | 
| 43 | 
            +
                - !ruby/object:Gem::Version
         | 
| 44 | 
            +
                  version: '0'
         | 
| 45 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 61 46 | 
             
              none: false
         | 
| 62 | 
            -
              requirements: | 
| 63 | 
            -
              - -  | 
| 64 | 
            -
                - !ruby/object:Gem::Version | 
| 65 | 
            -
                   | 
| 66 | 
            -
                  segments: 
         | 
| 67 | 
            -
                  - 0
         | 
| 68 | 
            -
                  version: "0"
         | 
| 47 | 
            +
              requirements:
         | 
| 48 | 
            +
              - - '>='
         | 
| 49 | 
            +
                - !ruby/object:Gem::Version
         | 
| 50 | 
            +
                  version: '0'
         | 
| 69 51 | 
             
            requirements: []
         | 
| 70 | 
            -
             | 
| 71 52 | 
             
            rubyforge_project: 
         | 
| 72 | 
            -
            rubygems_version: 1.8. | 
| 53 | 
            +
            rubygems_version: 1.8.25
         | 
| 73 54 | 
             
            signing_key: 
         | 
| 74 55 | 
             
            specification_version: 3
         | 
| 75 | 
            -
            summary: twitter_bootstrap_combo workarounds limitation of SELECT tags in Rails application | 
| 56 | 
            +
            summary: twitter_bootstrap_combo workarounds limitation of SELECT tags in Rails application
         | 
| 57 | 
            +
              and provide a coherent look & feel through Twitter-Bootstraped applications.
         | 
| 76 58 | 
             
            test_files: []
         | 
| 77 | 
            -
             |