na 1.2.43 → 1.2.44
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/na/next_action.rb +10 -4
- data/lib/na/version.rb +1 -1
- data/src/_README.md +1 -1
- 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: 15b6c9648b4be6e01cc2999f857077fccea4ab77a13115c5c4f041fe1a6cdc91
|
4
|
+
data.tar.gz: c7a121bf76cc12f225b8c77ec21dc065bbe85bddcc805fafdece6dde9bdd766f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 278b8556feaf8df196d2b65864d699ea3bc7ae64f2dea09cc42a140a41adc73db6f9df26f962ef003f73941adc75ca2a5b8574718c7bda56198904294965b7a6
|
7
|
+
data.tar.gz: c557f37ad039df16c5ac2458c9a74cdc2f325d0089e85980fe04e35d40bf505b72b20d2911889f2b4d720f461124a5b374b6d340abb55be1d939c4d4656c4f78
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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.
|
12
|
+
The current version of `na` is 1.2.44
|
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.
|
80
|
+
1.2.44
|
81
81
|
|
82
82
|
GLOBAL OPTIONS
|
83
83
|
-a, --add - Add a next action (deprecated, for backwards compatibility)
|
data/lib/na/next_action.rb
CHANGED
@@ -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
|
-
|
589
|
-
|
590
|
-
|
591
|
-
|
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/version.rb
CHANGED
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.
|
12
|
+
The current version of `na` is <!--VER-->1.2.43<!--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
|
|