journal-cli 1.0.25 → 1.0.27
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/Gemfile.lock +1 -1
- data/lib/journal-cli/checkin.rb +1 -1
- data/lib/journal-cli/string.rb +7 -4
- data/lib/journal-cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0e13de67e2b05c78b16ff3e4c98e151c5de7b3be51079749599c804d7ea984e
|
4
|
+
data.tar.gz: e4112cccece8944e08e0b83dcdf598c0469282062622d15d0e98063a5ff85ee9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95667e40648e73f25146b6c321142ba1abba26cd9aeefc4b6209e8c86e1452e0b2dc27e066a0ef3af88ed8f46a9c4961a26de71428b3638193e233aecdda479c
|
7
|
+
data.tar.gz: 20bf7846052db8f466be5d45dde9e165d8c04a23cef87b53d304b68ce8dc7da621ac97644bda6c6944c8a99b0cec0471c8e6f4a78b4761d151c4942838d80192
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
+
### 1.0.27
|
2
|
+
|
3
|
+
2023-09-23 08:03
|
4
|
+
|
5
|
+
#### FIXED
|
6
|
+
|
7
|
+
- Time comparisons for past entries failing when using a past date for entry
|
8
|
+
|
9
|
+
### 1.0.26
|
10
|
+
|
11
|
+
2023-09-20 19:18
|
12
|
+
|
13
|
+
#### FIXED
|
14
|
+
|
15
|
+
- Nil entry error on conditional questions
|
16
|
+
|
1
17
|
### 1.0.25
|
2
18
|
|
3
19
|
2023-09-20 09:40
|
data/Gemfile.lock
CHANGED
data/lib/journal-cli/checkin.rb
CHANGED
data/lib/journal-cli/string.rb
CHANGED
@@ -10,17 +10,20 @@ class ::String
|
|
10
10
|
now = Journal.date
|
11
11
|
m = condition.match(time_rx)
|
12
12
|
time = Chronic.parse(m['time'])
|
13
|
+
now.localtime
|
14
|
+
time.localtime
|
15
|
+
time_of_day = Time.parse("#{now.strftime('%Y-%m-%d')} #{time.strftime('%H:%M')}")
|
13
16
|
Journal.notify("{br}Invalid time string in question (#{m['time']})", exit_code: 4) unless time
|
14
17
|
|
15
18
|
case m['comp']
|
16
19
|
when /^<=$/
|
17
|
-
now <=
|
20
|
+
now <= time_of_day
|
18
21
|
when /^(<|bef)/i
|
19
|
-
now <
|
22
|
+
now < time_of_day
|
20
23
|
when /^>=/
|
21
|
-
now >=
|
24
|
+
now >= time_of_day
|
22
25
|
when /^(>|aft)/i
|
23
|
-
now >
|
26
|
+
now > time_of_day
|
24
27
|
end
|
25
28
|
# TODO: Other condition types
|
26
29
|
end
|
data/lib/journal-cli/version.rb
CHANGED
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.
|
4
|
+
version: 1.0.27
|
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-
|
11
|
+
date: 2023-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-which
|