git-fit 0.15.4 → 0.15.5
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/sync/garmin_base.rb +4 -1
- 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: 459d9e20dce8221f1d53d34ca28490f8a99beb0f35a8410e4c262ac9dadb9ee4
|
|
4
|
+
data.tar.gz: e713beede60e99dd8b58f6d5807d42b85a44d68a77ca8c465b2c8191176a9f10
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d74558356976123be885e7366105af683de687705c45a90842aa5de2c647afdbf9e57641ddb440a700f681ba7c181bdbfc31a0422ff43365da40bb44fca0c771
|
|
7
|
+
data.tar.gz: 1fac1e3ee9a957fb5f3b19127bb01404f31045d8a3ff2833000ce9e626ff5911443730541efb52523ad3c3d8bd5db4c86b8bfad8b92f2566d337ae6576ec994b
|
|
@@ -720,7 +720,10 @@ module GitFit
|
|
|
720
720
|
gps = api_get("/activity-service/activity/#{activity_id}/details")
|
|
721
721
|
return nil unless gps
|
|
722
722
|
polyline_data = gps['geoPolylineDTO']
|
|
723
|
-
|
|
723
|
+
unless polyline_data
|
|
724
|
+
write_raw_file({ 'empty' => true, 'polyline' => nil }, 'polyline.json', activity_id)
|
|
725
|
+
return nil
|
|
726
|
+
end
|
|
724
727
|
write_raw_file(polyline_data, 'polyline.json', activity_id)
|
|
725
728
|
encode_polyline(polyline_data, activity_id)
|
|
726
729
|
end
|
data/lib/git_fit/version.rb
CHANGED