na 1.2.54 → 1.2.56

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: 3d67defa193fd36e28d744d1b42a56ef6815db6b4994b07a5d7fa4af447ca14c
4
- data.tar.gz: cf5e9a3e396ad102e0b15481873affcea80d1bb0a7571136992957d920de5db7
3
+ metadata.gz: 29b9842202dfc46dbeae88e652762169c8fdf0df60b06992008961b2dba33119
4
+ data.tar.gz: 6d34243a7a858b5821b3240b1a550758812c8163ee0fba8854665aa21604b666
5
5
  SHA512:
6
- metadata.gz: 38fbd19efd1897a91c1a0c0440a390748a8e51ab481c9b2b41b0011644623f9b091be8b26ff23afdeb8f990b42e2ba924c6df4634eb6fec4aa17a9c60fd40b6e
7
- data.tar.gz: 79b7d7b7f016d5307fc7604ddafebea525a3c4ce5f3fa7a923921b2502dec4ba697dc8f4c59cab4df9d2ed90b487a3566e230d9f2d6cb258881a1ff16fab7f31
6
+ metadata.gz: d603bad6634138a8b5bd3f1306d7c36a3b4ec0ea53542b43169bbe3f8904dbff65c8173cb0f086f4251218875fd3880ba3803e64a9c411709ec941a7801715f5
7
+ data.tar.gz: d7126bc4d633b4d062cbb1177e300bf0ef308b548c03da01f58c055217b1f21e08f2641721d4e10730d3f5682a007795a2c7fc0ad66eeb7da32b9b78cef9a796
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.2.56
2
+
3
+ 2023-09-11 11:33
4
+
5
+ #### FIXED
6
+
7
+ - Write missing backup database if it doesn't exist
8
+
9
+ ### 1.2.55
10
+
11
+ 2023-09-11 11:23
12
+
13
+ #### IMPROVED
14
+
15
+ - Change minimum width for text wrapping to 80 columns
16
+
1
17
  ### 1.2.54
2
18
 
3
19
  2023-09-11 10:11
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- na (1.2.54)
4
+ na (1.2.56)
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.54
12
+ The current version of `na` is 1.2.56
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.54
80
+ 1.2.56
81
81
 
82
82
  GLOBAL OPTIONS
83
83
  -a, --add - Add a next action (deprecated, for backwards compatibility)
@@ -647,9 +647,14 @@ module NA
647
647
  ##
648
648
  def backup_files
649
649
  db = database_path(file: 'last_modified.txt')
650
- NA.notify("#{NA.theme[:error]}Backup database not found", exit_code: 1) unless File.exist?(db)
650
+ if File.exist?(db)
651
+ IO.read(db).strip.split(/\n/).map(&:strip)
652
+ else
653
+ NA.notify("#{NA.theme[:error]}Backup database not found")
654
+ File.open(db, 'w') { |f| f.puts }
655
+ []
656
+ end
651
657
 
652
- IO.read(db).strip.split(/\n/).map(&:strip)
653
658
  end
654
659
 
655
660
  def move_deprecated_backups
data/lib/na/string.rb CHANGED
@@ -149,7 +149,7 @@ class ::String
149
149
  end
150
150
 
151
151
  def wrap(width, indent)
152
- return "\n#{self}" if width < 60
152
+ return "\n#{self}" if width <= 80
153
153
 
154
154
  output = []
155
155
  line = []
data/lib/na/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Na
2
- VERSION = '1.2.54'
2
+ VERSION = '1.2.56'
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.53<!--END VER-->.
12
+ The current version of `na` is <!--VER-->1.2.55<!--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,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: na
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.54
4
+ version: 1.2.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra