sorare-rewards 1.4.7 → 1.4.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 233e8df586c479ba55ce31c85f50a7fc76477e2cf6c159691be0079d5048d366
|
4
|
+
data.tar.gz: 245d8d6ec2263b1be2f2d89974b5da2f25d56d6372402907ebfec54aa5e7c1d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e5f8ec99e0cf67174ab0e6cd1ad62f868ba4a023b124b8d2fd6975f908a147341853f833d21839c75e27cc85deb66b005675f4b7245ed03bb5445b69ba19ef9
|
7
|
+
data.tar.gz: e4f6f49b4a388b0b173943037b3217ca6ed1c330d4bf8c935aafb8656d37c0ac3995eaeed89a9750181f31021ff97983343a5a338eca4b6ac23f0640e63b8df6
|
data/Gemfile.lock
CHANGED
@@ -1,34 +1,41 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sorare-rewards (1.4.
|
4
|
+
sorare-rewards (1.4.9)
|
5
5
|
activesupport (>= 6.1.4)
|
6
6
|
interactor_with_steroids (>= 1.0.0)
|
7
|
-
json (~> 2)
|
8
|
-
yaml (~> 0.2.0)
|
9
7
|
|
10
8
|
GEM
|
11
9
|
remote: https://rubygems.org/
|
12
10
|
specs:
|
13
|
-
activesupport (7.
|
11
|
+
activesupport (7.1.3)
|
12
|
+
base64
|
13
|
+
bigdecimal
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
|
+
connection_pool (>= 2.2.5)
|
16
|
+
drb
|
15
17
|
i18n (>= 1.6, < 2)
|
16
18
|
minitest (>= 5.1)
|
19
|
+
mutex_m
|
17
20
|
tzinfo (~> 2.0)
|
18
21
|
addressable (2.8.0)
|
19
22
|
public_suffix (>= 2.0.2, < 5.0)
|
20
23
|
ast (2.4.2)
|
21
|
-
|
24
|
+
base64 (0.2.0)
|
25
|
+
bigdecimal (3.1.7)
|
26
|
+
concurrent-ruby (1.2.3)
|
27
|
+
connection_pool (2.4.1)
|
22
28
|
crack (0.4.5)
|
23
29
|
rexml
|
24
30
|
diff-lcs (1.4.4)
|
31
|
+
drb (2.2.1)
|
25
32
|
hashdiff (1.0.1)
|
26
|
-
i18n (1.
|
33
|
+
i18n (1.14.4)
|
27
34
|
concurrent-ruby (~> 1.0)
|
28
|
-
interactor_with_steroids (1.1
|
35
|
+
interactor_with_steroids (1.5.1)
|
29
36
|
activesupport
|
30
|
-
|
31
|
-
|
37
|
+
minitest (5.22.3)
|
38
|
+
mutex_m (0.2.0)
|
32
39
|
ostruct (0.4.0)
|
33
40
|
parallel (1.21.0)
|
34
41
|
parser (3.1.0.0)
|
@@ -67,14 +74,13 @@ GEM
|
|
67
74
|
rubocop-rspec (2.5.0)
|
68
75
|
rubocop (~> 1.19)
|
69
76
|
ruby-progressbar (1.11.0)
|
70
|
-
tzinfo (2.0.
|
77
|
+
tzinfo (2.0.6)
|
71
78
|
concurrent-ruby (~> 1.0)
|
72
79
|
unicode-display_width (2.1.0)
|
73
80
|
webmock (3.14.0)
|
74
81
|
addressable (>= 2.8.0)
|
75
82
|
crack (>= 0.3.2)
|
76
83
|
hashdiff (>= 0.4.0, < 2.0.0)
|
77
|
-
yaml (0.2.0)
|
78
84
|
|
79
85
|
PLATFORMS
|
80
86
|
ruby
|
@@ -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
|
data/sorare-rewards.gemspec
CHANGED
@@ -31,8 +31,6 @@ Gem::Specification.new do |spec|
|
|
31
31
|
|
32
32
|
spec.add_dependency 'activesupport', '>= 6.1.4'
|
33
33
|
spec.add_dependency 'interactor_with_steroids', '>= 1.0.0'
|
34
|
-
spec.add_dependency 'json', '~> 2'
|
35
|
-
spec.add_dependency 'yaml', '~> 0.2.0'
|
36
34
|
spec.add_development_dependency 'ostruct', '~> 0.4.0'
|
37
35
|
spec.add_development_dependency 'rspec', '~> 3.10'
|
38
36
|
spec.add_development_dependency 'rubocop', '~> 1.24.1'
|
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.
|
4
|
+
version: 1.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sorare team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -38,34 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.0.0
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: json
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '2'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '2'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: yaml
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: 0.2.0
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.2.0
|
69
41
|
- !ruby/object:Gem::Dependency
|
70
42
|
name: ostruct
|
71
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
227
199
|
- !ruby/object:Gem::Version
|
228
200
|
version: '0'
|
229
201
|
requirements: []
|
230
|
-
rubygems_version: 3.
|
202
|
+
rubygems_version: 3.4.10
|
231
203
|
signing_key:
|
232
204
|
specification_version: 4
|
233
205
|
summary: '["Sorare", "reward", "allocation", "algorithm"]'
|