na 1.2.51 → 1.2.53

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: 5edc215f757a568603dff43b55a7e727d756cf4112771a898c7132ac5c335d34
4
- data.tar.gz: 395a80b95e1e303d62000b036235a40199d6fb70eb56d854509681dcc78030a6
3
+ metadata.gz: 8cecace1a262d294c8ef240dd6413f488b736fc04b7a5edaff413df8184ce2c8
4
+ data.tar.gz: 2d34dedd3c0cedc257ad1e7761afab581522aed6d97aa48ad53f4e1b424b1c68
5
5
  SHA512:
6
- metadata.gz: 589d810297ff33afaa36d93b1ab006a9332ea908437008642b3d9810a90759f47cbeea1e4928e32381372b24f4e107786a7d53cae821fd1e49536683e6414584
7
- data.tar.gz: 2f8418d040cdc7bda601220d35906b8f8d48e7be5ed4e6fbb07b8dc6674c52bcdfe07c43dda553c4a0161e9370411b75e9c4bd0dc7cc357a0cb2f73710efd447
6
+ metadata.gz: a46c75398d031fa5a4d029ab99bf6df3cdc3958cbda22de87402480f5327afcfaed5b9353df6515a7610990b5d97e5553e37a94186402c0af0cb817bb7b59674
7
+ data.tar.gz: 705c122dbd8714a18676b633f201707a515d69e3e24ddbce2c008cce498e3ccdf4f9b3829f3e28e474b5aaa1e41de93ed775da14bc414db16649bece9ab185cc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.2.53
2
+
3
+ 2023-09-10 08:26
4
+
5
+ #### FIXED
6
+
7
+ - Nil error when requesting input
8
+
9
+ ### 1.2.52
10
+
11
+ 2023-09-10 06:32
12
+
13
+ #### FIXED
14
+
15
+ - Remove debug statement
16
+
1
17
  ### 1.2.51
2
18
 
3
19
  2023-09-09 13:20
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.51)
4
+ na (1.2.53)
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.51
12
+ The current version of `na` is 1.2.53
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.51
80
+ 1.2.53
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -0,0 +1,21 @@
1
+ ---
2
+ comment: 2023-09-03
3
+ keywords:
4
+ ---
5
+
6
+ 2023-09-08:
7
+ Project2:
8
+ - new_task @na
9
+ - new_task @na
10
+ Project0:
11
+ - other task @na
12
+ - other task @na
13
+ - There, that's better @na
14
+ Subproject:
15
+ - new_task 2 @na
16
+ - new_task @na
17
+ - new_task 2 @na
18
+ Project1:
19
+ - Test4
20
+ - Test5
21
+ - Test6
data/lib/na/colors.rb CHANGED
@@ -210,18 +210,20 @@ module NA
210
210
  ## Colors are specified with single letters inside
211
211
  ## curly braces. Uppercase changes background color.
212
212
  ##
213
- ## w: white, k: black, g: green, l: blue, y: yellow, c: cyan,
214
- ## m: magenta, r: red, b: bold, u: underline, i: italic,
215
- ## x: reset (remove background, color, emphasis)
213
+ ## w: white, k: black, g: green, l: blue, y: yellow,
214
+ ## c: cyan, m: magenta, r: red, b: bold, u: underline,
215
+ ## i: italic, x: reset (remove background, color,
216
+ ## emphasis)
216
217
  ##
217
- ## Also accepts {#RGB} and {#RRGGBB} strings. Put a b before
218
- ## the hash to make it a background color
218
+ ## Also accepts {#RGB} and {#RRGGBB} strings. Put a b
219
+ ## before the hash to make it a background color
219
220
  ##
220
- ## @example Convert a templated string
221
- ## Color.template('{Rwb}Warning:{x} {w}you look a little {g}ill{x}')
221
+ ## @example Convert a templated string
222
+ ## Color.template('{Rwb}Warning:{x} {w}you look a
223
+ ## little {g}ill{x}')
222
224
  ##
223
- ## @example Convert using RGB colors
224
- ## Color.template('{#f0a}This is an RGB color')
225
+ ## @example Convert using RGB colors
226
+ ## Color.template('{#f0a}This is an RGB color')
225
227
  ##
226
228
  ## @param input [String, Array] The template
227
229
  ## string. If this is an array, the
@@ -296,8 +296,6 @@ module NA
296
296
  contents = target.read_file.split("\n")
297
297
  end
298
298
 
299
- pp projects.map(&:inspect)
300
-
301
299
  indent = "\t" * target_proj.indent
302
300
  note = note.split("\n") unless note.is_a?(Array)
303
301
  note = if note.empty?
@@ -837,7 +835,7 @@ module NA
837
835
  ## @param prompt [String] The prompt
838
836
  ##
839
837
  def request_input(options, prompt: 'Enter text')
840
- if $stdin.isatty && TTY::Which.exist?('gum') && options[:tagged].empty?
838
+ if $stdin.isatty && TTY::Which.exist?('gum') && (options[:tagged].nil? || options[:tagged].empty?)
841
839
  opts = [%(--placeholder "#{prompt}"),
842
840
  '--char-limit=500',
843
841
  "--width=#{TTY::Screen.columns}"]
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.51'
2
+ VERSION = '1.2.53'
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.50<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.52<!--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.51
4
+ version: 1.2.53
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-09-09 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -206,6 +206,7 @@ files:
206
206
  - README.md
207
207
  - README.rdoc
208
208
  - Rakefile
209
+ - Test.todo.markdown
209
210
  - bin/commands/add.rb
210
211
  - bin/commands/archive.rb
211
212
  - bin/commands/changes.rb