prizepicks 0.2.1 → 0.2.2

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: 58a71f4fe0196d8b4cae730ce1fc59f1a67c5279456b11e26ab633c3ef76ad9f
4
- data.tar.gz: 3c277ca187660e5444f9308a3f87b3737551d9abd485a2d04db0bbecb63a5068
3
+ metadata.gz: cddcd00fa238893c4da782263960f1f67fc397fb4ff224bd518974a98ff951be
4
+ data.tar.gz: 4a2b218ecc344b721eb5eb0297699f9f7db01e4ba9a7a594b0056f667c9ceaaf
5
5
  SHA512:
6
- metadata.gz: 6fbaac9b7665c83dc570c38a0cdadf960fba088e76c2853141cc72818ac227b80320a4534ba10745fedbf3e8903f72b4f1b072c4ad670c730508f4475647dbfa
7
- data.tar.gz: 1a99027e355d8122ec003e7b9dd102d263f72d067eb0ac5d9678a94e5167436fe8c1f4a6da2a001f48e52d850765620836f2376809714bec76eff449cf3baf23
6
+ metadata.gz: f6760359d7b464d448638e8d2fb0101f73b1ebfbea53212647bd7b1410c10a6c7fd593d512c9da21680d85c5dd03c7afa85c6bc928b1c75afc54d1851949dba9
7
+ data.tar.gz: ea586d7f56066c97e1ba840e6a622169a009fee1b241690a4b88474727fbb8c6a6705e279db54a44d0b1795cf62e82fa8f97749d3c0f8f86f8740df7f1676d07
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.2.2](https://www.github.com/troyizzle/prizepicks/compare/v0.2.1...v0.2.2) (2023-02-21)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * entries incorrectly mapped ([347186d](https://www.github.com/troyizzle/prizepicks/commit/347186d7d0889ad5dbc149a94741b4b42375e36c))
9
+
3
10
  ### [0.2.1](https://www.github.com/troyizzle/prizepicks/compare/v0.2.0...v0.2.1) (2023-02-21)
4
11
 
5
12
 
@@ -5,7 +5,11 @@ module PrizePicks
5
5
  class Base < OpenStruct
6
6
  def initialize(resp)
7
7
  @resp = resp
8
- super to_obstruct(resp.dig('data', 'attributes'))
8
+ super to_obstruct(attributes)
9
+ end
10
+
11
+ def attributes
12
+ @resp.dig('data', 'attributes') || @resp['attributes']
9
13
  end
10
14
 
11
15
  def data
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PrizePicks
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prizepicks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Troy Underwood
@@ -104,7 +104,6 @@ files:
104
104
  - ".rubocop.yml"
105
105
  - CHANGELOG.md
106
106
  - Gemfile
107
- - Gemfile.lock
108
107
  - README.md
109
108
  - Rakefile
110
109
  - lib/prizepicks.rb
data/Gemfile.lock DELETED
@@ -1,74 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- prizepicks (0.2.1)
5
- faraday
6
- faraday-cookie_jar
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ast (2.4.2)
12
- domain_name (0.5.20190701)
13
- unf (>= 0.0.5, < 1.0.0)
14
- faraday (2.7.4)
15
- faraday-net_http (>= 2.0, < 3.1)
16
- ruby2_keywords (>= 0.0.4)
17
- faraday-cookie_jar (0.0.7)
18
- faraday (>= 0.8.0)
19
- http-cookie (~> 1.0.0)
20
- faraday-net_http (3.0.2)
21
- http-cookie (1.0.5)
22
- domain_name (~> 0.5)
23
- json (2.6.3)
24
- minitest (5.17.0)
25
- parallel (1.22.1)
26
- parser (3.2.1.0)
27
- ast (~> 2.4.1)
28
- rainbow (3.1.1)
29
- rake (13.0.6)
30
- regexp_parser (2.7.0)
31
- rexml (3.2.5)
32
- rubocop (1.45.1)
33
- json (~> 2.3)
34
- parallel (~> 1.10)
35
- parser (>= 3.2.0.0)
36
- rainbow (>= 2.2.2, < 4.0)
37
- regexp_parser (>= 1.8, < 3.0)
38
- rexml (>= 3.2.5, < 4.0)
39
- rubocop-ast (>= 1.24.1, < 2.0)
40
- ruby-progressbar (~> 1.7)
41
- unicode-display_width (>= 2.4.0, < 3.0)
42
- rubocop-ast (1.26.0)
43
- parser (>= 3.2.1.0)
44
- rubocop-minitest (0.28.0)
45
- rubocop (>= 1.39, < 2.0)
46
- rubocop-performance (1.16.0)
47
- rubocop (>= 1.7.0, < 2.0)
48
- rubocop-ast (>= 0.4.0)
49
- ruby-progressbar (1.11.0)
50
- ruby2_keywords (0.0.5)
51
- unf (0.1.4)
52
- unf_ext
53
- unf_ext (0.0.8.2)
54
- unicode-display_width (2.4.2)
55
- webrick (1.7.0)
56
- yard (0.9.28)
57
- webrick (~> 1.7.0)
58
-
59
- PLATFORMS
60
- x86_64-linux
61
-
62
- DEPENDENCIES
63
- faraday
64
- faraday-cookie_jar
65
- minitest (~> 5.0)
66
- prizepicks!
67
- rake (~> 13.0)
68
- rubocop
69
- rubocop-minitest
70
- rubocop-performance
71
- yard
72
-
73
- BUNDLED WITH
74
- 2.4.5