appl 1.14 → 1.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.
- checksums.yaml +4 -4
 - data/lib/appl.rb +8 -4
 - metadata +3 -3
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 0053236723f1d22dd2981fb2c6cfbab33bb83035dc62c8c276f2c772e8512bd6
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 24ab877ef793b0f658a79eb7adcf4fb347f5d806aa4388eb9d6bf663b75e52c1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 418680b99d4da05b2ae5f240bf13d106fc3b87f8cf215a4dc635d282b9ecebd54d3719993e38da66f979ca4760252e80f5767250cc5cb8f0750eeac8726197db
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: b07caffaadea381cb93cb7626f7dfd2ebedc56cfdd401c7ecc3982f02194f4d648eac663acc0d73afa090790c76db7babfd1a38ddc30fe15a7f72dd2acaa2d84
         
     | 
    
        data/lib/appl.rb
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            class Application
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
              APPL_VERSION = "1. 
     | 
| 
      
 8 
     | 
    
         
            +
              APPL_VERSION = "1.16".freeze
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
10 
     | 
    
         
             
              OPTIONS_ENV = nil
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
         @@ -71,9 +71,11 @@ class Application 
     | 
|
| 
       71 
71 
     | 
    
         | 
| 
       72 
72 
     | 
    
         
             
              def execute
         
     | 
| 
       73 
73 
     | 
    
         
             
                r = run
         
     | 
| 
       74 
     | 
    
         
            -
                r = 0 unless Integer === r
         
     | 
| 
       75 
74 
     | 
    
         
             
                warn_unprocessed
         
     | 
| 
       76 
     | 
    
         
            -
                r
         
     | 
| 
      
 75 
     | 
    
         
            +
                case r
         
     | 
| 
      
 76 
     | 
    
         
            +
                  when Integer then r & 0xff
         
     | 
| 
      
 77 
     | 
    
         
            +
                  else              0
         
     | 
| 
      
 78 
     | 
    
         
            +
                end
         
     | 
| 
       77 
79 
     | 
    
         
             
              rescue SignalException
         
     | 
| 
       78 
80 
     | 
    
         
             
                raise if @debug
         
     | 
| 
       79 
81 
     | 
    
         
             
                self.class.show_message $!.inspect
         
     | 
| 
         @@ -209,7 +211,9 @@ class Application 
     | 
|
| 
       209 
211 
     | 
    
         
             
                    arg &&= "#{arg}"
         
     | 
| 
       210 
212 
     | 
    
         
             
                    dfl &&= "[#{dfl}]"
         
     | 
| 
       211 
213 
     | 
    
         
             
                    arg << dfl if arg && dfl
         
     | 
| 
       212 
     | 
    
         
            -
                     
     | 
| 
      
 214 
     | 
    
         
            +
                    l = "  %-*s  %-*s  %s" % [ root::W_OPTS, opt, root::W_ARGS, arg, desc]
         
     | 
| 
      
 215 
     | 
    
         
            +
                    l.rstrip!
         
     | 
| 
      
 216 
     | 
    
         
            +
                    puts l
         
     | 
| 
       213 
217 
     | 
    
         
             
                  end
         
     | 
| 
       214 
218 
     | 
    
         
             
                end
         
     | 
| 
       215 
219 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: appl
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: '1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: '1.16'
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Bertram Scharpf
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date:  
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-12-24 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: |
         
     | 
| 
       14 
14 
     | 
    
         
             
              A base class for command line applications doing options parsing
         
     | 
| 
         @@ -42,7 +42,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       42 
42 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       43 
43 
     | 
    
         
             
            requirements:
         
     | 
| 
       44 
44 
     | 
    
         
             
            - Just Ruby
         
     | 
| 
       45 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 45 
     | 
    
         
            +
            rubygems_version: 3.4.22
         
     | 
| 
       46 
46 
     | 
    
         
             
            signing_key:
         
     | 
| 
       47 
47 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       48 
48 
     | 
    
         
             
            summary: Easy option parsing
         
     |