y_fantasy 0.1.4 → 0.1.5

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: 0c3ace11025a4a431bcff649ebe0f40fef5277968f3ceeae4b60dffb1f00d88f
4
- data.tar.gz: 6b058ec57a704a693bba22fce6fee66ce018cd9a2363cf25286ec3a379cc695a
3
+ metadata.gz: 147256821fe6b2d55008051ea3624a03aae18c4ca45fdb39716ccc191db0f158
4
+ data.tar.gz: 89da6343138d22044b18d432c8200da730138b1e1c9dfed3ae0c9118a8a12ab2
5
5
  SHA512:
6
- metadata.gz: 67b1b6ff8e008f8385f418afb127e59a01bbcd72d3286c4f636f9b5e1b68b2048a3f56c0765d3705316616d83e6c1741eadd88c152a04e92aca7d933d8c85f1a
7
- data.tar.gz: 611d4e321cf6b7b0f54a07bf20056253a088d8fa884f55cc47725abd82f24633c73e3257b7d8dfb1fa59625ad3e612c1141cc5f02fbf3c227c66e1a8d5addda1
6
+ metadata.gz: 6d1360154fc4c2afcc49145d67d869d8f7ccb985568041f7aae8b184b955597aa1f758747706ef5a5bfcee7cf0eb708b889b759700dbc3db6aa8716f729e4ddc
7
+ data.tar.gz: f4b914eb471cff7efd25e9340decab684f0ad95c7c250d12f9110c34966939734159f15634ed4af98c6f689647835f742701605743a06148a51ae362fc55eec5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.5] - 2025-08-19
4
+
5
+ - Fix bug in PickemTeam#true_total_strikes
6
+
3
7
  ## [0.1.4] - 2025-08-19
4
8
 
5
9
  - Update dry-* gems
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- y_fantasy (0.1.4)
4
+ y_fantasy (0.1.5)
5
5
  dry-configurable (~> 1.1)
6
6
  dry-initializer (~> 3.1)
7
7
  dry-transformer (~> 1.0)
@@ -99,7 +99,7 @@ module YFantasy
99
99
  # For some reason, Yahoo's API can return more weeks than the group settings allow, and they are always strikes.
100
100
  # @return [Array<WeekPick>] the weekly picks for this team
101
101
  def true_week_picks
102
- @true_week_picks = week_picks.slice(0, group.settings.end_week)
102
+ @true_week_picks = week_picks&.slice(0, group.settings.end_week)
103
103
  end
104
104
 
105
105
  # Returns the "true" total strikes, based on the group end week.
@@ -108,7 +108,7 @@ module YFantasy
108
108
  def true_total_strikes
109
109
  return total_strikes if group.settings.two_pick_start_week != 0
110
110
 
111
- strikes = true_week_picks.count { |wp| wp.picks.first.result == "strike" }
111
+ strikes = true_week_picks.count { |wp| wp&.picks&.first&.result == "strike" }
112
112
  return group.settings.max_strikes if strikes > group.settings.max_strikes
113
113
 
114
114
  strikes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YFantasy
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: y_fantasy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Aylward