helper_methods 0.0.15 → 0.0.16
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 +1 -1
- data/lib/helper_methods/version.rb +1 -1
- data/lib/helper_methods.rb +5 -0
- metadata +2 -2
    
        data/README.md
    CHANGED
    
    
    
        data/lib/helper_methods.rb
    CHANGED
    
    | @@ -155,6 +155,11 @@ module HelperMethods | |
| 155 155 | 
             
                "#{protocol}//#{request.host_with_port}#{file.url(style)}"
         | 
| 156 156 | 
             
              end
         | 
| 157 157 |  | 
| 158 | 
            +
              def full_url_for(resource)
         | 
| 159 | 
            +
                protocol = request.ssl? ? 'https' : 'http'
         | 
| 160 | 
            +
                "#{protocol}//#{request.host_with_port}#{url_for(resource)}"
         | 
| 161 | 
            +
              end
         | 
| 162 | 
            +
             | 
| 158 163 | 
             
              def qr_code_for(data, size)
         | 
| 159 164 | 
             
                image_tag "https://chart.googleapis.com/chart?chs=#{size}&cht=qr&chl=#{data}"
         | 
| 160 165 | 
             
              end
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: helper_methods
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.0. | 
| 4 | 
            +
              version: 0.0.16
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -9,7 +9,7 @@ authors: | |
| 9 9 | 
             
            autorequire: 
         | 
| 10 10 | 
             
            bindir: bin
         | 
| 11 11 | 
             
            cert_chain: []
         | 
| 12 | 
            -
            date: 2013- | 
| 12 | 
            +
            date: 2013-06-10 00:00:00.000000000 Z
         | 
| 13 13 | 
             
            dependencies: []
         | 
| 14 14 | 
             
            description: A small collection of simple methods
         | 
| 15 15 | 
             
            email:
         |