na 1.2.90 → 1.2.91

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: 2fcb6575780c78697521cb7d52c081d346ed8bb9ea75f2030329aec62a7cc8f8
4
- data.tar.gz: d22568b292a5dd8162302a5e59ad3746ada5ce2a0d21ba64a7dd3e150aa41b7b
3
+ metadata.gz: 1a7527724409b28562f6096ec2c083bb19468fb84785db69b4464df521b7be35
4
+ data.tar.gz: e0d0d694f1750ddca5ff3b2db991e7d91e889729db533de8cab19b1b33888280
5
5
  SHA512:
6
- metadata.gz: 43c3f62e78ea62fa6b4ff14a21fed2731c0513a26f0a8eb06f8d11f2f8c029325e97f477160ba87dae5f3a3f667a1197460cb56c47e37874116de5482a5a27fc
7
- data.tar.gz: f9afb28dd22924584f2fe4f4393de2b13e4a6a938e494e38f3c30153cf5520f9a3b6dc94fabadca92503d6246218021d2d1626740f4e715a6ad9303867399915
6
+ metadata.gz: 2e58f0cac92657a95323c4e99ed8f4e49278457f91b3c2b62e080623d8fa4de8c90bd13a7b1e33240b9976f0e418bdc1d7cd6402586589f93fd6e343b2c67df8
7
+ data.tar.gz: 004a679b4d4c5217f1658761da11d467f47c1fb66e6c9eb6e59e22d9963afa0f20457906ffa11c0d87030e0378be0e9dff9cbba19369208e58a38703d84c75f1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.2.91
2
+
3
+ 2025-11-11 18:17
4
+
5
+ #### FIXED
6
+
7
+ - Error calling scan_tags (Private Method) from next.rb
8
+
1
9
  ### 1.2.90
2
10
 
3
11
  2025-11-09 10:57
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.90)
4
+ na (1.2.91)
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.90.
12
+ The current version of `na` is 1.2.91.
13
13
 
14
14
 
15
15
  ### Table of contents
@@ -116,7 +116,7 @@ SYNOPSIS
116
116
  na [global options] command [command options] [arguments...]
117
117
 
118
118
  VERSION
119
- 1.2.90
119
+ 1.2.91
120
120
 
121
121
  GLOBAL OPTIONS
122
122
  -a, --add - Add a next action (deprecated, for backwards compatibility)
data/lib/na/action.rb CHANGED
@@ -318,6 +318,19 @@ module NA
318
318
  search_matches_none(none, include_note: include_note)
319
319
  end
320
320
 
321
+ def scan_tags
322
+ tags = {}
323
+ rx = /(?<= |^)@(?<tag>\S+?)(?:\((?<value>.*?)\))?(?= |$)/
324
+ all_tags = []
325
+ @action.scan(rx) { all_tags << Regexp.last_match }
326
+ all_tags.each do |m|
327
+ tag = m.named_captures.symbolize_keys
328
+ tags[tag[:tag]] = tag[:value]
329
+ end
330
+
331
+ tags
332
+ end
333
+
321
334
  private
322
335
 
323
336
  # Check if action and note do not match any regexes
@@ -473,18 +486,5 @@ module NA
473
486
  end
474
487
  end
475
488
  end
476
-
477
- def scan_tags
478
- tags = {}
479
- rx = /(?<= |^)@(?<tag>\S+?)(?:\((?<value>.*?)\))?(?= |$)/
480
- all_tags = []
481
- @action.scan(rx) { all_tags << Regexp.last_match }
482
- all_tags.each do |m|
483
- tag = m.named_captures.symbolize_keys
484
- tags[tag[:tag]] = tag[:value]
485
- end
486
-
487
- tags
488
- end
489
489
  end
490
490
  end
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.90'
8
+ VERSION = '1.2.91'
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.89<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.90<!--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.90
4
+ version: 1.2.91
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra