howzit 2.0.3 → 2.0.4

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: febb19742d97801e3dff8026e42e67997ee58e9de5c4e87cd5b9c6fc7ab20fef
4
- data.tar.gz: 6de0abe65cd3860bf38ac516fbfdf566d2609f88d9c1d74cd51dba57ade056ac
3
+ metadata.gz: fba7a6b730f2aabb0e92a26b772cc06fa4182ad07edf7f8620733be70debf766
4
+ data.tar.gz: 60900d73ffee99002daa4e32b5970c81986756c117fec172c824d59e87e72995
5
5
  SHA512:
6
- metadata.gz: 7ad5108294d5fca6e1e12e316311c4082ba82694a876d0c0b6ef41eb082041ca300144cdf4782c235245a1c30db031438dcfb4be1d2569af63f4fbbb3e81be7b
7
- data.tar.gz: 66f51a8da16d89972ea0dbb7ecd209153d3e680d956e8a80d98af9288f014cf1367f89d3a1b42adf4471aace0da8ae2d5d75b6f617c602b5cd272c1361e8c3e9
6
+ metadata.gz: 819083c882f7f330d050d23486e390179beb95c4f220458c4a66c496a0fe99eb69746e762d90ce4c033983764693e5dc77499779e1138ae41e64c346b3930d45
7
+ data.tar.gz: 38d58943e9f8a8d32794ecc638257eb64f67cf09f0a22bc9811ca367627bafb48d22ceed7091551453700fd392fa857b94e37551208735433f0cf4a39ef27f6e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ### 2.0.4
2
+
3
+ 2022-08-04 06:25
4
+
5
+ #### IMPROVED
6
+
7
+ - Ask to open new buildnote for editing after creation
8
+
9
+ #### FIXED
10
+
11
+ - Loop when creating new buildnote
12
+
1
13
  ### 2.0.3
2
14
 
3
15
  2022-08-04 05:31
data/howzit.gemspec CHANGED
@@ -40,4 +40,5 @@ Gem::Specification.new do |spec|
40
40
 
41
41
  spec.add_runtime_dependency 'mdless', '~> 1.0', '>= 1.0.28'
42
42
  spec.add_runtime_dependency 'tty-screen', '~> 0.8'
43
+ # spec.add_runtime_dependency 'tty-prompt', '~> 0.23'
43
44
  end
@@ -106,9 +106,11 @@ module Howzit
106
106
  end
107
107
 
108
108
  title = File.basename(Dir.pwd)
109
+ # prompt = TTY::Prompt.new
109
110
  if default
110
111
  input = title
111
112
  else
113
+ # title = prompt.ask("{bw}Project name:{x}".c, default: title)
112
114
  printf "{bw}Project name {xg}[#{title}]{bw}: {x}".c
113
115
  input = $stdin.gets.chomp
114
116
  title = input unless input.empty?
@@ -166,6 +168,14 @@ module Howzit
166
168
  f.puts note
167
169
  puts "{by}Build notes for #{title} written to #{fname}".c
168
170
  end
171
+
172
+ if File.exist?(fname) && !default
173
+ res = Prompt.yn("{bg}Do you want to open {bw}#{file} {bg}for editing?{x}".c, default: false)
174
+
175
+ edit_note if res
176
+ end
177
+
178
+ Process.exit 0
169
179
  end
170
180
 
171
181
  def note_file
@@ -3,5 +3,5 @@
3
3
  # Primary module for this gem.
4
4
  module Howzit
5
5
  # Current Howzit version.
6
- VERSION = '2.0.3'
6
+ VERSION = '2.0.4'
7
7
  end
data/lib/howzit.rb CHANGED
@@ -20,6 +20,7 @@ require 'tempfile'
20
20
  require 'yaml'
21
21
 
22
22
  require 'tty/screen'
23
+ # require 'tty/prompt'
23
24
 
24
25
  CONFIG_DIR = '~/.config/howzit'
25
26
  CONFIG_FILE = 'howzit.yaml'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: howzit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.3
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra