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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7e56c52b84377fa13e79c341ee252e84ce3664a448de70ceb690609c55f6d659
4
- data.tar.gz: 5eee032b2293d18b5775a1250b15c723f794c02aedf27b0198d975c5fd1f27d5
3
+ metadata.gz: 5015658feae71e9b2834dcabede734c6fd18ce3eb107574a88849a103b252cd0
4
+ data.tar.gz: 7d89ca6992b25f8d6319c1c0fbbe4afb23f32fb1ef8b9b56d8f705655c6924c0
5
5
  SHA512:
6
- metadata.gz: ba9969a0f3a82a4b255e41e41739cafd75554a1a36e499322610d50cd0fba75ebec6e46a8936418ca58dcd4763e167f72467036b4ff778d6f92a142d53ba6e7b
7
- data.tar.gz: 470017ec4828dcae793778c26732234b9c27b6aeac561d774a152734adc2a2ab27cc362feb586b40862cc7ddb45c16924026ae3ac99c181ed20d7b3b5b3f2fa3
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
- raw_path = File.join('data', 'raw', 'xingzhe', "#{natural_id}.json")
124
- return nil unless File.exist?(raw_path)
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') || []
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitFit
4
- VERSION = '0.17.5'
4
+ VERSION = '0.17.6'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.5
4
+ version: 0.17.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax