na 1.2.10 → 1.2.12

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: 848e54e708d4cbd9f5ef710e25b5c0b877cde54f6dc7f85f9cf4f0ffefb6bb6b
4
- data.tar.gz: 6ecc93bec183a94a12f1f6ac870647a9d89120df09f3e859bab812a9c5cd9327
3
+ metadata.gz: 9f57d129b093d22ebfa8b31a1df536bbf2423fcc2760f7f6eeed09c69fa1f9de
4
+ data.tar.gz: 77a4e95fe464396a5021496c1bcbe39ff958bf12c69a3f76871333654444698f
5
5
  SHA512:
6
- metadata.gz: fe0da137c601074516d58dc7add5dfc6dc5cabef2decd7e61ac0af59bd63b4c5effe306654e0fd18e434bd57af454242c5f3db6256f6c7c5f834274f1ef2b533
7
- data.tar.gz: 183cfecfdeeddad0105b27fda2dd826bbe4172a6b22c7e40ece42d9a86fd18fc95d7e35c34bd07fecc64c920562857d279fa7c42926fec432e2ef8312c5678fb
6
+ metadata.gz: 71a714a64e56384f653fb2f8df83405d4b6cf024d1ac0a32d1494aa136d7df9ae937b0f50ffb15aafb8bf4db2bcd86e79c41bd7aee3f8893167cb3f0537481c0
7
+ data.tar.gz: 10575125bfd6f2fd591d041050c78d142ff93bfe90bac5c1f300c3d1269be529ae31788498e64e23bb121b2ed422fef1034f470432a1d919a73d57e87f7ccf4d
data/.travis.yml CHANGED
@@ -4,7 +4,7 @@ sudo: required
4
4
  dist: trusty
5
5
  cache: bundler
6
6
  rvm:
7
- - ruby-3.0.1
7
+ - ruby-3.0.0
8
8
  install:
9
9
  - gem install bundler --version '2.2.29'
10
10
  - bundle install
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.2.12
2
+
3
+ 2022-10-31 13:52
4
+
5
+ #### FIXED
6
+
7
+ - --save flag for find and tagged not working properly
8
+
9
+ ### 1.2.11
10
+
11
+ 2022-10-31 13:45
12
+
13
+ #### FIXED
14
+
15
+ - Frozen string error
16
+
1
17
  ### 1.2.10
2
18
 
3
19
  2022-10-29 15:59
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.10)
4
+ na (1.2.12)
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.10
12
+ The current version of `na` is 1.2.12
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.10
80
+ 1.2.12
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --[no-]add - Add a next action (deprecated, for backwards compatibility)
data/bin/na CHANGED
@@ -600,7 +600,7 @@ class App
600
600
  c.action do |global_options, options, args|
601
601
  if options[:save]
602
602
  title = options[:save].gsub(/[^a-z0-9]/, '_').gsub(/_+/, '_')
603
- NA.save_search(title, "find #{NA.command_line.map { |cmd| "\"#{cmd}\"" }.join(' ')}")
603
+ NA.save_search(title, "#{NA.command_line.join(' ').sub(/ --save[= ]*\S+/, '')}")
604
604
  end
605
605
 
606
606
  depth = if global_options[:recurse] && options[:depth].nil? && global_options[:depth] == 1
@@ -705,7 +705,7 @@ class App
705
705
  c.action do |global_options, options, args|
706
706
  if options[:save]
707
707
  title = options[:save].gsub(/[^a-z0-9]/, '_').gsub(/_+/, '_')
708
- NA.save_search(title, "tagged #{NA.command_line.map { |cmd| "\"#{cmd}\"" }.join(' ')}")
708
+ NA.save_search(title, "#{NA.command_line.join(' ').sub(/ --save[= ]*\S+/, '')}")
709
709
  end
710
710
 
711
711
  depth = if global_options[:recurse] && options[:depth].nil? && global_options[:depth] == 1
@@ -265,7 +265,7 @@ module NA
265
265
  target_proj = nil
266
266
 
267
267
  if project
268
- project.sub!(/:$/, '')
268
+ project = project.sub(/:$/, '')
269
269
  target_proj = projects.select { |pr| pr.project =~ /#{project.gsub(/:/, '.*?:.*?')}/i }.first
270
270
  if target_proj.nil?
271
271
  res = NA.yn(NA::Color.template("{y}Project {bw}#{project}{xy} doesn't exist, add it"), default: true)
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.10'
2
+ VERSION = '1.2.12'
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.9<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.11<!--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.10
4
+ version: 1.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-29 00:00:00.000000000 Z
11
+ date: 2022-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake