astropanel 1.1.1 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/astropanel.rb +12 -8
- metadata +28 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de36265a7563751277eb4ae92b7f6cb5e727cb489928a09d037ff08ca4ad1fb2
|
4
|
+
data.tar.gz: 674bf316b0db1244c3c4c31c1db8aaaa7860f3bbe465609773ae335fbdfde3aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de22296881b26d2cfe926a4b5fd03ddd09d20c9b9f4a2c62a47552c2f1e1c7b3d4bfbdf3bf29a539a07aa280d421a7359eedac0208d9da030c1903fc56aa90bc
|
7
|
+
data.tar.gz: b9a76973d84d72a24b126f24c27c580639bffd9c5e6b75158ede0e82923ef3fd23310d9c49e4cc376efe0d85c2aaafa22b88151ecd92fac1bf591092a6fb22fd
|
data/bin/astropanel.rb
CHANGED
@@ -542,8 +542,7 @@ def getchr # PROCESS KEY PRESSES
|
|
542
542
|
# Note: Curses.getch blanks out @w_t
|
543
543
|
# @w_l.getch makes Curses::KEY_DOWN etc not work
|
544
544
|
# Therefore resorting to the generic method
|
545
|
-
c = STDIN.
|
546
|
-
#c = STDIN.getch(min: 0, time: 5) # Non-blocking for future needs
|
545
|
+
c = STDIN.getch(min: 0, time: 1)
|
547
546
|
case c
|
548
547
|
when "\e" # ANSI escape sequences
|
549
548
|
case $stdin.getc
|
@@ -1110,6 +1109,7 @@ loop do # OUTER LOOP - (catching refreshes via 'r')
|
|
1110
1109
|
@w_l.update = true
|
1111
1110
|
@w_u.update = true
|
1112
1111
|
@w_d.update = true
|
1112
|
+
ix_change = true
|
1113
1113
|
loop do # INNER, CORE LOOP
|
1114
1114
|
@min_index = 0
|
1115
1115
|
@max_index = @weather.size - 1
|
@@ -1119,15 +1119,19 @@ loop do # OUTER LOOP - (catching refreshes via 'r')
|
|
1119
1119
|
w_b_info(nil) if @w_b.update
|
1120
1120
|
@w_b.update = true
|
1121
1121
|
# Left and right windows (browser & content viewer)
|
1122
|
-
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1122
|
+
if ix_change
|
1123
|
+
w_l_info
|
1124
|
+
begin
|
1125
|
+
w_u_info if @w_u.update
|
1126
|
+
rescue
|
1127
|
+
w_u_msg("== No info for past time ==")
|
1128
|
+
end
|
1127
1129
|
end
|
1128
1130
|
Curses.curs_set(1) # Clear residual cursor
|
1129
1131
|
Curses.curs_set(0) # ...from editing files
|
1130
|
-
|
1132
|
+
ix = @index
|
1133
|
+
main_getkey # Get key from user
|
1134
|
+
@index == ix ? ix_change = false : ix_change = true
|
1131
1135
|
@w_u.text = ""
|
1132
1136
|
if @w_d.update
|
1133
1137
|
image_show("clear")
|
metadata
CHANGED
@@ -1,19 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: astropanel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geir Isene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
12
|
-
dependencies:
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
date: 2021-11-19 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: curses
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.3.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.3.2
|
33
|
+
description: 'This program shows essential data in order to plan your observations:
|
34
|
+
9 days weather forecast, full ephemeris for the Sun, the Moon and all major planets,
|
35
|
+
complete with graphic representation of rise/set times, detailed info for each day
|
36
|
+
with important astronomical events, star chart displayed in the terminal and more.
|
37
|
+
New in 1.1.4: Less resources needed.'
|
17
38
|
email: g@isene.com
|
18
39
|
executables:
|
19
40
|
- astropanel.rb
|