Skip to content

Commit 163abcd

Browse files
committed
fix priority compare
@fixed Failure on priority compare when priority is integer
1 parent b961e9b commit 163abcd

File tree

6 files changed

+12
-9
lines changed

6 files changed

+12
-9
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
na (1.2.73)
4+
na (1.2.74)
55
chronic (~> 0.10, >= 0.10.2)
66
gli (~> 2.21.0)
77
mdless (~> 1.0, >= 1.0.32)

bin/commands/add.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class App
5959
reader = TTY::Reader.new
6060
append = options[:at] ? options[:at] =~ /^[ae]/i : global_options[:add_at] =~ /^[ae]/
6161

62-
priority = options[:priority]
62+
priority = options[:priority].to_s || "0"
6363
if priority =~ /^[1-5]$/
6464
priority = priority.to_i
6565
elsif priority =~ /^[hml]$/

lib/na/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Na
2-
VERSION = '1.2.73'
2+
VERSION = '1.2.74'
33
end

na.gemspec

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ spec = Gem::Specification.new do |s|
1717
s.license = 'MIT'
1818
s.files =`git ls-files -z`.split("\x0").reject { |f| f.strip =~ %r{^((test|spec|features)/|\.git|buildnotes|.*\.taskpaper)} }
1919
s.require_paths << 'lib'
20-
s.extra_rdoc_files = ['README.md','na.rdoc']
20+
s.extra_rdoc_files = ['README.md', 'na.rdoc']
2121
s.rdoc_options << '--title' << 'na' << '--main' << 'README.md' << '--markup' << 'markdown'
2222
s.bindir = 'bin'
2323
s.executables << 'na'
24+
s.add_development_dependency('minitest', '~> 5.14')
2425
s.add_development_dependency('rake','~> 0.9.2')
2526
s.add_development_dependency('rdoc', '~> 4.3')
26-
s.add_development_dependency('minitest', '~> 5.14')
27-
s.add_development_dependency('yard', '~> 0.9', '>= 0.9.26')
2827
s.add_development_dependency('rubocop', '~> 1.74')
28+
s.add_development_dependency('yard', '~> 0.9', '>= 0.9.26')
29+
s.add_runtime_dependency('chronic', '~> 0.10', '>= 0.10.2')
2930
s.add_runtime_dependency('gli','~> 2.21.0')
31+
s.add_runtime_dependency('mdless', '~> 1.0', '>= 1.0.32')
3032
s.add_runtime_dependency('tty-reader', '~> 0.9', '>= 0.9.0')
3133
s.add_runtime_dependency('tty-screen', '~> 0.8', '>= 0.8.1')
3234
s.add_runtime_dependency('tty-which', '~> 0.5', '>= 0.5.0')
33-
s.add_runtime_dependency('chronic', '~> 0.10', '>= 0.10.2')
34-
s.add_runtime_dependency('mdless', '~> 1.0', '>= 1.0.32')
3535
end

na.taskpaper

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ title: NA Todos
44
Testing:
55
New Commands:
66
Inbox: @inbox
7+
- OmniFocus linking and sync @na
8+
Link directory to OmniFocus project
9+
option to merge in output or mirror projects
710
- Accept (h)igh (m)edium (l)ow as arguments to next -p @priority(2) @na @done
811
just translates l=1 m=3 h=5
912
- Would be nice if file matching preferred exact matches, ignoring other matches if there is one @priority(4) @na

src/_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
_If you're one of the rare people like me who find this useful, feel free to
1010
[buy me some coffee][donate]._
1111

12-
The current version of `na` is <!--VER-->1.2.72<!--END VER-->.
12+
The current version of `na` is <!--VER-->1.2.73<!--END VER-->.
1313

1414
`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.
1515

0 commit comments

Comments
 (0)