sorare-rewards 1.4.0 → 1.4.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: 385b50a4b23229464d9807665633f7bc5475f2572a1981fb2be18dd5501f3620
4
- data.tar.gz: 01f7f7d0bed52e96f3caec5743004bb10b16f4a223ce83f804ec4e94d96b4bd3
3
+ metadata.gz: e8b73fbf4bff9af80575de83f2d3d726fa91a4d587892fb9d06eb88bf28e006f
4
+ data.tar.gz: e8d9949c62b554da58ba80ba1cb7c849bc5ba8cc6e5a565fac89fa316f961c48
5
5
  SHA512:
6
- metadata.gz: 188333489495c2a7ab8e4da7a1f0cd7874131cdb01acde247997f925edf473639db04ee8a7ddb02c8458c77f89888c0bb6a6eaccd724523d86c305cd50c86835
7
- data.tar.gz: 00c0276d280c1c3b0e5980837709d69d24dbd5263975f33546099589ddca46aeebb8cad4bee0572561bd85febfdea98e986f5cb622ab92bd0bca9d1357500ee0
6
+ metadata.gz: ce1fc376f8102f8df7ded7337f235f64393ed954e122b978051a9efbf6b9d70f2548f5ada427af8a070152495ba4206277f680c3a2cbcf6097a3cba2db4af48f
7
+ data.tar.gz: a338114ad5c95083d4e674880fae0a5b9285ccae2ae73d3358c908fb5a4551271590976a92fdbe79dc58b830b88e164eca3bc7384673dbde51a4db537add85e0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.4.1] - 2021-12-14
2
+
3
+ ### Fixes
4
+
5
+ - Fix an issue where the `config` was null when accessed on a `GameWeek` with no loaded data
6
+
1
7
  ## [1.4.0] - 2021-12-14
2
8
 
3
9
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sorare-rewards (1.4.0)
4
+ sorare-rewards (1.4.1)
5
5
  activesupport (~> 6.1.4)
6
6
  interactor (~> 3.1.2)
7
7
  json (~> 2)
@@ -20,7 +20,7 @@ GEM
20
20
  ast (2.4.2)
21
21
  concurrent-ruby (1.1.9)
22
22
  diff-lcs (1.4.4)
23
- i18n (1.8.10)
23
+ i18n (1.8.11)
24
24
  concurrent-ruby (~> 1.0)
25
25
  interactor (3.1.2)
26
26
  io-wait (0.1.0)
@@ -75,7 +75,7 @@ GEM
75
75
  unicode-display_width (2.1.0)
76
76
  uri (0.11.0)
77
77
  yaml (0.2.0)
78
- zeitwerk (2.5.0)
78
+ zeitwerk (2.5.1)
79
79
 
80
80
  PLATFORMS
81
81
  ruby
@@ -27,7 +27,7 @@ module Sorare
27
27
  end
28
28
 
29
29
  def config
30
- @config ||= GameWeekConfig.new(@data['config'])
30
+ @config ||= GameWeekConfig.new(data['config'])
31
31
  end
32
32
 
33
33
  def supply_for(league, rarity: nil, player: nil)
@@ -31,7 +31,7 @@ module Sorare
31
31
 
32
32
  def rewards_ratio_per_cards_in_circulation_for_rarity(rarity)
33
33
  if game_week.config.rewards_ratio_per_cards_in_circulation.is_a?(Hash)
34
- return game_week.config.rewards_ratio_per_cards_in_circulation&.dig(rarity)
34
+ return game_week.config.rewards_ratio_per_cards_in_circulation[rarity]
35
35
  end
36
36
 
37
37
  game_week.config.rewards_ratio_per_cards_in_circulation
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sorare
4
4
  module Rewards
5
- VERSION = '1.4.0'
5
+ VERSION = '1.4.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorare-rewards
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pierre
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  - !ruby/object:Gem::Version
227
227
  version: '0'
228
228
  requirements: []
229
- rubygems_version: 3.1.6
229
+ rubygems_version: 3.2.3
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: '["Sorare", "reward", "allocation", "algorithm"]'