na 1.2.70 → 1.2.71

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: 56f715c29577f9b9e9d757574336719a2e288ccf3b115094e985bacb06e65fb8
4
- data.tar.gz: d2fdb11e46d322f9efe4b3038ec2becd9a3becc51b8d7c4ff44ae028cd8912ac
3
+ metadata.gz: fe5fb0228e30d0d8b9fe50ce90045a6da7462a024e91e059e1b759726eb7d22b
4
+ data.tar.gz: 389a71c1253d5b8e29655772b36475e7ad9de34d55a21f68090264ccbdf593a4
5
5
  SHA512:
6
- metadata.gz: 2cad1158ba4c4477a88a949856bace92e261c435675ba56491e790a189299525168f1999fee5ecee7025f49dc54693bce3347034ea36782632dd3ddfb86835de
7
- data.tar.gz: ea2f842e4cec6a2040bf730dfc60d683d15638b6db71496ab5e4b3b59bf566183a982d30ab65167e41a9eb6e0002c2061c135ebb22de0edd668b69e5575bb362
6
+ metadata.gz: 2388c34fb46474dbe2a133f1a561eab68809cd08e03f052841e956e910a1993e6d24d2b273ca360f5e40790ec32cad56e09e9b73cd637c7248b28ee1eba01b8c
7
+ data.tar.gz: 2465f8b85a9bb2cc3ef13c51aa29eb9aff242b577fe7e3cabadbc37c8fca19556a40abc320deea515bac57b680d2e8915cdb225168fe5dca335dd1b192ed15bd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### 1.2.71
2
+
3
+ 2024-09-28 11:12
4
+
5
+ #### FIXED
6
+
7
+ - - - @fixed Matching parenthetical notes at the end of a task entry was too greedy
8
+ - - - - @fixed Matching parenthetical notes at the end of a task entry was too greedy
9
+ - Error in concat for line notes
10
+
1
11
  ### 1.2.70
2
12
 
3
13
  2024-09-28 11:10
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.70)
4
+ na (1.2.71)
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.70.
12
+ The current version of `na` is 1.2.71.
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
 
@@ -76,7 +76,7 @@ SYNOPSIS
76
76
  na [global options] command [command options] [arguments...]
77
77
 
78
78
  VERSION
79
- 1.2.70
79
+ 1.2.71
80
80
 
81
81
  GLOBAL OPTIONS
82
82
  -a, --add - Add a next action (deprecated, for backwards compatibility)
data/bin/commands/add.rb CHANGED
@@ -133,11 +133,11 @@ class App
133
133
  end
134
134
 
135
135
  note_rx = /^(.+) \(([^)]+)\)$/
136
- split_note = if action =~ note_rx
137
- n = Regexp.last_match(2)
138
- action.sub!(note_rx, '\1').strip!
139
- n
140
- end
136
+ split_note = if action =~ note_rx
137
+ n = Regexp.last_match(2)
138
+ action.sub!(note_rx, '\1').strip!
139
+ n
140
+ end
141
141
 
142
142
  if options[:priority]&.to_i&.positive?
143
143
  action = "#{action.gsub(/@priority\(\d+\)/, "")} @priority(#{options[:priority]})"
@@ -170,7 +170,7 @@ split_note = if action =~ note_rx
170
170
 
171
171
  note = stdin_note.empty? ? [] : stdin_note
172
172
  note.<< split_note unless split_note.nil?
173
- note << line_note unless line_note.nil?
173
+ note.concat(line_note) unless line_note.nil?
174
174
 
175
175
  NA.add_action(target, options[:project], action, note, finish: options[:finish], append: append)
176
176
  end
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.70'
2
+ VERSION = '1.2.71'
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.68<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.70<!--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.70
4
+ version: 1.2.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra