ephem 0.5.1 → 0.5.2

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: 7d73289c3e0cfb6ad800b9c2af244185312811fa7b5ea63dc30c582da5f4ae7b
4
- data.tar.gz: f24bc11328aac562da963675d3226e9d28747757404299b8756ffab601e22e10
3
+ metadata.gz: 9a1b6b5dcfeb309ee100b72b1574272ccdcb43f6da677e898329bafef18b01e5
4
+ data.tar.gz: 73c793176e924ed574b7bcc2416e8fa2ca3f59d23065947cfea0a0d7f44f00af
5
5
  SHA512:
6
- metadata.gz: a29be8a6fd73f95139d0121812913801edc7a108d481cdcae010a775056cffd76d0b9cc57f1f816fd29f3db7cd56d5e2ffb6fd0ebca2ddf8fdea55d383f5aa80
7
- data.tar.gz: f6d84d22be037c7c0822b8e2bfaea1c2dc2b6d9483354fa4a2b38d22bd0819d95ebdcd80fa4f949b1a92159a78c419a60963f08f344cbf3ada53763935727646
6
+ metadata.gz: 89ed4b8ecd23ec67e52147438807fdc7f77b7db56eaaf10df9f5362e22d84c52f3867b4667486d43dbdc3bd02d20acb0028ecfb9e2300d4e39178999cbdf14b8
7
+ data.tar.gz: d4c843eec8a47fa4b95f2453f54d1ce1f3c085300fe531b28830f4d42541e45c4597dcd859c2300b32c39b4792259303d40e651256b0bcdcbb7c708e5a9e6012
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.2] - 2026-11-24
4
+
5
+ ### Bug fixes
6
+
7
+ - `Ephem::Download` no longer fails on IMCCE kernels when
8
+ `Encoding.default_internal` is set, as it is in Rails apps ([#91], [#92])
9
+
10
+ [#91]: https://github.com/rhannequin/ruby-ephem/issues/91
11
+ [#92]: https://github.com/rhannequin/ruby-ephem/pull/92
12
+
13
+ **Full Changelog**: https://github.com/rhannequin/ruby-ephem/compare/v0.5.1...v0.5.2
14
+
3
15
  ## [0.5.1] - 2026-11-24
4
16
 
5
17
  ### Improvements
@@ -121,10 +121,10 @@ module Ephem
121
121
  def write_atomically
122
122
  partial_file = Tempfile.create(
123
123
  [".#{@target_path.basename}", ".part"],
124
- @target_path.dirname.to_s
124
+ @target_path.dirname.to_s,
125
+ binmode: true
125
126
  )
126
127
  begin
127
- partial_file.binmode
128
128
  yield partial_file
129
129
  partial_file.close
130
130
  File.chmod(0o666 & ~File.umask, partial_file.path)
@@ -168,7 +168,7 @@ module Ephem
168
168
  require "rubygems/package"
169
169
 
170
170
  tar_gz_uri = URI.join(IMCCE_BASE_URL, IMCCE_KERNELS_MATCHING[@name])
171
- Tempfile.create(%w[archive .tar.gz]) do |temp_file|
171
+ Tempfile.create(%w[archive .tar.gz], binmode: true) do |temp_file|
172
172
  stream_http_to_file(tar_gz_uri, temp_file)
173
173
  temp_file.flush
174
174
  temp_file.rewind
data/lib/ephem/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ephem
4
- VERSION = "0.5.1"
4
+ VERSION = "0.5.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ephem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémy Hannequin