todo-jsonl 0.1.1 → 0.1.2
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/bin/todo.rb +3 -3
 - 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: 39c4196d7a61cdddc60d741fd7f872748fee16e6dfac6b0005ad9d790927a6b0
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: ee8ca459774e1df288db13e31cc9883cadb6d5cfabbccb68f4f5174d57e9c35b
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: b84db7afa428f64e5028be1e06da854d26c233c0ae85d95df0d7a47f4f645392fd5289580f9342d39642e895e902c84f6896d80747c6f91466a9b614b19d724b
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8ce70a368b56dc5df598188e23e0406224258ccfc8066630c0cab7829c0651fba188eb03066e4545eef9e371089c796ef39be1bf110be485b92509d7ef79e69c
         
     | 
    
        data/bin/todo.rb
    CHANGED
    
    | 
         @@ -95,7 +95,7 @@ def usage 
     | 
|
| 
       95 
95 
     | 
    
         | 
| 
       96 
96 
     | 
    
         
             
                * list <regex> [regex...]        list tasks (only active tasks by default)
         
     | 
| 
       97 
97 
     | 
    
         
             
                * show <tasknumber>              show all task details
         
     | 
| 
       98 
     | 
    
         
            -
                * repl                           enter read 
     | 
| 
      
 98 
     | 
    
         
            +
                * repl                           enter read-eval-print loop mode
         
     | 
| 
       99 
99 
     | 
    
         
             
                * help                           this help screen
         
     | 
| 
       100 
100 
     | 
    
         | 
| 
       101 
101 
     | 
    
         
             
                With list command the following pre-defined regex patterns can be also used:
         
     | 
| 
         @@ -103,7 +103,7 @@ def usage 
     | 
|
| 
       103 
103 
     | 
    
         | 
| 
       104 
104 
     | 
    
         
             
                Legend:
         
     | 
| 
       105 
105 
     | 
    
         
             
                #{STATES.select { |k, v| k != 'default' }.map { |k, v| "#{k} #{v}" }.join(', ') }, priority #{PRIORITY_FLAG}
         
     | 
| 
       106 
     | 
    
         
            -
             
     | 
| 
      
 106 
     | 
    
         
            +
              USAGE
         
     | 
| 
       107 
107 
     | 
    
         
             
            end
         
     | 
| 
       108 
108 
     | 
    
         | 
| 
       109 
109 
     | 
    
         
             
            def load_tasks(item_to_check = nil)
         
     | 
| 
         @@ -254,7 +254,7 @@ end 
     | 
|
| 
       254 
254 
     | 
    
         
             
            def read(arguments)
         
     | 
| 
       255 
255 
     | 
    
         
             
              begin
         
     | 
| 
       256 
256 
     | 
    
         
             
                action = arguments.first
         
     | 
| 
       257 
     | 
    
         
            -
                args = arguments[1..-1]
         
     | 
| 
      
 257 
     | 
    
         
            +
                args = arguments[1..-1] || []
         
     | 
| 
       258 
258 
     | 
    
         
             
                case action
         
     | 
| 
       259 
259 
     | 
    
         
             
                when 'add'
         
     | 
| 
       260 
260 
     | 
    
         
             
                  add(args.join(' ')) unless args.nil? || args.empty?
         
     |