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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f6886c3420b0d964a5b827baa6614d50ff6365bddb2e79ab6ab3e2a914c1566
4
- data.tar.gz: 6ef5678bf64437ab38e9c59a7e5d0967813640f81ad353235ddc787191c3c9c3
3
+ metadata.gz: 459d9e20dce8221f1d53d34ca28490f8a99beb0f35a8410e4c262ac9dadb9ee4
4
+ data.tar.gz: e713beede60e99dd8b58f6d5807d42b85a44d68a77ca8c465b2c8191176a9f10
5
5
  SHA512:
6
- metadata.gz: 22cec3f9b63ad0fc26baed7d6992653631b0af58a0cf6e155f9623f7150dc2ee1ee5991ed1668e553399a686be57d3fdb487236623092257e1621346e10b610e
7
- data.tar.gz: 75e18561d4d2fea9398fe74ed4389e791e8252a48c58eb5db1146779a33d867645179e716a2a265c62a403d385ea13e9db737780b87c8c500789f9c186826929
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
- return nil unless polyline_data
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitFit
4
- VERSION = '0.15.4'
4
+ VERSION = '0.15.5'
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.15.4
4
+ version: 0.15.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lax