journal-cli 1.0.29 → 1.0.30

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: e8f83764338d653909b55685394ab55398913f1dfdf5a529bfe2d7e94857c586
4
- data.tar.gz: c068e0799c4438f45aad8ac2e265d42324da686712a85c1709cd491ea1ca476f
3
+ metadata.gz: bff25e2097779ccc627fad73fd8be1f60bd4d26d2e9b4387958de7ec28aaed11
4
+ data.tar.gz: 3dd1a0ef9a6abdeb66fceed41c3a7dd67875afb103d0b3b0bc6fefb486f51368
5
5
  SHA512:
6
- metadata.gz: 8f35ef77c9762043790ee535e28a0892f78681f5895bd0db6cdb476e13524a35ccf0d80d31dff201a7307d630fc6f59729c9ba7b83698b7bbb428669cceafb96
7
- data.tar.gz: 28fbd4e7ec6ac0ee506a8bed4413985a9424d6327025b571843bc0d28d17a17747808d33baa7d31d39d3e1e8b941c32a9dcf9883e5c5659af996261e7dc7f514
6
+ metadata.gz: 6d1d0526337ac42f09e7ca6dbfaf06ddf4167f2d7ed2515dc0de845114045494acd8d54d5bc35dfc90719b7c50563cbbe2e6fae0549fdd86d5575f41b1d740ea
7
+ data.tar.gz: 9e26c299a129ef5f2bdaa48fb05b90b7a2e20052ebd5578bed2f1bd3bdeae773711a3e219a567036a51634b4636a91e233606116a40eca8a2ed670582f96a38e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 1.0.30
2
+
3
+ 2023-12-13 17:22
4
+
5
+ #### FIXED
6
+
7
+ - Weather.moon detection
8
+
1
9
  ### 1.0.29
2
10
 
3
11
  2023-10-01 15:24
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- journal-cli (1.0.29)
4
+ journal-cli (1.0.30)
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)
data/README.md CHANGED
@@ -52,6 +52,8 @@ This file contains a YAML definition of your journal. Each journal gets a top-le
52
52
 
53
53
  You can include weather data automatically by setting a question type to 'weather'. In order for this to work, you'll need to define `zip` and `weather_api` keys. `zip` is just your zip code, and `weather_api` is a key from WeatherAPI.com. Sign up [here](https://www.weatherapi.com/) for a free plan, and then visit the [profile page](https://www.weatherapi.com/my/) to see your API key at the top.
54
54
 
55
+ You can optionally set the key `temp_in:` to `f` or `c` to control what scale is used for temperatures.
56
+
55
57
  If a question type is set to `weather.forecast`, only the predicted condition, high, and low will be included in the JSON data for the question. A full printout of hourly temps will be included in the Markdown/Day One output.
56
58
 
57
59
  If the question type is `weather.current`, only the current condition and temperature will be recorded to the JSON, and a string containing "[TEMP] and [CONDITION]" (e.g. "64 and Sunny") will be recorded to Markdown/Day One for the question.
@@ -138,6 +138,7 @@ module Journal
138
138
  case type
139
139
  when /^(weather|forecast|moon)/
140
140
  header prompt
141
+ puts type
141
142
  @output << case type
142
143
  when /current$/
143
144
  data[key].current
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Journal
4
- VERSION = '1.0.29'
4
+ VERSION = '1.0.30'
5
5
  end
data/src/_README.md CHANGED
@@ -55,6 +55,8 @@ This file contains a YAML definition of your journal. Each journal gets a top-le
55
55
 
56
56
  You can include weather data automatically by setting a question type to 'weather'. In order for this to work, you'll need to define `zip` and `weather_api` keys. `zip` is just your zip code, and `weather_api` is a key from WeatherAPI.com. Sign up [here](https://www.weatherapi.com/) for a free plan, and then visit the [profile page](https://www.weatherapi.com/my/) to see your API key at the top.
57
57
 
58
+ You can optionally set the key `temp_in:` to `f` or `c` to control what scale is used for temperatures.
59
+
58
60
  If a question type is set to `weather.forecast`, only the predicted condition, high, and low will be included in the JSON data for the question. A full printout of hourly temps will be included in the Markdown/Day One output.
59
61
 
60
62
  If the question type is `weather.current`, only the current condition and temperature will be recorded to the JSON, and a string containing "[TEMP] and [CONDITION]" (e.g. "64 and Sunny") will be recorded to Markdown/Day One for the question.
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.29
4
+ version: 1.0.30
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-10-01 00:00:00.000000000 Z
11
+ date: 2023-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-which