sorare-rewards 1.4.2 → 1.4.3

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: f6d8d21c6c8da818dfecacdb8ff179dfa81e39d01f8470f1009b36afe45a06c2
4
- data.tar.gz: 0303c1e4e365b4879712cab90da1553e60cc07b78d0810b2790720e31365be2a
3
+ metadata.gz: 8641fffa2c82df83b2e775393fbc68ae16d99857695061d1a8b8af33017c4971
4
+ data.tar.gz: dc828084b6b07733bb8725e3d62d302ab3601c260c5ed7fbaf81039167df4a07
5
5
  SHA512:
6
- metadata.gz: 5facf11a38d2ec192177f46f4b13b2a3f4d63379b8d586266255f5dae906b7a0ed660d0cf3166b68399c1269dd271e0f63711569744587839ce63b52934416ee
7
- data.tar.gz: de7c3eed4459e498e528c419ade463e1972082d251559ce75908152ca6869e9535f2334e86604fa51a79c1dbc2de09efebbe0e2eee4450b213e37a8c8da3df54
6
+ metadata.gz: ce2bd4d025e0d1efcf6bf8bbefa6e9ff992d751cedaed1a582e07ebe380a6eae2cc4148ebc49be595a5345e8bda235096e287f0cb549a5f9b01f237c86b3d496
7
+ data.tar.gz: 6a9d835f7cd4c8237676c5b47e7ee6e122162ae1606062a9521754cca70d392941ff0a94413ba69c8e5bbd5dff29fe703dcc009290c766a3422b757e2d81319f
data/.rubocop.yml CHANGED
@@ -14,6 +14,7 @@ Metrics/BlockLength:
14
14
  - "Rakefile"
15
15
  - "**/*.rake"
16
16
  - "spec/**/*.rb"
17
+ - "sorare-rewards.gemspec"
17
18
 
18
19
  Metrics/ClassLength:
19
20
  Max: 120
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sorare-rewards (1.4.2)
4
+ sorare-rewards (1.4.3)
5
5
  activesupport (~> 6.1.4)
6
6
  interactor (~> 3.1.2)
7
7
  json (~> 2)
@@ -16,9 +16,14 @@ GEM
16
16
  minitest (>= 5.1)
17
17
  tzinfo (~> 2.0)
18
18
  zeitwerk (~> 2.3)
19
+ addressable (2.8.0)
20
+ public_suffix (>= 2.0.2, < 5.0)
19
21
  ast (2.4.2)
20
22
  concurrent-ruby (1.1.9)
23
+ crack (0.4.5)
24
+ rexml
21
25
  diff-lcs (1.4.4)
26
+ hashdiff (1.0.1)
22
27
  i18n (1.8.11)
23
28
  concurrent-ruby (~> 1.0)
24
29
  interactor (3.1.2)
@@ -28,6 +33,7 @@ GEM
28
33
  parallel (1.21.0)
29
34
  parser (3.0.2.0)
30
35
  ast (~> 2.4.1)
36
+ public_suffix (4.0.6)
31
37
  rainbow (3.0.0)
32
38
  rake (12.3.3)
33
39
  regexp_parser (2.1.1)
@@ -64,6 +70,10 @@ GEM
64
70
  tzinfo (2.0.4)
65
71
  concurrent-ruby (~> 1.0)
66
72
  unicode-display_width (2.1.0)
73
+ webmock (3.14.0)
74
+ addressable (>= 2.8.0)
75
+ crack (>= 0.3.2)
76
+ hashdiff (>= 0.4.0, < 2.0.0)
67
77
  yaml (0.2.0)
68
78
  zeitwerk (2.5.1)
69
79
 
@@ -78,6 +88,7 @@ DEPENDENCIES
78
88
  rubocop-rake (~> 0.6.0)
79
89
  rubocop-rspec (~> 2.5.0)
80
90
  sorare-rewards!
91
+ webmock (~> 3.14.0)
81
92
 
82
93
  BUNDLED WITH
83
94
  2.2.30
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'json'
4
4
  require 'active_support/core_ext/module/delegation'
5
+ require 'open-uri'
5
6
 
6
7
  module Sorare
7
8
  module Rewards
@@ -22,7 +23,7 @@ module Sorare
22
23
  end
23
24
 
24
25
  def data
25
- @data ||= JSON.parse(@uri.open)
26
+ @data ||= JSON.parse(@uri.open.read)
26
27
  end
27
28
 
28
29
  def config
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sorare
4
4
  module Rewards
5
- VERSION = '1.4.2'
5
+ VERSION = '1.4.3'
6
6
  end
7
7
  end
@@ -5,8 +5,8 @@ require_relative 'lib/sorare/rewards/version'
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'sorare-rewards'
7
7
  spec.version = Sorare::Rewards::VERSION
8
- spec.authors = ['pierre']
9
- spec.email = ['pierre@sorare.com']
8
+ spec.authors = ['Sorare team']
9
+ spec.email = ['hello@sorare.com']
10
10
 
11
11
  spec.summary = %w[Sorare reward allocation algorithm]
12
12
  # spec.description = %q{TODO: Write a longer description or delete this line.}
@@ -38,4 +38,5 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency 'rubocop', '~> 1.22.1'
39
39
  spec.add_development_dependency 'rubocop-rake', '~> 0.6.0'
40
40
  spec.add_development_dependency 'rubocop-rspec', '~> 2.5.0'
41
+ spec.add_development_dependency 'webmock', '~> 3.14.0'
41
42
  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.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
- - pierre
7
+ - Sorare team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-30 00:00:00.000000000 Z
11
+ date: 2022-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -136,9 +136,23 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.5.0
139
+ - !ruby/object:Gem::Dependency
140
+ name: webmock
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 3.14.0
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 3.14.0
139
153
  description:
140
154
  email:
141
- - pierre@sorare.com
155
+ - hello@sorare.com
142
156
  executables: []
143
157
  extensions: []
144
158
  extra_rdoc_files: []
@@ -212,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
226
  - !ruby/object:Gem::Version
213
227
  version: '0'
214
228
  requirements: []
215
- rubygems_version: 3.3.3
229
+ rubygems_version: 3.2.22
216
230
  signing_key:
217
231
  specification_version: 4
218
232
  summary: '["Sorare", "reward", "allocation", "algorithm"]'