na 1.2.11 → 1.2.13

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: df6c3659bf25a6c38341206f5b027ba52439eb030abd6dc81fa88664e712df53
4
- data.tar.gz: 917116b10e650483bce8ea1da88da95383ca463e11c7161cf6df0551380ca4c0
3
+ metadata.gz: 2d39100de907ee238aac6e9f51cb976e0736822294bc602cec67886aecba12e0
4
+ data.tar.gz: 9936c5bb6fb340d1a9ef756b3b6245560021685e7a538c0a72d10e300ecf527d
5
5
  SHA512:
6
- metadata.gz: 7f636b24d884b8d1a568ada3b4112d71cb6c39a6204575ab3f44f8fdf38fb108306496dc460ec1f529d868811695f4f5bdc570d8f7789c5ee3b93aaae31211df
7
- data.tar.gz: e683364f1c9b8eeb14b5492533ee4fa562651e674881efd3267bd692a89e3eda7adceb2afb34b2cd703af2cb1b04375afc1e5d406909a2e73991f5cc525eb56e
6
+ metadata.gz: 3c6c082c7f2d104916449a1a984191c3e9c06f53f64a6c5860200569d2981e677dc0fc05a47472f186fee46867ccdb0fc5a52925789242ebef87ae441d36f758
7
+ data.tar.gz: f5f3a48fecd5debb35e9d9e03eb3e6f85565912f478395100e63934edfae0b32171a7b4619c474645c7562de426de24e0d6d62312dff9e198423c6850823d6ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.2.13
2
+
3
+ 2022-11-01 12:43
4
+
5
+ #### FIXED
6
+
7
+ - Allow colon at end of action without recognizing as project
8
+
9
+ ### 1.2.12
10
+
11
+ 2022-10-31 13:52
12
+
13
+ #### FIXED
14
+
15
+ - --save flag for find and tagged not working properly
16
+
1
17
  ### 1.2.11
2
18
 
3
19
  2022-10-31 13:45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.11)
4
+ na (1.2.13)
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.11
12
+ The current version of `na` is 1.2.13
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.11
80
+ 1.2.13
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --[no-]add - Add a next action (deprecated, for backwards compatibility)
data/bin/na CHANGED
@@ -600,7 +600,7 @@ class App
600
600
  c.action do |global_options, options, args|
601
601
  if options[:save]
602
602
  title = options[:save].gsub(/[^a-z0-9]/, '_').gsub(/_+/, '_')
603
- NA.save_search(title, "find #{NA.command_line.map { |cmd| "\"#{cmd}\"" }.join(' ')}")
603
+ NA.save_search(title, "#{NA.command_line.join(' ').sub(/ --save[= ]*\S+/, '')}")
604
604
  end
605
605
 
606
606
  depth = if global_options[:recurse] && options[:depth].nil? && global_options[:depth] == 1
@@ -705,7 +705,7 @@ class App
705
705
  c.action do |global_options, options, args|
706
706
  if options[:save]
707
707
  title = options[:save].gsub(/[^a-z0-9]/, '_').gsub(/_+/, '_')
708
- NA.save_search(title, "tagged #{NA.command_line.map { |cmd| "\"#{cmd}\"" }.join(' ')}")
708
+ NA.save_search(title, "#{NA.command_line.join(' ').sub(/ --save[= ]*\S+/, '')}")
709
709
  end
710
710
 
711
711
  depth = if global_options[:recurse] && options[:depth].nil? && global_options[:depth] == 1
@@ -512,7 +512,7 @@ module NA
512
512
  last_line = 0
513
513
  in_action = false
514
514
  content.split("\n").each.with_index do |line, idx|
515
- if line =~ /^([ \t]*)([^\-][^@()]+?): *(@\S+ *)*$/
515
+ if line !~ /^[ \t]*- / && line =~ /^([ \t]*)([^\-][^@()]+?): *(@\S+ *)*$/
516
516
  in_action = false
517
517
  proj = Regexp.last_match(2)
518
518
  indent = line.indent_level
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.11'
2
+ VERSION = '1.2.13'
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.10<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.12<!--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.11
4
+ version: 1.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake