na 1.2.43 → 1.2.45

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04412e8d8032341b954bd7cf3cd576262ca9598ba426e186bf5115183d664ce2
4
- data.tar.gz: de6eee0c665411beaf485cd139bb8254cea08f610549bc2c94af2d89e463ab23
3
+ metadata.gz: 999328238e283419f4e31a30244177baed7a0aca57b5c112dc29434d68c039f0
4
+ data.tar.gz: 6d0182ffc278c67ed1d44701d0e7fb7ec68de947ad592fefa2e4494bf8ca09d4
5
5
  SHA512:
6
- metadata.gz: 74c57d212cbf93a6b855f81a7abb10c862febb576d39ce4389521b8c2d70a88bbd12532899eee92c814c8d12664cc4a2bb62978792d1b5f8851be465edc1bb86
7
- data.tar.gz: e1ccd2d08d24c22aebb1d7542304f6262e8b05b75b1f567d9d6c6c234e2afe37cc306f01a97d374f73fe33cce9ab1cd1dc206b27a5be6dafd51f0e9f67657042
6
+ metadata.gz: a0e0db55f26d7a136c179ebd1a391e3822cee860e72b22bc227d2d5321fd8ec659619ed33f3cfb93e8ca25d3da7d072b12ceea9717c8f4bd499dd9ab2dd814a2
7
+ data.tar.gz: 3bf8afbfd84a9b19699c0bdfa443c3e0b46f4557188e5a3d19b9cf99123e0fff3a3baa943b31f1c084435e4e37ea7f59c90a3dfaa1825cdea93d5d88f83fc2c5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.2.45
2
+
3
+ 2023-09-06 19:19
4
+
5
+ #### IMPROVED
6
+
7
+ - Change default :dirname coloring to fix an occasional highlighting issue
8
+
9
+ ### 1.2.44
10
+
11
+ 2023-09-06 11:19
12
+
13
+ #### FIXED
14
+
15
+ - Error when last_modified.txt hasn't been written yet
16
+
1
17
  ### 1.2.43
2
18
 
3
19
  2023-09-06 10:45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.43)
4
+ na (1.2.45)
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.43
12
+ The current version of `na` is 1.2.45
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.43
80
+ 1.2.45
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -585,10 +585,14 @@ module NA
585
585
  def save_modified_file(file)
586
586
  db = database_path(file: 'last_modified.txt')
587
587
  file = File.expand_path(file)
588
- files = IO.read(db).split(/\n/).map(&:strip)
589
- files.delete(file)
590
- files << file
591
- File.open(db, 'w') { |f| f.puts(files.join("\n")) }
588
+ if File.exist? db
589
+ files = IO.read(db).split(/\n/).map(&:strip)
590
+ files.delete(file)
591
+ files << file
592
+ File.open(db, 'w') { |f| f.puts(files.join("\n")) }
593
+ else
594
+ File.open(db, 'w') { |f| f.puts(file) }
595
+ end
592
596
  end
593
597
 
594
598
  ##
@@ -598,6 +602,8 @@ module NA
598
602
  ##
599
603
  def last_modified_file(search: nil)
600
604
  db = database_path(file: 'last_modified.txt')
605
+ return nil unless File.exist?(db)
606
+
601
607
  files = IO.read(db).split(/\n/).map(&:strip)
602
608
  files.delete_if { |f| f !~ Regexp.new(search.dir_to_rx(require_last: true)) } if search
603
609
  files.last
data/lib/na/theme.rb CHANGED
@@ -35,7 +35,7 @@ module NA
35
35
  values: '{c}',
36
36
  search_highlight: '{y}',
37
37
  note: '{dw}',
38
- dirname: '{dw}',
38
+ dirname: '{xdw}',
39
39
  filename: '{xb}{#eccc87}',
40
40
  prompt: '{m}',
41
41
  success: '{bg}',
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.43'
2
+ VERSION = '1.2.45'
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.41<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.44<!--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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: na
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.43
4
+ version: 1.2.45
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-06 00:00:00.000000000 Z
11
+ date: 2023-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake