weel 1.99.84 → 1.99.85
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/weel.rb +18 -8
 - data/weel.gemspec +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: fa7f206a93ca278638856f8ab6b78fda00f60d3f4ef7edd4de39f3cbd815033f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3d4aca5885e568a369da106911af21203f452168d94df137f5c7c28756314cae
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: fdef4e6efd51ca5e02802ccf7ec18a2d6e0c1170235c2ed4daf2ef42d04b4890f17cc222b0721abf210a169a7bfb2458ee95ab5f4776c33c896957c93de2c725
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 94d63a774749ff47717a4d6d18c8f0b79a026f702a3d0640193a3d80d47a08c558603b2e4359ebd200fa084708e1a84da16d594c817b054dd346243d09195807
         
     | 
    
        data/lib/weel.rb
    CHANGED
    
    | 
         @@ -59,12 +59,17 @@ class WEEL 
     | 
|
| 
       59 
59 
     | 
    
         
             
                  @additional = additional
         
     | 
| 
       60 
60 
     | 
    
         
             
                end
         
     | 
| 
       61 
61 
     | 
    
         | 
| 
       62 
     | 
    
         
            -
                def method_missing(m 
     | 
| 
       63 
     | 
    
         
            -
                  if @additional. 
     | 
| 
      
 62 
     | 
    
         
            +
                def method_missing(m,*args,&block)
         
     | 
| 
      
 63 
     | 
    
         
            +
                  if @additional.include?(m)
         
     | 
| 
       64 
64 
     | 
    
         
             
                    begin
         
     | 
| 
       65 
     | 
    
         
            -
                      Marshal.load(Marshal.dump(@ 
     | 
| 
      
 65 
     | 
    
         
            +
                      tmp = Marshal.load(Marshal.dump(@additional[m]))
         
     | 
| 
      
 66 
     | 
    
         
            +
                      if tmp.is_a? Hash
         
     | 
| 
      
 67 
     | 
    
         
            +
                        ReadHash.new(tmp)
         
     | 
| 
      
 68 
     | 
    
         
            +
                      else
         
     | 
| 
      
 69 
     | 
    
         
            +
                        tmp
         
     | 
| 
      
 70 
     | 
    
         
            +
                      end
         
     | 
| 
       66 
71 
     | 
    
         
             
                    rescue
         
     | 
| 
       67 
     | 
    
         
            -
                       
     | 
| 
      
 72 
     | 
    
         
            +
                      m.to_s rescue nil
         
     | 
| 
       68 
73 
     | 
    
         
             
                    end
         
     | 
| 
       69 
74 
     | 
    
         
             
                  end
         
     | 
| 
       70 
75 
     | 
    
         
             
                end
         
     | 
| 
         @@ -90,12 +95,17 @@ class WEEL 
     | 
|
| 
       90 
95 
     | 
    
         
             
                  @additional = additional
         
     | 
| 
       91 
96 
     | 
    
         
             
                end
         
     | 
| 
       92 
97 
     | 
    
         | 
| 
       93 
     | 
    
         
            -
                def method_missing(m 
     | 
| 
       94 
     | 
    
         
            -
                  if @additional. 
     | 
| 
      
 98 
     | 
    
         
            +
                def method_missing(m,*args,&block)
         
     | 
| 
      
 99 
     | 
    
         
            +
                  if @additional.include?(m)
         
     | 
| 
       95 
100 
     | 
    
         
             
                    begin
         
     | 
| 
       96 
     | 
    
         
            -
                      Marshal.load(Marshal.dump(@ 
     | 
| 
      
 101 
     | 
    
         
            +
                      tmp = Marshal.load(Marshal.dump(@additional[m]))
         
     | 
| 
      
 102 
     | 
    
         
            +
                      if tmp.is_a? Hash
         
     | 
| 
      
 103 
     | 
    
         
            +
                        ReadHash.new(tmp)
         
     | 
| 
      
 104 
     | 
    
         
            +
                      else
         
     | 
| 
      
 105 
     | 
    
         
            +
                        tmp
         
     | 
| 
      
 106 
     | 
    
         
            +
                      end
         
     | 
| 
       97 
107 
     | 
    
         
             
                    rescue
         
     | 
| 
       98 
     | 
    
         
            -
                       
     | 
| 
      
 108 
     | 
    
         
            +
                      m.to_s rescue nil
         
     | 
| 
       99 
109 
     | 
    
         
             
                    end
         
     | 
| 
       100 
110 
     | 
    
         
             
                  end
         
     | 
| 
       101 
111 
     | 
    
         
             
                end
         
     | 
    
        data/weel.gemspec
    CHANGED