git-fit 0.17.5 → 0.17.6
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/lib/git_fit/elevation/backfill.rb +7 -2
- data/lib/git_fit/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: 5015658feae71e9b2834dcabede734c6fd18ce3eb107574a88849a103b252cd0
|
|
4
|
+
data.tar.gz: 7d89ca6992b25f8d6319c1c0fbbe4afb23f32fb1ef8b9b56d8f705655c6924c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9cb00b5a74e1acdbd21d654e2d49efc1239f7456d986897da130f528743f168a8646b048f87f4c8888b586b0fcb18c99148aff8ecf0932163730883211ec408e
|
|
7
|
+
data.tar.gz: 0c29a0c7771f4207105f391e17b1880ded4ef418c373bcbee7238e44f4658ae09f15d4d691d9eabc5175132e33bb3e36445e5548d281eb6c819907e30ba84d2e
|
|
@@ -120,8 +120,13 @@ module GitFit
|
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
def compute_from_xingzhe(natural_id)
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
# New per-id directory: data/raw/xingzhe/{id}/stream.json (Phase 1, commit 661007e)
|
|
124
|
+
# Legacy flat: data/raw/xingzhe/{id}.json
|
|
125
|
+
raw_path = File.join('data', 'raw', 'xingzhe', natural_id, 'stream.json')
|
|
126
|
+
unless File.exist?(raw_path)
|
|
127
|
+
raw_path = File.join('data', 'raw', 'xingzhe', "#{natural_id}.json")
|
|
128
|
+
return nil unless File.exist?(raw_path)
|
|
129
|
+
end
|
|
125
130
|
|
|
126
131
|
raw = JSON.parse(File.read(raw_path))
|
|
127
132
|
alts = raw.dig('stream', 'altitude') || []
|
data/lib/git_fit/version.rb
CHANGED