luban-cli 0.4.2 → 0.4.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/CHANGELOG.md +1 -1
 - data/lib/luban/cli/base/commands.rb +6 -1
 - data/lib/luban/cli/base/core.rb +1 -1
 - data/lib/luban/cli/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e49a50d9fcca865cb4d066dc6f62f469a3677cfa
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 035935f5d8bcda634ad93b543360cd86db1bb063
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e3145979e5059525c9182c7fd265cce20530182e53e3dcc1d79cc5e74eda1e99618b78f88752aaf3ba8a9c711af5b8602a4260a261f64e2b546ffeac62d72124
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b2d28c05cd5ccf6252198903e85a56eabd6d9909d3694e43c12e28c9a80e7704cff40e20ecea01effb7a27c467f5044ab10cbcc4d2f3f8f9703387e93acbd12c
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    
| 
         @@ -9,7 +9,12 @@ module Luban 
     | 
|
| 
       9 
9 
     | 
    
         
             
                  end
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
11 
     | 
    
         
             
                  def undef_command(cmd)
         
     | 
| 
       12 
     | 
    
         
            -
                     
     | 
| 
      
 12 
     | 
    
         
            +
                    c = @commands.delete(cmd.to_sym)
         
     | 
| 
      
 13 
     | 
    
         
            +
                    if c.nil?
         
     | 
| 
      
 14 
     | 
    
         
            +
                      raise RuntimeError, "Command #{cmd.inspect} is NOT defined."
         
     | 
| 
      
 15 
     | 
    
         
            +
                    else
         
     | 
| 
      
 16 
     | 
    
         
            +
                      undef_singleton_method(c.action_method)
         
     | 
| 
      
 17 
     | 
    
         
            +
                    end
         
     | 
| 
       13 
18 
     | 
    
         
             
                  end
         
     | 
| 
       14 
19 
     | 
    
         | 
| 
       15 
20 
     | 
    
         
             
                  def use_commands(module_name, **opts, &blk)
         
     | 
    
        data/lib/luban/cli/base/core.rb
    CHANGED
    
    | 
         @@ -267,7 +267,7 @@ module Luban 
     | 
|
| 
       267 
267 
     | 
    
         
             
                  def add_parser_commands
         
     | 
| 
       268 
268 
     | 
    
         
             
                    add_section("Commands") do |rows|
         
     | 
| 
       269 
269 
     | 
    
         
             
                      commands.each_value do |cmd|
         
     | 
| 
       270 
     | 
    
         
            -
                        rows.concat(summarize(cmd.name, cmd.summary))
         
     | 
| 
      
 270 
     | 
    
         
            +
                        rows.concat(summarize(cmd.name, cmd.summary, summary_width, summary_width * 1.5))
         
     | 
| 
       271 
271 
     | 
    
         
             
                      end
         
     | 
| 
       272 
272 
     | 
    
         
             
                    end
         
     | 
| 
       273 
273 
     | 
    
         
             
                  end
         
     | 
    
        data/lib/luban/cli/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: luban-cli
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.4. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.4.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Rubyist Chi
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2016-02-26 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: bundler
         
     |