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 +4 -4
- data/CHANGELOG.md +12 -0
- data/howzit.gemspec +1 -0
- data/lib/howzit/buildnote.rb +10 -0
- data/lib/howzit/version.rb +1 -1
- data/lib/howzit.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fba7a6b730f2aabb0e92a26b772cc06fa4182ad07edf7f8620733be70debf766
|
4
|
+
data.tar.gz: 60900d73ffee99002daa4e32b5970c81986756c117fec172c824d59e87e72995
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 819083c882f7f330d050d23486e390179beb95c4f220458c4a66c496a0fe99eb69746e762d90ce4c033983764693e5dc77499779e1138ae41e64c346b3930d45
|
7
|
+
data.tar.gz: 38d58943e9f8a8d32794ecc638257eb64f67cf09f0a22bc9811ca367627bafb48d22ceed7091551453700fd392fa857b94e37551208735433f0cf4a39ef27f6e
|
data/CHANGELOG.md
CHANGED
data/howzit.gemspec
CHANGED
data/lib/howzit/buildnote.rb
CHANGED
@@ -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
|
data/lib/howzit/version.rb
CHANGED
data/lib/howzit.rb
CHANGED