todo-jsonl 1.0.1 → 1.0.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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/todo.rb +5 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2691d07e42991c659c196150c96364fc4ccf5b0a40d07d4bc932c74cd6b5e5e4
4
- data.tar.gz: b1c1b92535378ea04dfa9d081aa6843cd54f9bad4980316cf84d6d55a2ae3fdb
3
+ metadata.gz: 78bbcd37bbeabd3a2f73ebdd470bde3024755c6b3e7cddfe7fecb51290936c13
4
+ data.tar.gz: 26b2670e2d2dc589c8ecd2908e072b5df89db1673b50269a8766293f014a3a87
5
5
  SHA512:
6
- metadata.gz: 4ff802f21722a328bc911c475ee58deb6613447fbbdd3213bab6ee6755ca551b07345b252f41b2b005b036986f8361af3b6a2b813b2b28c070a775b3b252372a
7
- data.tar.gz: 2b1e00730185745a326fb4e33748a1787d34c64e5ea85339dbb5b464d19062963e8df7f6da8ebe61662d6c6e6bcdd047b0b64dda4a2c9e1df8bcfb5dbf1a5795
6
+ metadata.gz: 283ea89c20cbd97f4e0684f13cf4b8d9e003209103c816079cdc31b66fad9f5600b76fe084dc8319e91156fd173120452dce9d2599724c79786ae8fb0d5fa144
7
+ data.tar.gz: '09ea2b77491b0718f7af5d89d0b219e1e45e833e7ec0c83c3cd03ee2e14bc1476bf652768e84ed6db8a6315dcf19664c18094f69009e6b4e2faa42936c25be15'
data/bin/todo.rb CHANGED
@@ -69,7 +69,7 @@ class Todo
69
69
  DUE_DATE_TAG_PATTERN = /(^| )due:([a-zA-Z0-9-]+)/
70
70
  CONTEXT_TAG_PATTERN = /(^| )[@+][\w-]+/
71
71
  PRIORITY_FLAG = '*'
72
- TODO_FILE = "#{ENV['HOME']}/todo.jsonl"
72
+ TODO_FILE = File.join(Dir.home, 'todo.jsonl')
73
73
 
74
74
  def execute(arguments)
75
75
  begin
@@ -126,7 +126,7 @@ class Todo
126
126
  else
127
127
  list(nil, arguments)
128
128
  end
129
- rescue => error
129
+ rescue StandardError => error
130
130
  puts "#{colorize('ERROR:', :red)} #{error}"
131
131
  end
132
132
  self
@@ -163,9 +163,10 @@ class Todo
163
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
+ In addition to formatted dates, you can use date synonyms:
167
+ "due:today", "due:tomorrow", and day names e.g. "due:monday" or "due:tue"
166
168
 
167
- Legend:
168
- #{STATES.select { |k, v| k != 'default' }.map { |k, v| "#{k} #{v}" }.join(', ') }, priority #{PRIORITY_FLAG}
169
+ Legend: #{STATES.select { |k, v| k != 'default' }.map { |k, v| "#{k} #{v}" }.join(', ') }, priority #{PRIORITY_FLAG}
169
170
 
170
171
  Todo file: #{TODO_FILE}
171
172
  USAGE
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.1
4
+ version: 1.0.2
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-19 00:00:00.000000000 Z
11
+ date: 2021-03-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: