telescope-term 0.6.3 → 0.7

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/telescope +18 -18
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08f50f6b936107d17a1c1181fb29d4aab316d02a3fbb490cdef209c0ec600a3f'
4
- data.tar.gz: ede84387b11c5686d133358555ae9619db1f4ae631266026cdf69673d3d76840
3
+ metadata.gz: 408d3c474e9618022c328cdf98a68d2c0d1922951ab422229158ed8ca882d022
4
+ data.tar.gz: 84f8679e4d86425f948c0a314ab5e7a8bedef62af0c170dafe3370d3f0317551
5
5
  SHA512:
6
- metadata.gz: 25cf97357a8747e8b3aeb503bfc47f3d0c55486ae3047e60b6358d42aad3c1f6228ffeecbec88fba0453ef933230cc09d6c3996f15d544fba424ea0bdd5a6cfb
7
- data.tar.gz: 9bd51eba4c76fa984958cf4d146123fd217193c173d29ab703894ef54123dc40fd832d7a09652f991a164e02b7fce7c9cd2ff1f3f3d8e2eea3b54f0dfe3ddb4e
6
+ metadata.gz: 3f0150614eeb44975ea19fd3bd61a7caf43349f5d9c7de50e6d174780c589926476ad77408cfa1cb9a4ae873dcd832994a18725b252a7aee4b5f2f575a5ba5d7
7
+ data.tar.gz: 3ed63758d445eeaf494c14ebdc13543c1c2060a798230f7b16e55101beb7c777187e29c8c0e17e3e5a0ddeefb3cc3d0ca4688b98b375fe1faecb9e7e67635cec
data/bin/telescope CHANGED
@@ -437,34 +437,34 @@ def w_ts_show
437
437
  attr = attr | Curses::A_UNDERLINE if @tstag.include?(i)
438
438
  @w_ts.pa(254, 0, attr, out) # Basic info (Name, APP, FL)
439
439
  out = (f.to_f/d.to_f).truncate(1).to_s.rjust(6)
440
- @w_ts.pa(254, 0, 0, out) # F/?
440
+ @w_ts.pa(254, 0, attr, out) # F/?
441
441
  out = (5 * Math::log(d/10, 10) + 7.5).truncate(1).to_s.rjust(6)
442
- @w_ts.pa(229, 0, 0, out) # <MAG
442
+ @w_ts.pa(229, 0, attr, out) # <MAG
443
443
  out = (d**2/49).to_i.to_s.rjust(6)
444
- @w_ts.pa(229, 0, 0, out) # xEYE
444
+ @w_ts.pa(229, 0, attr, out) # xEYE
445
445
  out = magx(d, f, 1/7.to_f)
446
- @w_ts.pa(157, 0, 0, out) # MINx
446
+ @w_ts.pa(157, 0, attr, out) # MINx
447
447
  out = magx(d, f, 2)
448
- @w_ts.pa(157, 0, 0, out) # MAXx
448
+ @w_ts.pa(157, 0, attr, out) # MAXx
449
449
  out = magx(d, f, 1/6.4)
450
- @w_ts.pa(195, 0, 0, out) # *FIELD
450
+ @w_ts.pa(195, 0, attr, out) # *FIELD
451
451
  out = magx(d, f, 1/3.6)
452
- @w_ts.pa(195, 0, 0, out) # GX/NEB
452
+ @w_ts.pa(195, 0, attr, out) # GX/NEB
453
453
  out = magx(d, f, 1/2.1)
454
- @w_ts.pa(195, 0, 0, out) # PL/GCL
454
+ @w_ts.pa(195, 0, attr, out) # PL/GCL
455
455
  out = magx(d, f, 1/1.3)
456
- @w_ts.pa(195, 0, 0, out) # PLd/2*
456
+ @w_ts.pa(195, 0, attr, out) # PLd/2*
457
457
  out = magx(d, f, 1/0.7)
458
- @w_ts.pa(195, 0, 0, out) # TGHT2*
458
+ @w_ts.pa(195, 0, attr, out) # TGHT2*
459
459
  out = (115.824/d).truncate(2).dec2.to_s.rjust(7)
460
- @w_ts.pa(219, 0, 0, out) # DL-SEP
460
+ @w_ts.pa(219, 0, attr, out) # DL-SEP
461
461
  out = (3600*Math::asin(671E-6/d).rad).truncate(2).dec2.to_s.rjust(8)
462
- @w_ts.pa(219, 0, 0, out) # RC-SEP
462
+ @w_ts.pa(219, 0, attr, out) # RC-SEP
463
463
  moon = (384E6*Math::tan((115.824.deg/d)/3600))
464
464
  out = moon.to_i.to_s.rjust(6) + "m"
465
- @w_ts.pa(225, 0, 0, out) # MOON
465
+ @w_ts.pa(225, 0, attr, out) # MOON
466
466
  out = (moon/2.5668).to_i.to_s.rjust(5) + "km"
467
- @w_ts.pa(225, 0, 0, out) # SUN
467
+ @w_ts.pa(225, 0, attr, out) # SUN
468
468
  @w_ts.p("\n")
469
469
  end
470
470
  @w_ts.clr_from_cur_line
@@ -509,9 +509,9 @@ def w_ep_show
509
509
  d = scope[1]
510
510
  f = scope[2]
511
511
  mag = (f.to_f/m)
512
- @w_ep.pa(254, 0, 0, " │")
512
+ @w_ep.pa(254, 0, attr, " │")
513
513
  out = mag.truncate(1).to_s.rjust(6)
514
- @w_ep.pa(156, 0, 0, out)
514
+ @w_ep.pa(156, 0, attr, out)
515
515
  fov = a/mag
516
516
  deg = fov.to_i
517
517
  mins = ((fov - fov.to_i) * 60)
@@ -521,9 +521,9 @@ def w_ep_show
521
521
  mno = min.to_s.rjust(2, " ") + "'"
522
522
  sco = sec.to_s.rjust(2, " ") + "\""
523
523
  out = (dgo + mno + sco).rjust(10)
524
- @w_ep.pa(222, 0, 0, out)
524
+ @w_ep.pa(222, 0, attr, out)
525
525
  out = (d/mag).truncate(1).to_s.rjust(6)
526
- @w_ep.pa(209, 0, 0, out)
526
+ @w_ep.pa(209, 0, attr, out)
527
527
  end
528
528
  @w_ep.p("\n")
529
529
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telescope-term
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: '0.7'
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-11-19 00:00:00.000000000 Z
11
+ date: 2022-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curses
@@ -33,8 +33,8 @@ dependencies:
33
33
  description: 'With this program you can list your telescopes and eyepieces and get
34
34
  a set of calculations done for each scope and for the combination of scope and eyepiece.
35
35
  Easy interface. Run the program, then hit ''?'' to show the help file. New in v0.6.0:
36
- Added sorting of telescopes (via ''T'') and eyepieces (''E''). New in 1.6.3: Less
37
- resources needed.'
36
+ Added sorting of telescopes (via ''T'') and eyepieces (''E''). New in 1.7: Highlighted
37
+ all of current selection for better readability.'
38
38
  email: g@isene.com
39
39
  executables:
40
40
  - telescope