strava-ruby-client 1.0.0 → 1.0.1

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: b80a0bbc9fed0fa22baa2beaa23d59492d26766295539f05eaf7e38c6b6abed3
4
- data.tar.gz: f118e373ce17c7add5a1919b7e1b0936836e268a2bcc0c3349a548dccbf16fa7
3
+ metadata.gz: a5e44d1ea369bd76dcb67ad565ca9fcec2d08ec9b23d36fc4fa0adb7778e1369
4
+ data.tar.gz: 3ac1ef728ebab982443e70ed8952bbd4c23f9e4e1b1669a05aca7382e600c98e
5
5
  SHA512:
6
- metadata.gz: 3f6a9ed96fd697e3906afaea168495e2313dce12d9cb125e3ec63e72d007fbba42f424578482982606bcc0e94ae722fd4c22dd7a669ae0566838a8c08374ed3c
7
- data.tar.gz: 8a7c832f863941ea132c0f3ef9d327b439038ac12334ebc87ac221ddf6a392371536eb59413cb6dfcac31ed1ecb6554085079d5c284059d0a51a5b74b3a3fd8c
6
+ metadata.gz: 5ca82022fa51f2b3426b86fc3479f81f57bb64bebafa61390797094579528ee8e071ffb23b8407591109ee5091aaa09cfb151216b9e080d9087fecd3e3fc3a20
7
+ data.tar.gz: c1ef1cce00c099c33b77b74981d3d7121c8577ad15f5dc135a56eb7da7ba1543356001efc2285a474ab66c15486d5a6bab898b6ca602857530f540dcbfcf5907
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.0.1 (2023/02/11)
2
+
3
+ * [#73](https://github.com/dblock/strava-ruby-client/pull/73): Fixes serialization causing `stack level too deep` - [@simonneutert](https://github.com/simonneutert).
4
+
1
5
  ### 1.0.0 (2022/12/29)
2
6
 
3
7
  * [#48](https://github.com/dblock/strava-ruby-client/pull/55): Removed `client.running_races` - [@simonneutert](https://github.com/simonneutert).
@@ -7,7 +7,16 @@ module Strava
7
7
  extend ActiveSupport::Concern
8
8
 
9
9
  included do
10
- property 'http_response', transform_with: ->(v) { Strava::Web::ApiResponse.new(v) }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Strava
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -10,7 +10,7 @@ module Strava
10
10
  #
11
11
  def initialize(http_response)
12
12
  @response = http_response
13
- @ratelimit = Strava::Api::Ratelimit.new(@response)
13
+ @ratelimit = Strava::Api::Ratelimit.new(http_response)
14
14
  end
15
15
  end
16
16
  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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Doubrovkine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-29 00:00:00.000000000 Z
11
+ date: 2023-02-11 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.2.33
180
+ rubygems_version: 3.3.26
181
181
  signing_key:
182
182
  specification_version: 4
183
183
  summary: Strava API Ruby client.