strava-ruby-client 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +0 -24
- data/lib/strava/api/endpoints/activities.rb +0 -15
- data/lib/strava/models/mixins/http_response.rb +10 -1
- data/lib/strava/version.rb +1 -1
- data/lib/strava/web/api_response.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2583980553406730410bd2207010190c47b7a36d4fea785390138eb3a27da767
|
4
|
+
data.tar.gz: 544a48791a8fcb1b6bb7b8b80c6b745720013bec3e8d15788c0fff5a42366d96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98c300765eb5c6dc38734ed419db35b7816008397dc3d61b7d3d301675a417e4ea06b71907f11ec8196172c312f54c0961fdfbd99e4ceae35a75cdcd71a872e3
|
7
|
+
data.tar.gz: 32c57b79aa21e42d081f9b88184e65043dce242602efec84b115460f71ab22d3b6e764405f7f9eeb5c81305e08478fa4486c276bc00654a6164d2c5715362315
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
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
|
+
|
5
|
+
### 1.0.1 (2023/02/11)
|
6
|
+
|
7
|
+
* [#73](https://github.com/dblock/strava-ruby-client/pull/73): Fixes serialization causing `stack level too deep` - [@simonneutert](https://github.com/simonneutert).
|
8
|
+
|
1
9
|
### 1.0.0 (2022/12/29)
|
2
10
|
|
3
11
|
* [#48](https://github.com/dblock/strava-ruby-client/pull/55): Removed `client.running_races` - [@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
|
#
|
@@ -7,7 +7,16 @@ module Strava
|
|
7
7
|
extend ActiveSupport::Concern
|
8
8
|
|
9
9
|
included do
|
10
|
-
|
10
|
+
attr_reader :input
|
11
|
+
|
12
|
+
def initialize(obj)
|
13
|
+
@input = obj
|
14
|
+
super
|
15
|
+
end
|
16
|
+
|
17
|
+
def http_response
|
18
|
+
@http_response ||= Strava::Web::ApiResponse.new(input['http_response'])
|
19
|
+
end
|
11
20
|
end
|
12
21
|
end
|
13
22
|
end
|
data/lib/strava/version.rb
CHANGED
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.
|
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:
|
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.
|
180
|
+
rubygems_version: 3.4.12
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Strava API Ruby client.
|