na 1.2.55 → 1.2.57

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 484524907842c8a365053b8f38fe16604500efc523042d31655de928556bf0f3
4
- data.tar.gz: 6aad55a6f0fbf7ffac73f22b03f756b7e3f1c51a4c5d7a57cf278bf59699a816
3
+ metadata.gz: c03dd74aa5ba19d5a9c43177cdded736a7e679634ae0adedded1875a88c838e6
4
+ data.tar.gz: 46c70464363e14637bc72324c6731b971b97b03a385a07bd16aeb7b005eaebe9
5
5
  SHA512:
6
- metadata.gz: 64251a62cfdbc27e858419a448e70bb7a730cd18e30472789b55c99dbe83a931db2f42c14cfb6685fa3211e7b614eb26ce2db127291c2f2bb1dbd1b46415d7a0
7
- data.tar.gz: daf75663a2310602ae8de2497228df1c51bdac09d30a32d49d9194c36eab542c0314647a0a0e733bee21dfe5527b22f78333d856e21a993de328a0141b216744
6
+ metadata.gz: ea8ad6bc44298b305cce2c77d8d6ca787bf3240f69f5494e9a580cef4d803c0b6aaa5205e75187901aba73358440192ed56ba2ff55e024a98914a02221b987ce
7
+ data.tar.gz: 8b842f443cec04f487700a8f2a31914df683c558dbb1ebcf8196d2987a8f5bb23344c60a26cbbfcac4caed8ed617a50d77634bbe80bf54d6628f7ff2e07c9987
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.2.57
2
+
3
+ 2023-09-11 16:43
4
+
5
+ #### FIXED
6
+
7
+ - Error when no todo files are located
8
+
9
+ ### 1.2.56
10
+
11
+ 2023-09-11 11:33
12
+
13
+ #### FIXED
14
+
15
+ - Write missing backup database if it doesn't exist
16
+
1
17
  ### 1.2.55
2
18
 
3
19
  2023-09-11 11:23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.55)
4
+ na (1.2.57)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  gli (~> 2.21.0)
7
7
  mdless (~> 1.0, >= 1.0.32)
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  _If you're one of the rare people like me who find this useful, feel free to
10
10
  [buy me some coffee][donate]._
11
11
 
12
- The current version of `na` is 1.2.55
12
+ The current version of `na` is 1.2.57
13
13
  .
14
14
 
15
15
  `na` ("next action") is a command line tool designed to make it easy to see what your next actions are for any project, right from the command line. It works with TaskPaper-formatted files (but any plain text format will do), looking for `@na` tags (or whatever you specify) in todo files in your current folder.
@@ -77,7 +77,7 @@ SYNOPSIS
77
77
  na [global options] command [command options] [arguments...]
78
78
 
79
79
  VERSION
80
- 1.2.55
80
+ 1.2.57
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
data/bin/commands/next.rb CHANGED
@@ -174,7 +174,7 @@ class App
174
174
  search: search_tokens,
175
175
  project: options[:project],
176
176
  require_na: require_na })
177
- if todo.files.empty?
177
+ if todo.files.empty? && tokens
178
178
  NA.notify("#{NA.theme[:error]}No matches found for #{tokens[0][:token]}.
179
179
  Run `na todos` to see available todo files.")
180
180
  end
@@ -647,9 +647,14 @@ module NA
647
647
  ##
648
648
  def backup_files
649
649
  db = database_path(file: 'last_modified.txt')
650
- NA.notify("#{NA.theme[:error]}Backup database not found", exit_code: 1) unless File.exist?(db)
650
+ if File.exist?(db)
651
+ IO.read(db).strip.split(/\n/).map(&:strip)
652
+ else
653
+ NA.notify("#{NA.theme[:error]}Backup database not found")
654
+ File.open(db, 'w') { |f| f.puts }
655
+ []
656
+ end
651
657
 
652
- IO.read(db).strip.split(/\n/).map(&:strip)
653
658
  end
654
659
 
655
660
  def move_deprecated_backups
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.55'
2
+ VERSION = '1.2.57'
3
3
  end
data/src/_README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  _If you're one of the rare people like me who find this useful, feel free to
10
10
  [buy me some coffee][donate]._
11
11
 
12
- The current version of `na` is <!--VER-->1.2.54<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.56<!--END VER-->.
13
13
 
14
14
  `na` ("next action") is a command line tool designed to make it easy to see what your next actions are for any project, right from the command line. It works with TaskPaper-formatted files (but any plain text format will do), looking for `@na` tags (or whatever you specify) in todo files in your current folder.
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: na
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.55
4
+ version: 1.2.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra