na 1.2.2 → 1.2.3

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: ba10397406ce9b754a63fcd7787eb5cc22923d5564de8eca50cb8bb6000115e7
4
- data.tar.gz: c7c47d9531177787b1615857135d8bc69ab3b3a3595aad30d357fa39f9b41fe5
3
+ metadata.gz: 0cc9bb0b48d32bab1e3ece2c1a9ab357dfde238e88a02ceeb5c5a172d4a6e747
4
+ data.tar.gz: 53300e826f4d4c56b30f846aa94039cb054d99c3d930709de419261409c4d9b3
5
5
  SHA512:
6
- metadata.gz: 6861532283cf20d55f9fddff1979209024301863f01dfbe1d79d83096e397ab94b59a45715f1d1486939afce8e2fbb2b90196bbca5cb8a93ae5d02636804442d
7
- data.tar.gz: 9ebceba70f481a722c616d1ad819c23bd9dab13abebf68371fd966f0834585826596084e27bf27cc632515a4a7c7b162abedc4f997672cb7439ab22bf5ace8f1
6
+ metadata.gz: b16ed47431b61a853e03b44efd04c44909814e2bfbde897833f43f640a75a0932c2db14c9cbdfc25834d20bb5d4147ba10ebe84b137d9f6bcdda4266bb80d64d
7
+ data.tar.gz: 6f97489661677a3cd9fabfb01b1f99c39ff7b1e034d9936fdf1fa578c82fdbceb9c208c050d5e3b7a0bec956a3ea35534ba89c8764de85b41a2c9eceaf8bd207
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.2.3
2
+
3
+ 2022-10-25 17:05
4
+
5
+ #### CHANGED
6
+
7
+ - Add a preceding dot to backup files created when updating to make backups hidden from notetaking apps and the like.
8
+
1
9
  ### 1.2.2
2
10
 
3
11
  2022-10-25 14:30
@@ -10,7 +18,7 @@
10
18
  #### NEW
11
19
 
12
20
  - `--at [start|end]` switch for `add` and `update` to determine
13
- - Global `--file PATH` flag to specify a single global todo file,
21
+ - Global `--file PATH` flag to specify a single global todo file
14
22
  - `--add_at [start|end]` global flag that can be added to config to make permanent
15
23
  - `--finish` switch for `na add` to immediately mark an action as @done
16
24
  - `--cwd_as [project|tag]` global flag when using a global `--file` to determine if the current working directory (last element) is added as an @tag or parent project
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.2)
4
+ na (1.2.3)
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.2
12
+ The current version of `na` is 1.2.3
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.
@@ -63,14 +63,14 @@ SYNOPSIS
63
63
  na [global options] command [command options] [arguments...]
64
64
 
65
65
  VERSION
66
- 1.2.2
66
+ 1.2.3
67
67
 
68
68
  GLOBAL OPTIONS
69
69
  -a, --[no-]add - Add a next action (deprecated, for backwards compatibility)
70
70
  --add_at=POSITION - Add all new/moved entries at [s]tart or [e]nd of target project (default: end)
71
71
  --cwd_as=TYPE - Use current working directory as [p]roject, [t]ag, or [n]one (default: none)
72
- -d, --depth=DEPTH - Recurse to depth (default: 1)
73
- --[no-]debug - Display verbose output (default: enabled)
72
+ -d, --depth=DEPTH - Recurse to depth (default: 3)
73
+ --[no-]debug - Display verbose output
74
74
  --ext=EXT - File extension to consider a todo file (default: taskpaper)
75
75
  -f, --file=PATH - Use a single file as global todo, use --initconfig to make permanent (default: none)
76
76
  --help - Show this message
@@ -14,7 +14,7 @@ module NA
14
14
  ## @param debug [Boolean] only display message if running :verbose
15
15
  ##
16
16
  def notify(msg, exit_code: false, debug: false)
17
- return if debug && !@verbose
17
+ return if debug && NA.verbose
18
18
 
19
19
  $stderr.puts NA::Color.template("{x}#{msg}{x}")
20
20
  Process.exit exit_code if exit_code
@@ -751,7 +751,7 @@ module NA
751
751
  ## @param target [String] The file to back up
752
752
  ##
753
753
  def backup_file(target)
754
- FileUtils.cp(target, "#{target}~")
754
+ FileUtils.cp(target, ".#{target}~")
755
755
  end
756
756
 
757
757
  ##
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.3'
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.1<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.2<!--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.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra