journal-cli 1.0.35 → 1.0.36
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/Gemfile.lock +1 -1
- data/lib/journal-cli/checkin.rb +5 -3
- 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: 1db983c29a889c30481070cdc131691b66b787ef29a8095499af105f5e4997a4
|
4
|
+
data.tar.gz: a44873884efad1c464a98789fd9ea067eeb16be407829b23585f8122d410c8aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd42f6389075da4f2d2376ace587885a50359e00e025e26bcb5987e55c690aa75bd340c4e7c811b102d52ce0d176f4d8a84c3f850fdc4a7578acd5816f650164
|
7
|
+
data.tar.gz: a8656911b379f17fe0b738f04b5e40971ba3a504b2964eeee406abb353359537b57ee04bd4e63488907037612a09b61781c4986b2d539b6763dbe45b072b23d6
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/lib/journal-cli/checkin.rb
CHANGED
@@ -93,12 +93,11 @@ module Journal
|
|
93
93
|
def launch_day_one
|
94
94
|
# Launch Day One to ensure database is up-to-date
|
95
95
|
# test if Day One is open
|
96
|
-
running = !`ps ax | grep "/MacOS/Day One" | grep -v grep`.strip.empty?
|
96
|
+
@running = !`ps ax | grep "/MacOS/Day One" | grep -v grep`.strip.empty?
|
97
97
|
# -g do not bring app to foreground
|
98
98
|
# -j launch hidden
|
99
99
|
`/usr/bin/open -gj -a "Day One"`
|
100
|
-
|
101
|
-
`osascript -e 'tell app "Day One" to quit'` if !running
|
100
|
+
sleep 3
|
102
101
|
end
|
103
102
|
|
104
103
|
##
|
@@ -119,6 +118,9 @@ module Journal
|
|
119
118
|
cmd << %(-date "#{@date.strftime("%Y-%m-%d %I:%M %p")}")
|
120
119
|
`echo #{Shellwords.escape(to_markdown(yaml: false, title: true))} | #{cmd.join(" ")} -- new`
|
121
120
|
Journal.notify("{bg}Entered one entry into Day One")
|
121
|
+
|
122
|
+
# quit if it wasn't running
|
123
|
+
`osascript -e 'tell app "Day One" to quit'` if !@running
|
122
124
|
end
|
123
125
|
|
124
126
|
##
|
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.36
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Terpstra
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-which
|