ephem 0.3.0 → 0.3.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: 0d98544b09a63e12077c978a90723c8d92a42a41260217d3fc1b894b9ac78d2d
4
- data.tar.gz: 1504fa0469b9e1d680ca08021e422cc47e73a3de64cee1d4246467cc3d435730
3
+ metadata.gz: e8bc9fc6e66dd3aa9d61960cb3b28d43f4c90df7a70eedc1a6460f0dde73b25a
4
+ data.tar.gz: a39afb7d865bf976cff25c0839557c22c8aede2ba29bb9ce5b2fa4fef9c17aef
5
5
  SHA512:
6
- metadata.gz: 6641b30d6863c773ad164001bc8142a1c2534a1125e19fda9f6ca8077ea3e07ffaee51520bdfec60c1d9dc53f1f038b87d59dc1ebf3e5edd67692c63c447446b
7
- data.tar.gz: a669535384edab4b824628a508efb9becf7ad2b69b6b93bdc0753230ef3361f27e3927707b75b2cf010dd171001736d718db96614077470a498c642f84315fb5
6
+ metadata.gz: b832de3f8565111c21e55f8040fb7b8d337cce7d569ccd67a4499949176467bc7eff3f8fa27edabb5af07019637b2f93951cbddbe36ee91e7080b1c11a045144
7
+ data.tar.gz: 48a6ef091dd882b9c480e50146bb4038bce15af264ad1e6b8f52a27f21c3796a6c6500a3fe6ee0229d9d534a611daf80f25cd2c0fccf00ee67202699785e033b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.3.1] - 2025-05-16
4
+
5
+ ### Bug fixes
6
+
7
+ * Write downloaded ephemeris in binary mode by @trevorturk ([#31])
8
+
9
+ ### Improvements
10
+
11
+ * Bump standard from 1.49.0 to 1.50.0 by @dependabot ([#29])
12
+
13
+ ### New Contributors
14
+
15
+ * @trevorturk made their first contribution in [#31]
16
+
17
+ **Full Changelog**: https://github.com/rhannequin/ruby-ephem/compare/v0.3.0...v0.3.1
18
+
19
+ [#29]: https://github.com/rhannequin/ruby-ephem/pull/29
20
+ [#31]: https://github.com/rhannequin/ruby-ephem/pull/31
21
+
3
22
  ## [0.3.0] - 2025-04-30
4
23
 
5
24
  ## Features
@@ -102,7 +102,7 @@ module Ephem
102
102
 
103
103
  def call
104
104
  content = jpl_kernel? ? download_from_jpl : download_from_imcce
105
- File.write(@local_path, content)
105
+ File.binwrite(@local_path, content)
106
106
 
107
107
  true
108
108
  end
data/lib/ephem/excerpt.rb CHANGED
@@ -158,8 +158,8 @@ module Ephem
158
158
  end
159
159
 
160
160
  # Calculate which portion of the data to extract based on the date range
161
- i = clip(0, n, ((start_seconds - init) / intlen)).to_i
162
- j = clip(0, n, ((end_seconds - init) / intlen + 1)).to_i
161
+ i = clip(0, n, (start_seconds - init) / intlen).to_i
162
+ j = clip(0, n, (end_seconds - init) / intlen + 1).to_i
163
163
 
164
164
  puts " Date range: i=#{i}, j=#{j} out of n=#{n}" if debug
165
165
 
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.3.0"
4
+ VERSION = "0.3.1"
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.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rémy Hannequin