na 1.2.50 → 1.2.52

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: ea683e8d5187cd53c25900fd1ec4bb269644cd83c7f95c591cd5abee20d6f7e4
4
- data.tar.gz: 850ef4f8edf690a993c73088bef2fea5b4c47085d21f43e4f3097dbf202d3d9f
3
+ metadata.gz: ab5b88ac338b40822248e4c33b5c87b65add30e67ffdebda203c66c8dd77330a
4
+ data.tar.gz: 3bb7a4bf303ffa98502c30b122ebe728c1c31dc2377f839daa1a34ed3f516570
5
5
  SHA512:
6
- metadata.gz: 3bb8a0ec11195980fffcc7b429e5157e4c60501840280c14d7228f5585067e6cbcea51492a7e844d59e633ba0d7908704619404e6bfcae0d09b6f5d75a56e112
7
- data.tar.gz: 8b9c155dfbbe6ac51682db63f471b2393640aaebc73f2e97801c54a872ec89b87bcc8e9574892c6030ae8d1cfd7c5136f0da57680f4aa4bc2eb96edc9c74c09d
6
+ metadata.gz: c75a990f0117537c9087ee6872c93e6213b98fe57b992c0d0c82476df603427fc3f3586a307f4b05be0af77adf20950777576cd3d3966936d2e0cb9d88562cdd
7
+ data.tar.gz: 531a7e450af89094784b0228be1821d11c71b3e40b94ad6c68c613eb6f79a29a03285d1c5724cc76932ad8891756363385108c9ba67e2a7d8f7481f6c2ae567d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,20 @@
1
+ ### 1.2.52
2
+
3
+ 2023-09-10 06:32
4
+
5
+ #### FIXED
6
+
7
+ - Remove debug statement
8
+
9
+ ### 1.2.51
10
+
11
+ 2023-09-09 13:20
12
+
13
+ #### FIXED
14
+
15
+ - Ensure new actions are added within newly created projects
16
+ - When creating a subproject, ensure new project gets inserted
17
+
1
18
  ### 1.2.50
2
19
 
3
20
  2023-09-09 08:04
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.50)
4
+ na (1.2.52)
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.50
12
+ The current version of `na` is 1.2.52
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.50
80
+ 1.2.52
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -0,0 +1,16 @@
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
+ - new_task @na
12
+
13
+ Project1:
14
+ - Test4
15
+ - Test5
16
+ - 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
@@ -203,15 +203,15 @@ module NA
203
203
  content = content.split(/\n/).insert(line, input.join("\n")).join("\n")
204
204
  else
205
205
  split = content.split(/\n/)
206
- line = todo.projects.first&.line || 0
206
+ line = todo.projects.first&.last_line || 0
207
207
  before = split.slice(0, line).join("\n")
208
208
  after = split.slice(line, split.count - 0).join("\n")
209
209
  content = "#{before}\n#{input.join("\n")}\n#{after}"
210
210
  end
211
211
 
212
- new_project = NA::Project.new(path.map(&:cap_first).join(':'), indent - 1, line, line + 1)
212
+ new_project = NA::Project.new(path.map(&:cap_first).join(':'), indent - 1, line, line)
213
213
  else
214
- line = final_match.line + 1
214
+ line = final_match.last_line + 1
215
215
  indent = final_match.indent + 1
216
216
  input = []
217
217
  new_path.each do |part|
@@ -292,6 +292,7 @@ module NA
292
292
 
293
293
  NA.notify("#{NA.theme[:error]}Error parsing project #{NA.theme[:filename]}#{target}", exit_code: 1) if target_proj.nil?
294
294
 
295
+ projects = find_projects(target)
295
296
  contents = target.read_file.split("\n")
296
297
  end
297
298
 
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.50'
2
+ VERSION = '1.2.52'
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.49<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.51<!--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.50
4
+ version: 1.2.52
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