latias-string-commas 0.1.4 → 0.1.9
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/string.rb +16 -0
 - metadata +3 -4
 - data/lib/latias/string.rb +0 -11
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 5c70db29c6bd933c5297e71cb838f4823de4bc4513974782365d2ac271578721
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b4aca2339650a0ab6a6bbe7c57c584babc5f5130e5ffab4d92cb4d34ff82d75a
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: d83e2e037f0a14465cb188b004ed58e6137f8a6171f15f4d9b8cb19fe6a0fcc5e55095cec0a3e0bb5d008a6a7290d79d816906f4405eba97b6fd94d52576fabc
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 6cd9ee2da801c24f010d8ed47348835e4cbf70a506acbb0932084f54b16998a375a2d64a0a386f18c5975e8a7da97048ee2ca400d21464e614fa8c7073ac0b56
         
     | 
    
        data/lib/string.rb
    ADDED
    
    | 
         @@ -0,0 +1,16 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # module Latias
         
     | 
| 
      
 2 
     | 
    
         
            +
            #   class String
         
     | 
| 
      
 3 
     | 
    
         
            +
            #     def add_commas
         
     | 
| 
      
 4 
     | 
    
         
            +
            #       self..to_s.reverse.scan(/\d{3}|.+/).join(',').reverse
         
     | 
| 
      
 5 
     | 
    
         
            +
            #     rescue StandardError # optionally: `rescue Exception => ex`
         
     | 
| 
      
 6 
     | 
    
         
            +
            #       m_str
         
     | 
| 
      
 7 
     | 
    
         
            +
            #     end
         
     | 
| 
      
 8 
     | 
    
         
            +
            #   end
         
     | 
| 
      
 9 
     | 
    
         
            +
            # end
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            # extend Latias::String
         
     | 
| 
      
 12 
     | 
    
         
            +
            class Hola
         
     | 
| 
      
 13 
     | 
    
         
            +
              def self.hi
         
     | 
| 
      
 14 
     | 
    
         
            +
                puts "Hello world!"
         
     | 
| 
      
 15 
     | 
    
         
            +
              end
         
     | 
| 
      
 16 
     | 
    
         
            +
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: latias-string-commas
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.9
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - nattanon
         
     | 
| 
         @@ -17,12 +17,11 @@ executables: [] 
     | 
|
| 
       17 
17 
     | 
    
         
             
            extensions: []
         
     | 
| 
       18 
18 
     | 
    
         
             
            extra_rdoc_files: []
         
     | 
| 
       19 
19 
     | 
    
         
             
            files:
         
     | 
| 
       20 
     | 
    
         
            -
            - lib/ 
     | 
| 
      
 20 
     | 
    
         
            +
            - lib/string.rb
         
     | 
| 
       21 
21 
     | 
    
         
             
            homepage: https://gitlab.opensource-technology.com/nattanon/latias-string-commas
         
     | 
| 
       22 
22 
     | 
    
         
             
            licenses:
         
     | 
| 
       23 
23 
     | 
    
         
             
            - MIT
         
     | 
| 
       24 
     | 
    
         
            -
            metadata:
         
     | 
| 
       25 
     | 
    
         
            -
              source_code_uri: https://gitlab.opensource-technology.com/nattanon/latias-string-commas
         
     | 
| 
      
 24 
     | 
    
         
            +
            metadata: {}
         
     | 
| 
       26 
25 
     | 
    
         
             
            post_install_message:
         
     | 
| 
       27 
26 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       28 
27 
     | 
    
         
             
            require_paths:
         
     |