astronoby 0.11.0 → 0.11.1

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: 1093c9a0d077cfa9c2a9fcf60e2af2a21ec4c1f74c268ef22dca8e93b5badadb
4
- data.tar.gz: e12ccfad49e7a63821cde3b382e8584efdff3c0c06a42ffddf60119ad213b2f5
3
+ metadata.gz: ad9c9bd7a2b518f7ac3429fa7836b5c34f459c8907c2057bd0d63165648ef017
4
+ data.tar.gz: ccb5c59b9b830a8eeb5b6880a2f00da2dc5cf634d272b87edff6dad603e0f331
5
5
  SHA512:
6
- metadata.gz: cc73661c433669d3b9efcd816088513a031d7c8c609844988e0ecabed36959e9a361d15d8cbd87905f83bfcb3685640dbad1a7862d624a6895b0b78fe0aa54f7
7
- data.tar.gz: 7c544cd27042ec8436d2c11a9f27c6269e039256dadb1ba80a62dac6b3140669420c336df950077aa6a54786158f5c2f3b91744b3cacf67de2003db686ffca37
6
+ metadata.gz: b487bd81b65c1ab8606b8a623283a079d4f2fbcc961f1c1b945e5047e081a20a7a95fb4b6888d0fec2c8687612ca3301148105eec3be19c4da459a88a08eeb74
7
+ data.tar.gz: 782717b15239216c27b5b9a24b177815aabe9622fa23309fb7fe8ad05fb4088fe5a98bd21fb26b3035724fb9771357bdc314a81bbb6b655817ad7ad3d5bd8a85
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 4.0.5
1
+ 4.0.10
data/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.1 - 2026-11-24
4
+
5
+ _If you are upgrading: please see [UPGRADING.md]._
6
+
7
+ ### Improvements
8
+
9
+ * Raise the minimum `ephem` version from 0.5.0 to 0.5.1, which drops its
10
+ `minitar` dependency. `bundle audit` reports GHSA-r6vf-943r-2wvw against
11
+ every `minitar` release Astronoby could resolve, a path traversal when
12
+ extracting a crafted tarball on Windows. Astronoby was not exposed, since
13
+ `ephem` only read one known entry from IMCCE archives and wrote it to the
14
+ target path, but applications depending on Astronoby no longer get the
15
+ warning ([#325])
16
+ * `Astronoby::Ephem.download` and `Astronoby::Orientation.download` now raise
17
+ `Ephem::DownloadError` when the server answers with an error, instead of
18
+ saving the error page as the kernel, and a failed download no longer leaves
19
+ a partial file behind or replaces an existing one ([#325])
20
+ * Use the lockfile's Bundler in CI ([#326])
21
+ * Add recent Ruby patch releases to CI ([#327])
22
+
23
+ [#325]: https://github.com/rhannequin/astronoby/pull/325
24
+ [#326]: https://github.com/rhannequin/astronoby/pull/326
25
+ [#327]: https://github.com/rhannequin/astronoby/pull/327
26
+ [UPGRADING.md]: https://github.com/rhannequin/astronoby/blob/main/UPGRADING.md
27
+
3
28
  ## 0.11.0 - 2026-10-31
4
29
 
5
30
  _If you are upgrading: please see [UPGRADING.md]._
data/UPGRADING.md CHANGED
@@ -7,6 +7,19 @@ changes to it as long as a major version has not been released.
7
7
  If you are already using Astronoby and wish to follow the changes to its
8
8
  public API, please read the upgrading notes for each release.
9
9
 
10
+ ## Upgrading from 0.11.0 to 0.11.1
11
+
12
+ ### Downloads raise on failure
13
+
14
+ `Astronoby::Ephem.download` and `Astronoby::Orientation.download` now raise
15
+ `::Ephem::DownloadError` when the server answers with an error or an IMCCE
16
+ archive does not contain the requested kernel. They used to return `true`
17
+ either way: after saving the error page in place of the kernel, which only
18
+ failed later when loading the file, or without writing anything when the
19
+ archive lacked the kernel. If you download kernels at runtime, rescue
20
+ `::Ephem::DownloadError` where you handle other download failures. The leading
21
+ `::` matters inside `module Astronoby`, where `Ephem` is `Astronoby::Ephem`.
22
+
10
23
  ## Upgrading from 0.10.0 to 0.11.0
11
24
 
12
25
  ### Lunar eclipse contacts and magnitudes have changed slightly
@@ -9,7 +9,9 @@ module Astronoby
9
9
  # @param name [String] Name of the ephemeris file, supported by the Ephem
10
10
  # gem
11
11
  # @param target [String] Location where to store the file
12
- # @return [Boolean] true if the download was successful, false otherwise
12
+ # @return [Boolean] true once the file is written
13
+ # @raise [::Ephem::DownloadError] if the server answers with an error or
14
+ # the archive does not contain the file
13
15
  #
14
16
  # @example Downloading de440t SPK from NASA JPL
15
17
  # Astronoby::Ephem.download(name: "de440t.bsp", target: "tmp/de440t.bsp")
@@ -30,7 +30,8 @@ module Astronoby
30
30
  #
31
31
  # @param name [String] kernel name supported by the Ephem gem
32
32
  # @param target [String] destination path
33
- # @return [Boolean] true if the download was successful
33
+ # @return [Boolean] true once the file is written
34
+ # @raise [::Ephem::DownloadError] if the server answers with an error
34
35
  def self.download(name:, target:)
35
36
  ::Ephem::Download.call(name: name, target: target)
36
37
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Astronoby
4
- VERSION = "0.11.0"
4
+ VERSION = "0.11.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astronoby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémy Hannequin
@@ -16,6 +16,9 @@ dependencies:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
18
  version: '0.5'
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 0.5.1
19
22
  type: :runtime
20
23
  prerelease: false
21
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -23,6 +26,9 @@ dependencies:
23
26
  - - "~>"
24
27
  - !ruby/object:Gem::Version
25
28
  version: '0.5'
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 0.5.1
26
32
  - !ruby/object:Gem::Dependency
27
33
  name: horologium
28
34
  requirement: !ruby/object:Gem::Requirement
@@ -343,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
343
349
  - !ruby/object:Gem::Version
344
350
  version: '0'
345
351
  requirements: []
346
- rubygems_version: 4.0.10
352
+ rubygems_version: 4.0.20
347
353
  specification_version: 4
348
354
  summary: Astronomical calculations
349
355
  test_files: []