na 1.2.95 → 1.2.96

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: 8a56c16c9c040f54facd2d6b9fffbf6740e168a63099a77ba15fb90c122ba8a2
4
- data.tar.gz: 624665b0fc50ac0d251ca6d464899050351f52aadf37a05e154e3e190fc117b6
3
+ metadata.gz: '039caf8eecb90a37194f6629809951e530c82510989f757e4f0a018cdd4eb5a0'
4
+ data.tar.gz: f8faf9b47d8aea7320dcbb4de91b9d446a415c26886e06e898d3370f7c632264
5
5
  SHA512:
6
- metadata.gz: ab7436edfa9b1edb36a93b68a11966955168a14d0834a178bd90744d4f2333a95aea9d7a03c46fed8dd862d2378fcb6af5b89ff3be39502828d5287617dc9cff
7
- data.tar.gz: 2611cb0295cbceba368e418f3502148c1d2748a2515eab3fbaad90fca3d9c05cb654865aa84a050b8d0449f6c41378779e27f268e118d927497c0a6db85d6cc4
6
+ metadata.gz: 26c4763058c114f2d641d2cb7d64be463c21ec48b2df6b41c7380ab810d5af06c37d067ae172f233456044e1993fd72d5da4a835f1bdc8f71ea2e888d9ab8cc9
7
+ data.tar.gz: 5a4250a51f3e0753cea79a188293a41ba128af43abb51c6ff82bd10ab74122d98f8fc4ef774e50e2ed6c880f85ab05bc4e4c3c06b5840e3099b8b7bf8be3844a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ### 1.2.96
2
+
3
+ 2025-12-26 02:38
4
+
5
+ #### CHANGED
6
+
7
+ - Bump gem version to 1.2.96.
8
+
9
+ #### FIXED
10
+
11
+ - Fix crash in `na next` when matching project directories.
12
+
1
13
  ### 1.2.95
2
14
 
3
15
  2025-12-03 08:23
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.95)
4
+ na (1.2.96)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  csv (>= 3.2)
7
7
  git (~> 3.0.0)
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.95.
12
+ The current version of `na` is 1.2.96.
13
13
 
14
14
 
15
15
  ### Table of contents
@@ -257,7 +257,7 @@ SYNOPSIS
257
257
  na [global options] command [command options] [arguments...]
258
258
 
259
259
  VERSION
260
- 1.2.95
260
+ 1.2.96
261
261
 
262
262
  GLOBAL OPTIONS
263
263
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -902,7 +902,10 @@ module NA
902
902
  end}", debug: true)
903
903
 
904
904
  if require_last
905
- dirs.delete_if { |d| !d.sub(/\.#{NA.extension}$/, '').dir_matches(any: optional, all: required, none: negated) }
905
+ dirs.delete_if do |d|
906
+ !d.sub(/\.#{NA.extension}$/, '')
907
+ .dir_matches?(any: optional, all: required, none: negated, require_last: true, distance: distance)
908
+ end
906
909
  else
907
910
  dirs.delete_if do |d|
908
911
  !d.sub(/\.#{NA.extension}$/, '')
data/lib/na/version.rb CHANGED
@@ -5,5 +5,5 @@
5
5
  module Na
6
6
  ##
7
7
  # Current version of the na gem.
8
- VERSION = '1.2.95'
8
+ VERSION = '1.2.96'
9
9
  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.94<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.95<!--END VER-->.
13
13
 
14
14
  <!--GITHUB-->
15
15
  ### Table of contents
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.95
4
+ version: 1.2.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra