journal-cli 1.0.24 → 1.0.26

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: 110b0fe8610e39052c3f85c417739821f66103cd0457a23a03188a158062962f
4
- data.tar.gz: b56dfb4649456dd53e22aa86fece669f8d162fd6048537e06ba8c6aeb0db61c1
3
+ metadata.gz: 4984b6fe36150316fca655279b8bff861e006da77028b78327132e711798b7e3
4
+ data.tar.gz: 43d4b24bd3f27d92bf781496fad939037cf8258d34bd835b1d148010ad184806
5
5
  SHA512:
6
- metadata.gz: 237a1faa0d7d4acfb0bb1d0c3775b46055529e432dbba25e38b723cd5cab39e68db7796d824c870739f8fa9b28f2c1d040df1d4fb84bd3e57581cc18ba931ea7
7
- data.tar.gz: cc8e68cf73df3bf13a71b2eb9126a136dd9f989a869c519dece7f733e1a89dfd5552626fc249bf7c6bc2ea95ee2a1a23836a6c8ed410202b1d4578b6be8d655e
6
+ metadata.gz: 8cbbd48551378617d527c661a7a022735766f4f09dee40ab903c1687d23967a69e250007d5ac2a0b0e4cb3d6209d2edcb43f18ef7fbe205a0abf2cb0c2a93c04
7
+ data.tar.gz: daec6aadef725293d2e4db82f69187a3230b18c31a71e8a45de28a00b47fc961f9f1020d6930cda8c374e16401cddd5fa3abcd12f8343879c645d86d476652d0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### 1.0.26
2
+
3
+ 2023-09-20 19:18
4
+
5
+ #### FIXED
6
+
7
+ - Nil entry error on conditional questions
8
+
9
+ ### 1.0.25
10
+
11
+ 2023-09-20 09:40
12
+
13
+ #### FIXED
14
+
15
+ - Coloring of min/max on numeric questions
16
+
1
17
  ### 1.0.24
2
18
 
3
19
  2023-09-20 09:12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- journal-cli (1.0.24)
4
+ journal-cli (1.0.25)
5
5
  chronic (~> 0.10, >= 0.10.2)
6
6
  tty-reader (~> 0.9, >= 0.9.0)
7
7
  tty-which (~> 0.5, >= 0.5.0)
@@ -133,7 +133,7 @@ module Journal
133
133
  end
134
134
 
135
135
  def print_answer(prompt, type, key, data)
136
- return if data.nil? || !data.key?(key)
136
+ return if data.nil? || !data.key?(key) || data[key].nil?
137
137
 
138
138
  case type
139
139
  when /^(weather|forecast)/
@@ -60,7 +60,7 @@ module Journal
60
60
  ##
61
61
  ##
62
62
  def read_number(integer: false)
63
- Journal.notify("{by}#{@prompt} {c}({bw}#{@min}{c}-{bw}#{@max})")
63
+ Journal.notify("{by}#{@prompt} {xc}({bw}#{@min}{xc}-{bw}#{@max}{xc})")
64
64
 
65
65
  res = @gum ? read_number_gum : read_line_tty
66
66
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Journal
4
- VERSION = '1.0.24'
4
+ VERSION = '1.0.26'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: journal-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.24
4
+ version: 1.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-20 00:00:00.000000000 Z
11
+ date: 2023-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-which