sorare-rewards 1.4.7 → 1.4.8

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: ae70a652e6cbbcea1dac9494772d3ab72ddf6bdc0a354ee6da775f5a532226d5
4
- data.tar.gz: 71a370d2608c2b709ef67372d6def7e391520ece05ee96fcc4f043d26de74a63
3
+ metadata.gz: d6cf28260c062178e86145831e78dc6df1698d0dd5da71b9e912c43ad3490819
4
+ data.tar.gz: b8568cee0173df5c1f6682f6ebc8381e10102bb4a1bee09ff11836098e6be6fa
5
5
  SHA512:
6
- metadata.gz: 2ac8909193f8ac893553263ef02a345aa672833b3abd5522c4e69be9fe8bb76d9aea1f7bcffbfbbbcf0fd7f35d597c0f2e2eff2006c33eae4f6aecb40854eee8
7
- data.tar.gz: cff95ecc875be592e58d92fd26849889f499cfcaebedde6c07aee31425031a0cfb6655487f54a1c6fb228b724ec1b4d6a43764e29ff78cc25cfb5f23ff5e0ee5
6
+ metadata.gz: c3e88fbd0e0075431410adfa570d3f491039eb7172a933cce94cfded653dfe6f03599c73f35c7caaf5a49964e6235e3ae2d761f316f4ad7278b4c84641a7aab6
7
+ data.tar.gz: 6df7258e3b292a6ea86cf36d0602c08c4e8762c89629d50928fbc69feac19ac1c05fc2fc8dfcec6650c73f4067b573e15512967e0c52161d7312d33b53a0a722
@@ -13,7 +13,7 @@ module Sorare
13
13
  class PickForDivisionRarityAndQuality
14
14
  include Interactor
15
15
 
16
- MISSING_CARDS = 'There are not enough cards to fulfill the requirements'
16
+ MISSING_CARDS = 'There are not enough cards to fulfill the requirements for %<league>s %<rarity>s'
17
17
 
18
18
  receive :picker, :allocations, :league, :rarity, force: false
19
19
  hold :cards_picked
@@ -48,7 +48,7 @@ module Sorare
48
48
  def check_length!
49
49
  return if cards_picked.length == allocations
50
50
 
51
- context.fail!(error: MISSING_CARDS)
51
+ context.fail!(error: format(MISSING_CARDS, { league: league, rarity: rarity }))
52
52
  end
53
53
  end
54
54
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sorare
4
4
  module Rewards
5
- VERSION = '1.4.7'
5
+ VERSION = '1.4.8'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorare-rewards
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.7
4
+ version: 1.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sorare team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-31 00:00:00.000000000 Z
11
+ date: 2022-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  - !ruby/object:Gem::Version
228
228
  version: '0'
229
229
  requirements: []
230
- rubygems_version: 3.1.6
230
+ rubygems_version: 3.3.3
231
231
  signing_key:
232
232
  specification_version: 4
233
233
  summary: '["Sorare", "reward", "allocation", "algorithm"]'