na 1.2.61 → 1.2.62

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: '09631ecb9ed0479927d54375ed9e71807809ab93cd689bac1febde3509b9365f'
4
- data.tar.gz: 1986fe627277b051a4de6bf879da28771b6ac0c53992bad79f1cecea6c86d2f0
3
+ metadata.gz: 7593e49883f52039a97b3ab2120d8ff33d4fc96e26668c0ced93925ccbdb50dd
4
+ data.tar.gz: a2d81d64424252333b43892e2084b6723f2a86bb49b21bf7e4b2b41910ac276f
5
5
  SHA512:
6
- metadata.gz: 235b9d00ad77367d9b3c8807091efcae10f84591a712b486d32d661b6b7112a39057c0d614db34e86283b32d3d971f533bfab547ac2744b9768e78d46a18c6a9
7
- data.tar.gz: 794846444bc772fe26d8f1af069e273ec85e1074657852fd476f03802b33e713b6d985826a83357aa4da211634f33fdb994582c33c026ec36ac1f64188e5268f
6
+ metadata.gz: aeb67a3726ca053efe7f453659d40bb87a776f1d52f7bd40d843821ee3569edd8ad5edf3e3e0d5f6d4b3f1ec850f3215f21bee5fda495faf8024771dd4115ca1
7
+ data.tar.gz: afa3e3a0cdeaffd7d400f1be9351ef4ed832e0b60311610055a6249d6645e649bb51cf1586b52176620b18665f929ffef8543d110ebc721c9cdbb15fa6fbec8c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.2.62
2
+
3
+ 2023-10-05 08:39
4
+
5
+ #### FIXED
6
+
7
+ - Return empty if `na projects QUERY` has no results
8
+
1
9
  ### 1.2.61
2
10
 
3
11
  2023-10-03 12:44
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.61)
4
+ na (1.2.62)
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.61
12
+ The current version of `na` is 1.2.62
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.61
80
+ 1.2.62
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -581,6 +581,7 @@ module NA
581
581
  NA.notify("#{NA.theme[:warning]}No matches, loosening search", debug: true)
582
582
  match_working_dir(search, distance: 2, require_last: false)
583
583
  else
584
+ NA.notify("Matched files: {x}#{dirs.join(', ')}", debug: true)
584
585
  dirs
585
586
  end
586
587
  end
@@ -767,7 +768,10 @@ module NA
767
768
  else
768
769
  match_working_dir(query)
769
770
  end
771
+
770
772
  target = files.count > 1 ? NA.select_file(files) : files[0]
773
+ return if target.nil?
774
+
771
775
  projects = find_projects(target)
772
776
  projects.each do |proj|
773
777
  parts = proj.project.split(/:/)
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.61'
2
+ VERSION = '1.2.62'
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.60<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.61<!--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.61
4
+ version: 1.2.62
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-10-03 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake