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 +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/ephem/download.rb +3 -3
- data/lib/ephem/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: 9a1b6b5dcfeb309ee100b72b1574272ccdcb43f6da677e898329bafef18b01e5
|
|
4
|
+
data.tar.gz: 73c793176e924ed574b7bcc2416e8fa2ca3f59d23065947cfea0a0d7f44f00af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/ephem/download.rb
CHANGED
|
@@ -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