sorare-rewards 1.0.0.beta6 → 1.0.0.beta7

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: a6ac55415caee01344ea3fb68411443fed5f2e41ac4df950d3593ddce547691b
4
- data.tar.gz: 48f6b7ef6a1d50ec0581e9c38fe776e3301c6ce8e5eae6fe21d2907db2f9f3d3
3
+ metadata.gz: f38e7364844a7fbec826d33001af0388606ce9969c78448de29f8bae49ffd353
4
+ data.tar.gz: f85cc53fb913a25977617773f6fb83cb459b5bc33174f469f02f400dbf7ca88a
5
5
  SHA512:
6
- metadata.gz: 45188d37f7078eeab6801cb7cd971e71c997c5cebdc8b33cfca884602a23c9eaa4f5c49d7ca3a12113c481057d1cda1a2371324b4bd61f06281c4bfd54970b0d
7
- data.tar.gz: '09af28b3ae1c9956b7658c99b4523b7fc675a23d59de3b4eb5ab998fdc07070d2d0ee141d53a3a31fbfc9a7ede15048601bf094d5dbb69253a8b5327cb90b21d'
6
+ metadata.gz: f158ca5054549b5d9b3951c68c9e14bac9f9575f69e04d3c430f9b918d7d293b114574b8c24fc25832c7e0a0b7db3c646f44945dd1ac54f08bc1122e533e5835
7
+ data.tar.gz: 219d23b96f3d94a97b017dca5e4716b7da81fd1f2e2e6bf3a06a9d475482745ef65c419e41c1d07c4e24b5b0891f83e9f7d5a31f486651ee88e0f515e80aa57d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sorare-rewards (1.0.0.beta6)
4
+ sorare-rewards (1.0.0.beta7)
5
5
  activesupport (~> 6.1)
6
6
  interactor (~> 3.0)
7
7
  json (~> 2)
@@ -42,75 +42,25 @@ super_rare: &super_rare
42
42
  - loop: 0
43
43
  - loop: 0
44
44
 
45
- unique: &unique
46
- tier_0:
47
- - cards: 0
48
- - cards: 0
49
- - cards: 0
50
- - cards: 0
51
- tier_1:
52
- - cards: 0
53
- - cards: 0
54
- - cards: 0
55
- - cards: 0
56
- tier_2:
57
- - cards: 0
58
- - cards: 0
59
- - cards: 0
60
- - cards: 0
61
- tier_3:
62
- - cards: 0
63
- - cards: 0
64
- - cards: 0
65
- - cards: 0
66
-
67
- empty: &empty
68
- tier_0:
69
- - cards: 0
70
- - cards: 0
71
- - cards: 0
72
- - cards: 0
73
- tier_1:
74
- - cards: 0
75
- - cards: 0
76
- - cards: 0
77
- - cards: 0
78
- tier_2:
79
- - cards: 0
80
- - cards: 0
81
- - cards: 0
82
- - cards: 0
83
- tier_3:
84
- - cards: 0
85
- - cards: 0
86
- - cards: 0
87
- - cards: 0
88
-
89
45
  leagues:
90
46
  global-all_star:
91
47
  rare: *rare
92
48
  super_rare: *super_rare
93
- unique: *unique
94
49
  global-under_twenty_one:
95
50
  rare: *rare
96
51
  super_rare: *super_rare
97
- unique: *unique
98
52
  champion-europe:
99
53
  rare: *rare
100
54
  super_rare: *super_rare
101
- unique: *unique
102
55
  challenger-europe:
103
56
  rare: *rare
104
57
  super_rare: *super_rare
105
- unique: *unique
106
58
  champion-asia:
107
59
  rare: *rare
108
60
  super_rare: *super_rare
109
- unique: *unique
110
61
  champion-america:
111
62
  rare: *rare
112
63
  super_rare: *super_rare
113
- unique: *unique
114
64
  special-weekly:
115
65
  rare:
116
66
  tier_0:
@@ -130,26 +80,7 @@ leagues:
130
80
  - pct: 1
131
81
  tier_3:
132
82
  - pct: 1
133
- unique: *empty
134
83
  starter-rookie:
135
- unique:
136
- tier_0:
137
- - cards: 0
138
- tier_1:
139
- - cards: 0
140
- tier_2:
141
- - cards: 0
142
- tier_3:
143
- - cards: 0
144
- super_rare:
145
- tier_0:
146
- - cards: 0
147
- tier_1:
148
- - cards: 0
149
- tier_2:
150
- - cards: 0
151
- tier_3:
152
- - cards: 0
153
84
  rare:
154
85
  tier_0:
155
86
  - cards: 0
@@ -159,7 +90,3 @@ leagues:
159
90
  - cards: 2
160
91
  tier_3:
161
92
  - cards: 0
162
- global-unique_only:
163
- rare: *empty
164
- super_rare: *empty
165
- unique: *empty
@@ -29,7 +29,7 @@ module Sorare
29
29
  end
30
30
 
31
31
  def allocate!
32
- supply.keys.index_with do |rarity|
32
+ (config || {}).keys.index_with do |rarity|
33
33
  ComputeForRarity.call!(**context.to_h, supply: supply[rarity], config: config[rarity]).rarity_allocations
34
34
  end
35
35
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sorare
4
4
  module Rewards
5
- VERSION = '1.0.0.beta6'
5
+ VERSION = '1.0.0.beta7'
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.0.0.beta6
4
+ version: 1.0.0.beta7
5
5
  platform: ruby
6
6
  authors:
7
7
  - pierre