na 1.2.62 → 1.2.63

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: 7593e49883f52039a97b3ab2120d8ff33d4fc96e26668c0ced93925ccbdb50dd
4
- data.tar.gz: a2d81d64424252333b43892e2084b6723f2a86bb49b21bf7e4b2b41910ac276f
3
+ metadata.gz: 8913d21ba15ed1f470aa073fbdd6a9d3cb081e1d7d99f09bbb11a56b4bac7167
4
+ data.tar.gz: ed3bff3d476c30cb44d2c1d5a0ddb553278f496952a2459585c15ed1f402af30
5
5
  SHA512:
6
- metadata.gz: aeb67a3726ca053efe7f453659d40bb87a776f1d52f7bd40d843821ee3569edd8ad5edf3e3e0d5f6d4b3f1ec850f3215f21bee5fda495faf8024771dd4115ca1
7
- data.tar.gz: afa3e3a0cdeaffd7d400f1be9351ef4ed832e0b60311610055a6249d6645e649bb51cf1586b52176620b18665f929ffef8543d110ebc721c9cdbb15fa6fbec8c
6
+ metadata.gz: 68f9d3099ff4e2903e612252f17f56fe7c936b1eb2f854ce87f6866464b1a206eec80518ef673dc4f91e30c070a84b11165cd5f442c65f5c4c94593416cf2748
7
+ data.tar.gz: 0340b85bdac9837612ad361cd9da0fe96af557697f8e38ac77097a6dd5da0e22031e098c67348de035a95982c7f27445df5fa8bbab0087e6030ab87d6c22a014
data/0 ADDED
File without changes
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ### 1.2.63
2
+
3
+ 2023-12-14 13:56
4
+
5
+ #### FIXED
6
+
7
+ - Frozen string issue in completed
8
+ - Remove debug statement
9
+
1
10
  ### 1.2.62
2
11
 
3
12
  2023-10-05 08:39
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.62)
4
+ na (1.2.63)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  gli (~> 2.21.0)
7
7
  mdless (~> 1.0, >= 1.0.32)
@@ -14,8 +14,8 @@ GEM
14
14
  specs:
15
15
  chronic (0.10.2)
16
16
  gli (2.21.1)
17
- mdless (1.0.35)
18
- minitest (5.16.3)
17
+ mdless (1.0.37)
18
+ minitest (5.20.0)
19
19
  rake (0.9.6)
20
20
  rdoc (4.3.0)
21
21
  tty-cursor (0.7.1)
@@ -25,10 +25,8 @@ GEM
25
25
  wisper (~> 2.0)
26
26
  tty-screen (0.8.1)
27
27
  tty-which (0.5.0)
28
- webrick (1.7.0)
29
28
  wisper (2.0.1)
30
- yard (0.9.28)
31
- webrick (~> 1.7.0)
29
+ yard (0.9.34)
32
30
 
33
31
  PLATFORMS
34
32
  arm64-darwin-20
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.62
12
+ The current version of `na` is 1.2.63
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.62
80
+ 1.2.63
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -573,7 +573,7 @@ COMMAND OPTIONS
573
573
  --search, --find, --grep=QUERY - Filter results using search terms (may be used more than once, default: none)
574
574
  --[no-]search_notes - Include notes in search (default: enabled)
575
575
  --tagged=TAG - Match actions containing tag. Allows value comparisons (may be used more than once, default: none)
576
- --to, --move=PROJECT - Move action to specific project (default: none)
576
+ --to, --move=PROJECT - Add a @done tag and move action to specific project (default: none)
577
577
  -x, --exact - Match pattern exactly
578
578
 
579
579
  EXAMPLES
@@ -20,7 +20,7 @@ class App
20
20
  c.desc 'Add a @done tag to action and move to Archive'
21
21
  c.switch %i[a archive], negatable: false
22
22
 
23
- c.desc 'Move action to specific project'
23
+ c.desc 'Add a @done tag and move action to specific project'
24
24
  c.arg_name 'PROJECT'
25
25
  c.flag %i[to move]
26
26
 
@@ -102,7 +102,7 @@ class App
102
102
  title = options[:save].gsub(/[^a-z0-9]/, '_').gsub(/_+/, '_')
103
103
  NA.save_search(title, cmd_string)
104
104
  end
105
- puts cmd_string
105
+
106
106
  exit run(Shellwords.shellsplit(cmd_string))
107
107
  end
108
108
  end
data/bin/commands/next.rb CHANGED
@@ -132,8 +132,6 @@ class App
132
132
  end
133
133
  end
134
134
 
135
- pp options[:tagged]
136
-
137
135
  all_req = options[:tagged].join(' ') !~ /(?<=[, ])[+!-]/ && !options[:or]
138
136
  tags = []
139
137
  options[:tagged].join(',').split(/ *, */).each do |arg|
@@ -178,7 +178,8 @@ class App
178
178
  args = ['--placeholder "Enter a note, CTRL-d to save"']
179
179
  args << '--char-limit 0'
180
180
  args << '--width $(tput cols)'
181
- `gum write #{args.join(' ')}`.strip.split("\n")
181
+ gum = TTY::Which.which('gum')
182
+ `#{gum} write #{args.join(' ')}`.strip.split("\n")
182
183
  else
183
184
  NA.notify("#{NA.theme[:prompt]}Enter a note, {bw}CTRL-d#{NA.theme[:prompt]} to end editing:#{NA.theme[:action]}")
184
185
  reader.read_multiline
data/lib/na/action.rb CHANGED
@@ -39,8 +39,7 @@ module NA
39
39
 
40
40
  string = "#{string.strip} @done(#{Time.now.strftime('%Y-%m-%d %H:%M')})" if finish && string !~ /(?<=\A| )@done/
41
41
 
42
- @action = string
43
- @action.expand_date_tags
42
+ @action = string.expand_date_tags
44
43
  @note = note unless note.empty?
45
44
  end
46
45
 
data/lib/na/editor.rb CHANGED
@@ -105,7 +105,7 @@ module NA
105
105
  title = input_lines[0]&.strip
106
106
  NA.notify("#{NA.theme[:error]}No content in first line", exit_code: 1) if title.nil? || title.strip.empty?
107
107
 
108
- title.expand_date_tags
108
+ title = title.expand_date_tags
109
109
 
110
110
  note = if input_lines.length > 1
111
111
  input_lines[1..-1]
data/lib/na/string.rb CHANGED
@@ -294,7 +294,7 @@ class ::String
294
294
 
295
295
  done_rx = /(?<=^| )@(?<tag>#{watch_tags.join('|')})\((?<date>.*?)\)/i
296
296
 
297
- gsub!(done_rx) do
297
+ dup.gsub(done_rx) do
298
298
  m = Regexp.last_match
299
299
  t = m['tag']
300
300
  d = m['date']
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.62'
2
+ VERSION = '1.2.63'
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.61<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.62<!--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.62
4
+ version: 1.2.63
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-05 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -199,6 +199,7 @@ extra_rdoc_files:
199
199
  - na.rdoc
200
200
  files:
201
201
  - ".travis.yml"
202
+ - '0'
202
203
  - CHANGELOG.md
203
204
  - Gemfile
204
205
  - Gemfile.lock