sleeper_rb 0.2.0 → 0.2.1
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 +4 -4
- data/.rubocop.yml +2 -2
- data/Gemfile.lock +4 -4
- data/docs/SleeperRb/Resources/Draft/Pick/Metadata.html +18 -4
- data/docs/SleeperRb/Resources/Draft/Pick.html +3 -3
- data/docs/created.rid +4 -4
- data/docs/js/search_index.js.gz +0 -0
- data/lib/sleeper_rb/resources/draft/pick/metadata.rb +6 -2
- data/lib/sleeper_rb/resources/draft/pick.rb +1 -0
- data/lib/sleeper_rb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 436a790b6ff8add498e385dd7b7a0f975bc8285985449b9f20717e9a44971b3a
|
|
4
|
+
data.tar.gz: c27cb4ff8b36cc41548473dfda257a5bc051fc10bcc2df25f697bfca97ac49af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d9f7918fbcfd71bdae42a2dc5f25095f8674fc7a89d0c764facc59c368952a0bf2c77d3b156da05b01a508f07530f9e70438ce979c219140ad31c6d8330e04f
|
|
7
|
+
data.tar.gz: ffccd14e937ff663e84f9e694a9c5c1192c2b01b9cc9e760bb2e89c21c32dafe2e57d9052aabc951e6cbcca64312e9e106040809fcf6fa6c23c3165b4c1fdde6
|
data/.rubocop.yml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require: rubocop-rake
|
|
2
2
|
|
|
3
3
|
AllCops:
|
|
4
|
-
TargetRubyVersion: 2.
|
|
4
|
+
TargetRubyVersion: 2.5
|
|
5
5
|
|
|
6
6
|
Style/StringLiterals:
|
|
7
7
|
Enabled: true
|
|
@@ -15,4 +15,4 @@ Layout/LineLength:
|
|
|
15
15
|
Max: 140
|
|
16
16
|
|
|
17
17
|
Metrics/BlockLength:
|
|
18
|
-
IgnoredMethods: ['describe', 'context']
|
|
18
|
+
IgnoredMethods: ['describe', 'context']
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
sleeper_rb (0.1
|
|
4
|
+
sleeper_rb (0.2.1)
|
|
5
5
|
|
|
6
6
|
GEM
|
|
7
7
|
remote: https://rubygems.org/
|
|
@@ -24,7 +24,7 @@ GEM
|
|
|
24
24
|
i18n (1.8.10)
|
|
25
25
|
concurrent-ruby (~> 1.0)
|
|
26
26
|
minitest (5.14.4)
|
|
27
|
-
parallel (1.
|
|
27
|
+
parallel (1.21.0)
|
|
28
28
|
parser (3.0.2.0)
|
|
29
29
|
ast (~> 2.4.1)
|
|
30
30
|
public_suffix (4.0.6)
|
|
@@ -45,7 +45,7 @@ GEM
|
|
|
45
45
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
46
46
|
rspec-support (~> 3.10.0)
|
|
47
47
|
rspec-support (3.10.2)
|
|
48
|
-
rubocop (1.
|
|
48
|
+
rubocop (1.21.0)
|
|
49
49
|
parallel (~> 1.10)
|
|
50
50
|
parser (>= 3.0.0.0)
|
|
51
51
|
rainbow (>= 2.2.2, < 4.0)
|
|
@@ -67,7 +67,7 @@ GEM
|
|
|
67
67
|
simplecov_json_formatter (0.1.3)
|
|
68
68
|
tzinfo (2.0.4)
|
|
69
69
|
concurrent-ruby (~> 1.0)
|
|
70
|
-
unicode-display_width (2.
|
|
70
|
+
unicode-display_width (2.1.0)
|
|
71
71
|
webmock (3.14.0)
|
|
72
72
|
addressable (>= 2.8.0)
|
|
73
73
|
crack (>= 0.3.2)
|
|
@@ -122,6 +122,19 @@
|
|
|
122
122
|
</header>
|
|
123
123
|
|
|
124
124
|
|
|
125
|
+
<div id="attribute-i-amount" class="method-detail">
|
|
126
|
+
<div class="method-heading attribute-method-heading">
|
|
127
|
+
<span class="method-name">amount</span><span
|
|
128
|
+
class="attribute-access-type">[R]</span>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div class="method-description">
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
</div>
|
|
136
|
+
</div>
|
|
137
|
+
|
|
125
138
|
<div id="attribute-i-first_name" class="method-detail">
|
|
126
139
|
<div class="method-heading attribute-method-heading">
|
|
127
140
|
<span class="method-name">first_name</span><span
|
|
@@ -283,7 +296,7 @@
|
|
|
283
296
|
|
|
284
297
|
|
|
285
298
|
<div class="method-source-code" id="full_name-source">
|
|
286
|
-
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick/metadata.rb, line
|
|
299
|
+
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick/metadata.rb, line 61</span>
|
|
287
300
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">full_name</span>
|
|
288
301
|
[<span class="ruby-identifier">first_name</span>, <span class="ruby-identifier">last_name</span>].<span class="ruby-identifier">join</span>(<span class="ruby-string">" "</span>)
|
|
289
302
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -316,10 +329,11 @@
|
|
|
316
329
|
|
|
317
330
|
|
|
318
331
|
<div class="method-source-code" id="position-source">
|
|
319
|
-
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick/metadata.rb, line
|
|
332
|
+
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick/metadata.rb, line 50</span>
|
|
320
333
|
<span class="ruby-identifier">cached_attr</span> <span class="ruby-value">:years_exp</span>, <span class="ruby-value">:team</span>, <span class="ruby-value">:status</span>, <span class="ruby-value">:sport</span>, <span class="ruby-value">:player_id</span>, <span class="ruby-value">:number</span>, <span class="ruby-value">:last_name</span>, <span class="ruby-value">:injury_status</span>,
|
|
321
|
-
<span class="ruby-value">:first_name</span>, <span class="ruby-value"
|
|
322
|
-
|
|
334
|
+
<span class="ruby-value">:first_name</span>, <span class="ruby-value">:amount</span>,
|
|
335
|
+
<span class="ruby-value">position:</span> <span class="ruby-operator">-></span>(<span class="ruby-identifier">position</span>) { <span class="ruby-constant">SleeperRb</span><span class="ruby-operator">::</span><span class="ruby-constant">Utilities</span><span class="ruby-operator">::</span><span class="ruby-constant">RosterPosition</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">position</span>) },
|
|
336
|
+
<span class="ruby-value">news_updated:</span> <span class="ruby-value">:timestamp</span>
|
|
323
337
|
</pre>
|
|
324
338
|
</div>
|
|
325
339
|
|
|
@@ -331,7 +331,7 @@
|
|
|
331
331
|
|
|
332
332
|
|
|
333
333
|
<div class="method-source-code" id="player-source">
|
|
334
|
-
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick.rb, line
|
|
334
|
+
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick.rb, line 62</span>
|
|
335
335
|
<span class="ruby-identifier">cached_association</span> <span class="ruby-value">:player</span> <span class="ruby-keyword">do</span>
|
|
336
336
|
<span class="ruby-constant">Player</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">player_id:</span> <span class="ruby-identifier">player_id</span>)
|
|
337
337
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
|
|
367
367
|
|
|
368
368
|
<div class="method-source-code" id="roster-source">
|
|
369
|
-
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick.rb, line
|
|
369
|
+
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick.rb, line 71</span>
|
|
370
370
|
<span class="ruby-identifier">cached_association</span> <span class="ruby-value">:roster</span> <span class="ruby-keyword">do</span>
|
|
371
371
|
<span class="ruby-identifier">draft</span>.<span class="ruby-identifier">league</span>.<span class="ruby-identifier">rosters</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">roster</span><span class="ruby-operator">|</span> <span class="ruby-identifier">roster</span>.<span class="ruby-identifier">roster_id</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">roster_id</span> }
|
|
372
372
|
<span class="ruby-keyword">end</span></pre>
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
|
|
402
402
|
|
|
403
403
|
<div class="method-source-code" id="user-source">
|
|
404
|
-
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick.rb, line
|
|
404
|
+
<pre><span class="ruby-comment"># File lib/sleeper_rb/resources/draft/pick.rb, line 80</span>
|
|
405
405
|
<span class="ruby-identifier">cached_association</span> <span class="ruby-value">:user</span> <span class="ruby-keyword">do</span>
|
|
406
406
|
<span class="ruby-identifier">draft</span>.<span class="ruby-identifier">league</span>.<span class="ruby-identifier">users</span>.<span class="ruby-identifier">detect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">user</span><span class="ruby-operator">|</span> <span class="ruby-identifier">user</span>.<span class="ruby-identifier">user_id</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">picked_by</span> }
|
|
407
407
|
<span class="ruby-keyword">end</span></pre>
|
data/docs/created.rid
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
Fri, 24 Sep 2021 12:37:42 -0500
|
|
2
2
|
lib/sleeper_rb.rb Thu, 16 Sep 2021 22:21:50 -0500
|
|
3
3
|
lib/sleeper_rb/client.rb Thu, 16 Sep 2021 22:54:37 -0500
|
|
4
4
|
lib/sleeper_rb/resources/avatar.rb Tue, 14 Sep 2021 19:49:30 -0500
|
|
5
5
|
lib/sleeper_rb/resources/draft.rb Fri, 17 Sep 2021 18:02:19 -0500
|
|
6
6
|
lib/sleeper_rb/resources/draft/metadata.rb Wed, 15 Sep 2021 17:55:22 -0500
|
|
7
|
-
lib/sleeper_rb/resources/draft/pick.rb
|
|
8
|
-
lib/sleeper_rb/resources/draft/pick/metadata.rb
|
|
7
|
+
lib/sleeper_rb/resources/draft/pick.rb Fri, 24 Sep 2021 12:37:17 -0500
|
|
8
|
+
lib/sleeper_rb/resources/draft/pick/metadata.rb Thu, 23 Sep 2021 21:59:34 -0500
|
|
9
9
|
lib/sleeper_rb/resources/draft/pick_array.rb Thu, 16 Sep 2021 23:41:05 -0500
|
|
10
10
|
lib/sleeper_rb/resources/draft/settings.rb Tue, 14 Sep 2021 21:31:23 -0500
|
|
11
11
|
lib/sleeper_rb/resources/draft_array.rb Thu, 16 Sep 2021 23:00:21 -0500
|
|
@@ -35,4 +35,4 @@ lib/sleeper_rb/utilities/array_proxy.rb Fri, 17 Sep 2021 18:37:14 -0500
|
|
|
35
35
|
lib/sleeper_rb/utilities/cache.rb Fri, 17 Sep 2021 18:16:51 -0500
|
|
36
36
|
lib/sleeper_rb/utilities/request.rb Tue, 14 Sep 2021 21:36:21 -0500
|
|
37
37
|
lib/sleeper_rb/utilities/roster_position.rb Wed, 15 Sep 2021 23:14:03 -0500
|
|
38
|
-
lib/sleeper_rb/version.rb
|
|
38
|
+
lib/sleeper_rb/version.rb Fri, 24 Sep 2021 12:32:24 -0500
|
data/docs/js/search_index.js.gz
CHANGED
|
Binary file
|
|
@@ -39,14 +39,18 @@ module SleeperRb
|
|
|
39
39
|
##
|
|
40
40
|
# :attr_reader: first_name
|
|
41
41
|
|
|
42
|
+
##
|
|
43
|
+
# :attr_reader: amount
|
|
44
|
+
|
|
42
45
|
##
|
|
43
46
|
# :method: position
|
|
44
47
|
#
|
|
45
48
|
# @return [{SleeperRb::Utilities::RosterPosition}[rdoc-ref:SleeperRb::Utilities::RosterPosition]]
|
|
46
49
|
|
|
47
50
|
cached_attr :years_exp, :team, :status, :sport, :player_id, :number, :last_name, :injury_status,
|
|
48
|
-
:first_name,
|
|
49
|
-
|
|
51
|
+
:first_name, :amount,
|
|
52
|
+
position: ->(position) { SleeperRb::Utilities::RosterPosition.new(position) },
|
|
53
|
+
news_updated: :timestamp
|
|
50
54
|
|
|
51
55
|
skip_refresh :all
|
|
52
56
|
|
data/lib/sleeper_rb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sleeper_rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stephen Weil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-09-
|
|
11
|
+
date: 2021-09-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Provides an object-oriented interface for the Sleeper Fantasy Football
|
|
14
14
|
API.
|