strava-ruby-client 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5e44d1ea369bd76dcb67ad565ca9fcec2d08ec9b23d36fc4fa0adb7778e1369
4
- data.tar.gz: 3ac1ef728ebab982443e70ed8952bbd4c23f9e4e1b1669a05aca7382e600c98e
3
+ metadata.gz: 2583980553406730410bd2207010190c47b7a36d4fea785390138eb3a27da767
4
+ data.tar.gz: 544a48791a8fcb1b6bb7b8b80c6b745720013bec3e8d15788c0fff5a42366d96
5
5
  SHA512:
6
- metadata.gz: 5ca82022fa51f2b3426b86fc3479f81f57bb64bebafa61390797094579528ee8e071ffb23b8407591109ee5091aaa09cfb151216b9e080d9087fecd3e3fc3a20
7
- data.tar.gz: c1ef1cce00c099c33b77b74981d3d7121c8577ad15f5dc135a56eb7da7ba1543356001efc2285a474ab66c15486d5a6bab898b6ca602857530f540dcbfcf5907
6
+ metadata.gz: 98c300765eb5c6dc38734ed419db35b7816008397dc3d61b7d3d301675a417e4ea06b71907f11ec8196172c312f54c0961fdfbd99e4ceae35a75cdcd71a872e3
7
+ data.tar.gz: 32c57b79aa21e42d081f9b88184e65043dce242602efec84b115460f71ab22d3b6e764405f7f9eeb5c81305e08478fa4486c276bc00654a6164d2c5715362315
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.0 (2023/06/09)
2
+
3
+ * [#78](https://github.com/dblock/strava-ruby-client/pull/78): Drops unsupported endpoint/method `activity_photos` - [@simonneutert](https://github.com/simonneutert).
4
+
1
5
  ### 1.0.1 (2023/02/11)
2
6
 
3
7
  * [#73](https://github.com/dblock/strava-ruby-client/pull/73): Fixes serialization causing `stack level too deep` - [@simonneutert](https://github.com/simonneutert).
data/README.md CHANGED
@@ -14,7 +14,6 @@ Unlike other clients, including [strava-api-v3](https://github.com/jaredholdcrof
14
14
  - [Activities](#activities)
15
15
  - [Create an Activity](#create-an-activity)
16
16
  - [Get Activity](#get-activity)
17
- - [List Activity Photos](#list-activity-photos)
18
17
  - [List Activity Comments](#list-activity-comments)
19
18
  - [List Activity Kudoers](#list-activity-kudoers)
20
19
  - [List Activity Laps](#list-activity-laps)
@@ -149,29 +148,6 @@ google_image_url = "https://maps.googleapis.com/maps/api/staticmap?maptype=roadm
149
148
 
150
149
  See [Strava::Models::Map](lib/strava/models/map.rb) for all available properties.
151
150
 
152
- #### List Activity Photos
153
-
154
- Returns the photos on the given activity. This API is undocumented.
155
-
156
- ```ruby
157
- photos = client.activity_photos(1982980795) # => Array[Strava::Models::Photo]
158
-
159
- photo = photos.first # => Strava::Models::Photo
160
-
161
- photo.id # => nil
162
- photo.unique_id # => '65889142-538D-4EE5-96F5-3DC3B773B1E3'
163
- photo.urls # => { '0' => 'https://dgtzuqphqg23d.cloudfront.net/eb4DMJ2hJW3k_g9URZEMfaJ8rZfHagrNlZRuEZz0osU-29x64.jpg' }
164
- photo.athlete_id # => 26_462_176
165
- photo.activity_id # => 1_946_417_534
166
- photo.activity_name # => 'TCS NYC Marathon 2018'
167
- photo.created_at # => Time
168
- photo.uploaded_at # => Time
169
- photo.sizes # => { '0' => [29, 64] }
170
- photo.default_photo # => false
171
- ```
172
-
173
- See [Strava::Models::Photo](lib/strava/models/photo.rb) for all available properties.
174
-
175
151
  #### List Activity Comments
176
152
 
177
153
  Returns the comments on the given activity.
@@ -37,21 +37,6 @@ module Strava
37
37
  paginate "activities/#{id}/comments", options, Strava::Models::Comment, &block
38
38
  end
39
39
 
40
- #
41
- # List activity photos.
42
- #
43
- # @option options [String] :id
44
- # Activity id.
45
- # @option options [Integer] :page
46
- # Page number.
47
- # @option options [Integer] :per_page
48
- # Number of items per page. Defaults to 30.
49
- #
50
- def activity_photos(id_or_options, options = {}, &block)
51
- id, options = parse_args(id_or_options, options)
52
- paginate "activities/#{id}/photos", options, Strava::Models::Photo, &block
53
- end
54
-
55
40
  #
56
41
  # List activity kudoers.
57
42
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strava
4
- VERSION = '1.0.1'
4
+ VERSION = '1.1.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: 1.0.1
4
+ version: 1.1.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: 2023-02-11 00:00:00.000000000 Z
11
+ date: 2023-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -177,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
177
  - !ruby/object:Gem::Version
178
178
  version: 1.3.6
179
179
  requirements: []
180
- rubygems_version: 3.3.26
180
+ rubygems_version: 3.4.12
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Strava API Ruby client.