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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f62f54f397dd0589f5ba2584df91129cef9ed40d83941d7c07bb82b8164392e
4
- data.tar.gz: df3046ab0fc6ae4436f4b99ede207fd8bef86ac8e6ea3b56661e8c678351e3a2
3
+ metadata.gz: 1db983c29a889c30481070cdc131691b66b787ef29a8095499af105f5e4997a4
4
+ data.tar.gz: a44873884efad1c464a98789fd9ea067eeb16be407829b23585f8122d410c8aa
5
5
  SHA512:
6
- metadata.gz: 57a2347a3cf429821d26d3d99b7cc849bcd6225cb63cf74591dac549c6609d6ec1056a2e6659627d27aba13eddcb5a52175fb76ca9505c0782e933a0643c5a1d
7
- data.tar.gz: 7549d15f6795599ea695f2cc99f8faa8b02176bdc1a5328565efa4777a93d3646b83face27b686aa39fb23ec1ca15975def359a879ed138704d0c0300d0f2ad6
6
+ metadata.gz: fd42f6389075da4f2d2376ace587885a50359e00e025e26bcb5987e55c690aa75bd340c4e7c811b102d52ce0d176f4d8a84c3f850fdc4a7578acd5816f650164
7
+ data.tar.gz: a8656911b379f17fe0b738f04b5e40971ba3a504b2964eeee406abb353359537b57ee04bd4e63488907037612a09b61781c4986b2d539b6763dbe45b072b23d6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.0.36
2
+
3
+ 2024-07-03 11:31
4
+
5
+ #### FIXED
6
+
7
+ - Give Day One time to launch and update db when adding entry
8
+
1
9
  ### 1.0.35
2
10
 
3
11
  2024-06-22 11:45
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- journal-cli (1.0.35)
4
+ journal-cli (1.0.36)
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)
@@ -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
- # quit if it wasn't running
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
  ##
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Journal
4
- VERSION = '1.0.35'
4
+ VERSION = '1.0.36'
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.35
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-06-22 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-which