astropanel 1.1.2 → 1.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf92ab0a28191711c283a2de47cab5e7e161ef98857505339ab3d373c29065b2
4
- data.tar.gz: 000d4be868ebd873539689f298d762b867c33878833308613eab8781f3424057
3
+ metadata.gz: 6591cdec5082235e5fccfdefbc533df487fa4fda0b3d2c0a7218a813961f23a8
4
+ data.tar.gz: 74cd1353b471afc5a150270ded607107465f72565d3b260d755a51e22f9451d3
5
5
  SHA512:
6
- metadata.gz: 9f9d6d1aaada74d91c95e77a3a8a361b4ab264e938bc5491bf40343a5bd93ea6fa6f04dd1882d460fe0775e03d331ecf49f7f85dd90d80b65f70181b68c22377
7
- data.tar.gz: 6b7481a76a2651856c10d01ca8711d4cc5205f8ddf9f9dead0d0020ce109dd610f4b4dcf0968f56d9fc92ff4fc4032db85140bec760bc15736d5b56c2d78b1be
6
+ metadata.gz: 79fe543ae189d2521ba6a4a267c7d0fcc9507a63e2fd9821b739f89a82bc53bcf0d2fbe8ba7f956d28c35d436ee479d1b011f8a612e25e697f2d4d0987af1768
7
+ data.tar.gz: 93c13622e47e7fb68180d509fbc95d6e1b510c03c898cc3d12524057a88126c387fdecdd69484c71b4a486eb935080f19a50c9a5bdbc1a13a193ae4cf3242c80
@@ -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.getc
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
- w_l_info
1123
- begin
1124
- w_u_info if @w_u.update
1125
- rescue
1126
- w_u_msg("== No info for past time ==")
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
- main_getkey # Get key from user
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astropanel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.6
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-09-24 00:00:00.000000000 Z
11
+ date: 2021-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -30,17 +30,18 @@ dependencies:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: 1.3.2
33
- description: 'This program gives you essential data to plan your observations: 9 days
34
- weatheer forecast, full ephemeris for Sun, Moon and all major planets with graphic
35
- representation of rise/set times, detailed info for each day with important astronomical
36
- events, star chart displayed in the terminal and more.'
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.6: Dropped the ''.rb'' suffix'
37
38
  email: g@isene.com
38
39
  executables:
39
- - astropanel.rb
40
+ - astropanel
40
41
  extensions: []
41
42
  extra_rdoc_files: []
42
43
  files:
43
- - bin/astropanel.rb
44
+ - bin/astropanel
44
45
  homepage: https://isene.com/
45
46
  licenses:
46
47
  - Unlicense