little_wheels 0.0.10 → 0.0.12
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/lib/little_wheels.rb +9 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: c388baa6bf928c3a23d4ecafa329c4dd00e0750bc1bc00ec2e3c7267430f24cd
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c971751f6067adcef1766b8571d43689751ab7622a21b37476174f38b0c7c22a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 64939549829494e69ad5c66f87a2ecb133c09380a5372e350892ef0ad4d4a16c5d07002b47ce0528232b016176acdfc4a8860f508385e8102d626b7b3c9520bb
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: a7d7f6c1d76af5ed3973796f7389703460292efbed5081bfd6f241cefa282075bdbe429051a94a1a5d5427de6a4a3ee721e6d707daae87f35d6809ff07659999
         
     | 
    
        data/lib/little_wheels.rb
    CHANGED
    
    | 
         @@ -1,5 +1,5 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            module LittleWheels
         
     | 
| 
       2 
     | 
    
         
            -
              VERSION = "0.0. 
     | 
| 
      
 2 
     | 
    
         
            +
              VERSION = "0.0.12"
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
              def self.renderer
         
     | 
| 
       5 
5 
     | 
    
         
             
                ApplicationController
         
     | 
| 
         @@ -45,6 +45,10 @@ module LittleWheels 
     | 
|
| 
       45 
45 
     | 
    
         
             
                end
         
     | 
| 
       46 
46 
     | 
    
         | 
| 
       47 
47 
     | 
    
         
             
                def to_s
         
     | 
| 
      
 48 
     | 
    
         
            +
                  to_html
         
     | 
| 
      
 49 
     | 
    
         
            +
                end
         
     | 
| 
      
 50 
     | 
    
         
            +
             
     | 
| 
      
 51 
     | 
    
         
            +
                def to_html
         
     | 
| 
       48 
52 
     | 
    
         
             
                  helpers.capture do
         
     | 
| 
       49 
53 
     | 
    
         
             
                    if self.class.const_defined?(:TEMPLATE)
         
     | 
| 
       50 
54 
     | 
    
         
             
                      t(self.class.const_get(:TEMPLATE), c: self, x: self.x )
         
     | 
| 
         @@ -79,5 +83,9 @@ module LittleWheels 
     | 
|
| 
       79 
83 
     | 
    
         
             
                def capture(&block)
         
     | 
| 
       80 
84 
     | 
    
         
             
                  block.call.to_s.html_safe
         
     | 
| 
       81 
85 
     | 
    
         
             
                end
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                def render_in(context)
         
     | 
| 
      
 88 
     | 
    
         
            +
                  context.render(:inline => to_html)
         
     | 
| 
      
 89 
     | 
    
         
            +
                end
         
     | 
| 
       82 
90 
     | 
    
         
             
              end
         
     | 
| 
       83 
91 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: little_wheels
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.12
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Gregory Brown
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024-12- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-12-13 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: Potential future implementation of the smallest Rails component library
         
     | 
| 
       14 
14 
     | 
    
         
             
              that can possibly work.
         
     |