strava-ruby-client 3.0.0.pre.1 → 3.0.0

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: 853c9b6f6a2956a00884c62f9ee3e6a91cde864d357623edd92642c32569bcdf
4
- data.tar.gz: b2472b823d7204f5cfe735675e2cf29e543c9ca6ecf277c242fb2b84fbed4103
3
+ metadata.gz: ac773d592190518ab62b3e5d9065493c6809bc5013e04a7fb93a659d040776ca
4
+ data.tar.gz: 19b6778e3e80bde45c38b67ce40296788d9a347dc90728a2c75f0a1cc7a85f2b
5
5
  SHA512:
6
- metadata.gz: b03e4cd64e82466eab1d7691ce6f4108d81b5e88f192aaaec611a8d419df31f3d088c11eebc18c3fb4f39c70147b3aae38d3aab8c4419e5ac812774ed02e5bd1
7
- data.tar.gz: 8b7d71b869998eaaf43b23f6e6ef673eec7efd50d610d8af3d184d7abf340ff63fb648d8ba73a822b859620e2e3acc72b0e535a2046b0e44b49de136387272ea
6
+ metadata.gz: 5103a4e4c8cf34590ce701ab6cdc2586e4869f4b72e5dce68c8270c2c54e2beacaed12dcbfee5f9640e8b88b8ee2e9acca5342e1d45b07103f4daa82273d1f57
7
+ data.tar.gz: e33ff02a4ce9fc464a647778c4c724f71574838d5a3d81a961f87dea8da545de5dd980cb78c1a301bf179bc92b521f9f2183af8b2dbf97f5718afb335c1adda9
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ### 3.0.0 (Next)
1
+ ### 3.0.0 (2025/10/24)
2
2
 
3
3
  * [#96](https://github.com/dblock/strava-ruby-client/pull/96): Updates and refactors models to spec - [@dblock](https://github.com/dblock).
4
4
  * [#98](https://github.com/dblock/strava-ruby-client/pull/98): Changes all `latlng` properties to return an instance of `Strava::Models::LatLng` - [@dblock](https://github.com/dblock).
@@ -8,7 +8,6 @@
8
8
  * [#92](https://github.com/dblock/strava-ruby-client/pull/92): Fixes `Hashie::Trash` serialization warning for `object_id` of `Strava::Webhooks::Models::Event` - [@simonneutert](https://github.com/simonneutert).
9
9
  * [#95](https://github.com/dblock/strava-ruby-client/pull/95): Fixes `club_events` returning `Strava::Models::ClubEvent` with an empty string in `created_at` - [@dblock](https://github.com/dblock).
10
10
  * [#93](https://github.com/dblock/strava-ruby-client/pull/93): Updates GitHub Actions workflows - [@simonneutert](https://github.com/simonneutert).
11
- * Your contribution here.
12
11
 
13
12
  ### 2.3.0 (2025/10/16)
14
13
 
data/README.md CHANGED
@@ -508,13 +508,18 @@ gpx.tracks # => Array[GPX::Track]
508
508
 
509
509
  #### Export Route TCX
510
510
 
511
- Returns a [Training Center XML](https://en.wikipedia.org/wiki/Training_Center_XML) (TCX) data of the route. Combine with [multi_xml](https://github.com/sferik/multi_xml) to parse it.
511
+ Returns a [Training Center XML](https://en.wikipedia.org/wiki/Training_Center_XML) (TCX) data of the route. Combine with [multi_xml](https://github.com/sferik/multi_xml) or [tcx](https://github.com/dblock/tcx) to parse it.
512
512
 
513
513
  ```ruby
514
514
  data = client.export_route_tcx(16341573) # => String
515
515
 
516
516
  require 'multi_xml'
517
517
  xml = MultiXml.parse(data) # => parsed TCX
518
+
519
+ require 'tcx'
520
+ tcx = Tcx.load(data) # => Tcx::Database
521
+
522
+ tcx.courses.first.name # => 'Lower Manhattan'
518
523
  ```
519
524
 
520
525
  #### Get Route
@@ -38,6 +38,19 @@ module Strava
38
38
  @latlng
39
39
  end
40
40
 
41
+ alias to_h to_a
42
+ alias as_json to_a
43
+
44
+ def to_json(*args)
45
+ as_json.to_json(args)
46
+ end
47
+
48
+ def inspect
49
+ @latlng.inspect
50
+ end
51
+
52
+ alias to_s inspect
53
+
41
54
  def initialize(latlng = nil)
42
55
  @latlng = latlng
43
56
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strava
4
- VERSION = '3.0.0.pre.1'
4
+ VERSION = '3.0.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strava-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.pre.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Doubrovkine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-20 00:00:00.000000000 Z
11
+ date: 2025-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport