korba 0.3.0 → 0.4.0
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/CHANGELOG.md +4 -0
- data/lib/korba/tle.rb +2 -1
- data/lib/korba/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e02130eb6662759d8869d606d53c5d7ecc64c26ed59a5605487fdf5e8d785f01
|
4
|
+
data.tar.gz: 90d8fe4257842deffd1f45ca5fab34013f9decb275ff03f9d59c369f3182e11e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95b4ade626d6622599c3d7e6b533db46a49b820c81cdbc3a8f57838901220950dfdb2643de622d8a414c63a4a24fa15831a8dc489c821ec15c1d10335a929d6c
|
7
|
+
data.tar.gz: 84b650670d1d10fc81b0cd9e9b5005a2dba965bb119df8913a7e38d0997b0c0f31f53ba105d9c3d13198ae4b768df5c7f23b5eb8e3d4694ea86bc7bf0b3e1ff6
|
data/CHANGELOG.md
CHANGED
data/lib/korba/tle.rb
CHANGED
@@ -5,7 +5,7 @@ module Korba
|
|
5
5
|
class Tle
|
6
6
|
include Korba::OrbitUtils
|
7
7
|
|
8
|
-
attr_reader :tle_json, :object_name, :object_id, :epoch, :mean_motion, :eccentricity, :inclination, :ra_of_asc_node, :arg_of_pericenter, :mean_anomaly
|
8
|
+
attr_reader :tle_json, :tle_string, :object_name, :object_id, :epoch, :mean_motion, :eccentricity, :inclination, :ra_of_asc_node, :arg_of_pericenter, :mean_anomaly
|
9
9
|
|
10
10
|
def initialize(tle = nil, type: :string)
|
11
11
|
return if tle.nil?
|
@@ -32,6 +32,7 @@ module Korba
|
|
32
32
|
private
|
33
33
|
|
34
34
|
def initialize_from_string(tle_string)
|
35
|
+
@tle_string = tle_string
|
35
36
|
lines = tle_string.split(/\R/)
|
36
37
|
@object_name = lines.shift if lines.size > 2
|
37
38
|
parse_line1(lines[0].split(" "))
|
data/lib/korba/version.rb
CHANGED