rails_utils 2.1.2 → 2.1.3
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.
- checksums.yaml +4 -4
- data/README.markdown +15 -6
- data/lib/rails_utils.rb +4 -4
- data/lib/rails_utils/version.rb +1 -1
- data/test/rails_utils_test.rb +1 -1
- metadata +3 -3
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 138d847b463099d2a1aa8a771a4bdca9699b7913
         | 
| 4 | 
            +
              data.tar.gz: 88090dafe8f23a97719e89c37fb0148628e096b5
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 12f21da5188d42057d358e5af5d4943334977ee184396e43aa0bb282f4cc3b2efc13189f29ce20408ca474a865fae4ff3df5d0617e0f348c49dea5838a32b9bb
         | 
| 7 | 
            +
              data.tar.gz: 72b536c480057b085b86dd3b52ae02aa3e4913c900e73337593d09d43fca2a95a8734c3f12b4d28603065b43399cd6a835b4a75ae4f303a5ecec9d7640607e50
         | 
    
        data/README.markdown
    CHANGED
    
    | @@ -1,7 +1,15 @@ | |
| 1 1 | 
             
            # Rails Utils
         | 
| 2 2 |  | 
| 3 | 
            +
            [](https://travis-ci.org/winston/rails_utils)
         | 
| 4 | 
            +
             | 
| 3 5 | 
             
            Rails helpers based on opinionated project practices. Currently useful for structuring CSS and JS.
         | 
| 4 6 |  | 
| 7 | 
            +
             | 
| 8 | 
            +
            ## Installation
         | 
| 9 | 
            +
             | 
| 10 | 
            +
                gem install 'rails_utils'
         | 
| 11 | 
            +
             | 
| 12 | 
            +
             | 
| 5 13 | 
             
            ## #`page_class`
         | 
| 6 14 |  | 
| 7 15 | 
             
            This helper method returns controller name and action name as a single string value,
         | 
| @@ -78,20 +86,21 @@ Suppose there's a `flash[:success]`, you should see: | |
| 78 86 | 
             
                  <p>flash is success</p>
         | 
| 79 87 | 
             
                </div>
         | 
| 80 88 |  | 
| 81 | 
            -
            ## Installation
         | 
| 82 89 |  | 
| 83 | 
            -
             | 
| 90 | 
            +
            ## Contributing
         | 
| 84 91 |  | 
| 85 | 
            -
             | 
| 92 | 
            +
            Pull Requests are very welcomed (with specs, of course)!
         | 
| 86 93 |  | 
| 87 94 | 
             
            Minitest-ed. To run all tests, just run `rake` or `rake test`.
         | 
| 88 95 |  | 
| 96 | 
            +
             | 
| 89 97 | 
             
            ## Author
         | 
| 90 98 |  | 
| 91 | 
            -
            Rails Utils is maintained by [Winston Teo](mailto:winstonyw+ | 
| 99 | 
            +
            Rails Utils is maintained by [Winston Teo](mailto:winstonyw+rails_utils@gmail.com).
         | 
| 100 | 
            +
             | 
| 101 | 
            +
            [You should follow Winston on Twitter](http://www.twitter.com/winstonyw), or find out more on [WinstonYW](http://www.winstonyw.com) and [LinkedIn](http://sg.linkedin.com/in/winstonyw).
         | 
| 92 102 |  | 
| 93 | 
            -
            Who is Winston Teo? [You should follow Winston on Twitter](http://www.twitter.com/winstonyw), or find out more on [WinstonYW](http://www.winstonyw.com) and [LinkedIn](http://sg.linkedin.com/in/winstonyw).
         | 
| 94 103 |  | 
| 95 104 | 
             
            ## License
         | 
| 96 105 |  | 
| 97 | 
            -
            Copyright ©  | 
| 106 | 
            +
            Copyright © 2013 Winston Teo Yong Wei. Free software, released under the MIT license.
         | 
    
        data/lib/rails_utils.rb
    CHANGED
    
    | @@ -33,12 +33,12 @@ module RailsUtils | |
| 33 33 | 
             
                    html <<
         | 
| 34 34 | 
             
                      content_tag(:div, class: "#{flash_class(key)} fade in") do
         | 
| 35 35 | 
             
                        content = ""
         | 
| 36 | 
            -
                        content << content_tag(:button, "x", type: "button", class: "close", "data-dismiss | 
| 37 | 
            -
                        content <<  | 
| 38 | 
            -
                        content | 
| 36 | 
            +
                        content << content_tag(:button, "x", type: "button", class: "close", "data-dismiss" => "alert")
         | 
| 37 | 
            +
                        content << message
         | 
| 38 | 
            +
                        content
         | 
| 39 39 | 
             
                      end
         | 
| 40 40 | 
             
                  end
         | 
| 41 | 
            -
                  html
         | 
| 41 | 
            +
                  html.html_safe
         | 
| 42 42 | 
             
                end
         | 
| 43 43 |  | 
| 44 44 | 
             
                private
         | 
    
        data/lib/rails_utils/version.rb
    CHANGED
    
    
    
        data/test/rails_utils_test.rb
    CHANGED
    
    | @@ -127,7 +127,7 @@ describe "RailsUtils::ActionViewExtensions" do | |
| 127 127 |  | 
| 128 128 | 
             
                  it "can be dismissed" do
         | 
| 129 129 | 
             
                    set_flash :alert  , "not important"
         | 
| 130 | 
            -
                    view.flash_messages.must_match /data-dismiss | 
| 130 | 
            +
                    view.flash_messages.must_match /data-dismiss=.*alert/
         | 
| 131 131 | 
             
                  end
         | 
| 132 132 | 
             
                end
         | 
| 133 133 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: rails_utils
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.1. | 
| 4 | 
            +
              version: 2.1.3
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Winston Teo
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2013- | 
| 11 | 
            +
            date: 2013-10-09 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rails
         | 
| @@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 129 129 | 
             
                  version: '0'
         | 
| 130 130 | 
             
            requirements: []
         | 
| 131 131 | 
             
            rubyforge_project: 
         | 
| 132 | 
            -
            rubygems_version: 2.0. | 
| 132 | 
            +
            rubygems_version: 2.0.7
         | 
| 133 133 | 
             
            signing_key: 
         | 
| 134 134 | 
             
            specification_version: 4
         | 
| 135 135 | 
             
            summary: Rails helpers based on opinionated project practices.
         |