todo-jsonl 1.0.0 → 1.0.1
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 +7 -3
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 2691d07e42991c659c196150c96364fc4ccf5b0a40d07d4bc932c74cd6b5e5e4
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b1c1b92535378ea04dfa9d081aa6843cd54f9bad4980316cf84d6d55a2ae3fdb
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 4ff802f21722a328bc911c475ee58deb6613447fbbdd3213bab6ee6755ca551b07345b252f41b2b005b036986f8361af3b6a2b813b2b28c070a775b3b252372a
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 2b1e00730185745a326fb4e33748a1787d34c64e5ea85339dbb5b464d19062963e8df7f6da8ebe61662d6c6e6bcdd047b0b64dda4a2c9e1df8bcfb5dbf1a5795
         
     | 
    
        data/bin/todo.rb
    CHANGED
    
    | 
         @@ -159,8 +159,8 @@ class Todo 
     | 
|
| 
       159 
159 
     | 
    
         
             
                  * cleanup <regex> [regex...]     cleanup completed tasks by regex
         
     | 
| 
       160 
160 
     | 
    
         
             
                  * help                           this help screen
         
     | 
| 
       161 
161 
     | 
    
         | 
| 
       162 
     | 
    
         
            -
                  With list command the following pre-defined  
     | 
| 
       163 
     | 
    
         
            -
                  #{@queries.keys.join(', ')}
         
     | 
| 
      
 162 
     | 
    
         
            +
                  With list command the following pre-defined queries can be also used:
         
     | 
| 
      
 163 
     | 
    
         
            +
                  #{@queries.keys.each_with_index.map { |k, i| (i == 8 ? "\n" : '') + k }.join(', ')}
         
     | 
| 
       164 
164 
     | 
    
         | 
| 
       165 
165 
     | 
    
         
             
                  Due dates can be also added via tags in task title: "due:YYYY-MM-DD"
         
     | 
| 
       166 
166 
     | 
    
         | 
| 
         @@ -183,9 +183,13 @@ class Todo 
     | 
|
| 
       183 
183 
     | 
    
         
             
                  ':started'   => lambda { |task| 'started' == task[:state] },
         
     | 
| 
       184 
184 
     | 
    
         
             
                  ':new'       => lambda { |task| 'new' == task[:state] },
         
     | 
| 
       185 
185 
     | 
    
         
             
                  ':all'       => lambda { |task| /\w+/.match(task[:state]) },
         
     | 
| 
      
 186 
     | 
    
         
            +
                  ':priority'  => lambda { |task| task[:priority] },
         
     | 
| 
      
 187 
     | 
    
         
            +
                  ':note'      => lambda { |task| task[:note] && !task[:note].empty? },
         
     | 
| 
       186 
188 
     | 
    
         
             
                  ':today'     => lambda { |task| due_dates_for_queries[0] == task[:due] },
         
     | 
| 
       187 
189 
     | 
    
         
             
                  ':tomorrow'  => lambda { |task| due_dates_for_queries[1] == task[:due] },
         
     | 
| 
       188 
     | 
    
         
            -
                  ':next7days' => lambda { |task| /(#{due_dates_for_queries.join('|')})/.match(task[:due]) }
         
     | 
| 
      
 190 
     | 
    
         
            +
                  ':next7days' => lambda { |task| /(#{due_dates_for_queries.join('|')})/.match(task[:due]) },
         
     | 
| 
      
 191 
     | 
    
         
            +
                  ':overdue'   => lambda { |task| task[:due] && task[:due] < due_dates_for_queries[0] },
         
     | 
| 
      
 192 
     | 
    
         
            +
                  ':due'       => lambda { |task| task[:due] }
         
     | 
| 
       189 
193 
     | 
    
         
             
                }
         
     | 
| 
       190 
194 
     | 
    
         
             
              end
         
     | 
| 
       191 
195 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: todo-jsonl
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Gabor Bata
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021-03- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-03-19 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies: []
         
     | 
| 
       13 
13 
     | 
    
         
             
            description: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            email: 
         
     |