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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b7470c62a2e8df7ed79ca869272a846fad21bed8794ee2b25deff5448cbfb85
4
- data.tar.gz: ee043f86462fe065c95245706174aae8945347d91aba211d3fc7f988975c25a3
3
+ metadata.gz: e02130eb6662759d8869d606d53c5d7ecc64c26ed59a5605487fdf5e8d785f01
4
+ data.tar.gz: 90d8fe4257842deffd1f45ca5fab34013f9decb275ff03f9d59c369f3182e11e
5
5
  SHA512:
6
- metadata.gz: '0529630074005be970a0cc52aaa583e357cd856daafbcda8d0db1e074a8f5bbd0ab810edc25e721c6fd5b5b6ba2b97bf398e472d4a0ed77b03a465d40ec4d75d'
7
- data.tar.gz: ffda7bb7e72c728ba5e7ef4199d5c00cc8b5102c19fb9af9976c95d7b64158e6f4514d3ea289c32225460bfc91481344b98caab4c34016567af0d7d978a8de23
6
+ metadata.gz: 95b4ade626d6622599c3d7e6b533db46a49b820c81cdbc3a8f57838901220950dfdb2643de622d8a414c63a4a24fa15831a8dc489c821ec15c1d10335a929d6c
7
+ data.tar.gz: 84b650670d1d10fc81b0cd9e9b5005a2dba965bb119df8913a7e38d0997b0c0f31f53ba105d9c3d13198ae4b768df5c7f23b5eb8e3d4694ea86bc7bf0b3e1ff6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [0.4.0] - 2024-12-09
2
+
3
+ - Enable save tle_string
4
+
1
5
  ## [0.3.0] - 2024-12-09
2
6
 
3
7
  - Enable instance creation without arguments
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Korba
4
- VERSION = "0.3.0"
4
+ VERSION = "0.4.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: korba
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kk0000-kk