astropanel 1.1 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/astropanel.rb +13 -8
  3. metadata +30 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78a081062ae991ded72d65794dc8340be72f020550c3a1d3e3b9390e82746884
4
- data.tar.gz: '0119adc663554bfb4ded3b959452cb761cf3b5ad2026986f3288114036414fce'
3
+ metadata.gz: c47f134b937b613504dd72c7b66db713dd46fdea3872df75cf6925dd7f7f4220
4
+ data.tar.gz: 7dc24b7a095e0b02d1c6c769c57736e3eb46a8b0e1e9b426a22242a757b8b545
5
5
  SHA512:
6
- metadata.gz: 7695e2b8d7c85516fa257ac8b395832cdd6690872eac9e49f83f0d16f6275fba5311fd83a9104a99fb2b9c8d6290b6dc2be4590483e3d9b8488f3f26ca6abeb2
7
- data.tar.gz: ca344667613ddf52a8798e19a7c6e2bafc02788d43714434cc6137076888051ac844b291e7284514f8b5dc2e3ce50e22725ef16791e3de71549e580290082c7d
6
+ metadata.gz: 7cb7dea46293198f6cffc6200198d1730cf8a24e8cb863416b4eb1e5114f8a8c72a4da5ffa87191ad579395c2a8228bcac6111c83dc83f974d289acace680862
7
+ data.tar.gz: b4e59e79208859c5762d62e12d6c7a5ecba3b1948a9d1799aaf3726e5d3c151d75a9f7ca722bb205a6afdf38da0c76f17a05c00bc85c7d648f2b6e90568e2c87
data/bin/astropanel.rb CHANGED
@@ -542,8 +542,8 @@ 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.getc
546
+ c = STDIN.getch(min: 0, time: 0.1) # Non-blocking for future needs
547
547
  case c
548
548
  when "\e" # ANSI escape sequences
549
549
  case $stdin.getc
@@ -1110,6 +1110,7 @@ loop do # OUTER LOOP - (catching refreshes via 'r')
1110
1110
  @w_l.update = true
1111
1111
  @w_u.update = true
1112
1112
  @w_d.update = true
1113
+ ix_change = true
1113
1114
  loop do # INNER, CORE LOOP
1114
1115
  @min_index = 0
1115
1116
  @max_index = @weather.size - 1
@@ -1119,15 +1120,19 @@ loop do # OUTER LOOP - (catching refreshes via 'r')
1119
1120
  w_b_info(nil) if @w_b.update
1120
1121
  @w_b.update = true
1121
1122
  # 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 ==")
1123
+ if ix_change
1124
+ w_l_info
1125
+ begin
1126
+ w_u_info if @w_u.update
1127
+ rescue
1128
+ w_u_msg("== No info for past time ==")
1129
+ end
1127
1130
  end
1128
1131
  Curses.curs_set(1) # Clear residual cursor
1129
1132
  Curses.curs_set(0) # ...from editing files
1130
- main_getkey # Get key from user
1133
+ ix = @index
1134
+ main_getkey # Get key from user
1135
+ @index == ix ? ix_change = false : ix_change = true
1131
1136
  @w_u.text = ""
1132
1137
  if @w_d.update
1133
1138
  image_show("clear")
metadata CHANGED
@@ -1,21 +1,43 @@
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.4
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-23 00:00:00.000000000 Z
12
- dependencies: []
13
- description: 'This program gives you essential data to plan your observations: 9 days
14
- weatheer forecast, full ephemeris for Sun, Moon and all major planets with graphic
15
- representation of rise/set times, detailed info for each day with important astronomical
16
- events, star chart displayed in the terminal and more.'
11
+ date: 2021-11-18 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: Made astropanel responsive to terminal size changes.'
17
38
  email: g@isene.com
18
- executables: []
39
+ executables:
40
+ - astropanel.rb
19
41
  extensions: []
20
42
  extra_rdoc_files: []
21
43
  files: