qwtf_discord_bot 6.2.1 → 6.2.2

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: ce51af5b4d0cad9d10f44446ef2191b99188a17a1f5f4c7a460a7b8e64c91a2e
4
- data.tar.gz: cbffbf577b7a3f61ea59d6ec18fa2a4a8cecae8dab8e6c9409e0892907bb5aea
3
+ metadata.gz: bdc4e3f9f32f45c2da0ba71ef882dfb3e675816e764bfa916782d37e92615284
4
+ data.tar.gz: e5b85dfe5c9ba25847d27819022bd48708f58d7119dd39e7dd75813856ee4583
5
5
  SHA512:
6
- metadata.gz: 8e0a30ef32c41f1c7514ff78c3ac025ad771cdcd56758e86fe88ab4211836a0a01477db6c28ceadd393f55e358e26e97f1efaa41f413226fce666f3679dbac0f
7
- data.tar.gz: 335081f9a5318c1a3ad4fc3bd03e97c6f260497f188c55d2783c033c230bc26b74a1ac207300d99601f3560e4834ce614b213bd5bcce8aab728e4928b76b9a62
6
+ metadata.gz: 2077dfbc5761ed7a4688bb9644bbf1e56d24d4042a66d4bc124685b2b390bd09fd73da4e3f5e3685b74ac55ab57f232c535cccdd787c4ed0e49209554eb2a1b8
7
+ data.tar.gz: 2d7c1e573bb5d34589d85f8283303e2a1aa0c0903fa4e29320a27e6709fe8c0bc3757004f972077c5c894af60ef45f409545e829902f5a9623713159e05e9f1f
data/.env.example CHANGED
@@ -1,2 +1,2 @@
1
- export RATINGS_API_URL=http://ratings.fortressone.org/api/v1
2
- export RATINGS_APP_URL=http://ratings.fortressone.org
1
+ export RESULTS_API_URL=http://ratings.fortressone.org/api/v1
2
+ export RESULTS_APP_URL=http://ratings.fortressone.org
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- qwtf_discord_bot (6.2.1)
4
+ qwtf_discord_bot (6.2.2)
5
5
  activesupport (~> 6.1)
6
6
  discordrb (= 3.4.0)
7
7
  redis (~> 4.2)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.2.1
1
+ 6.2.2
data/docker-compose.yml CHANGED
@@ -34,8 +34,8 @@ services:
34
34
  - redis
35
35
  environment:
36
36
  - REDIS_URL=redis://redis
37
- - RATINGS_API_URL
38
- - RATINGS_APP_URL
37
+ - RESULTS_API_URL
38
+ - RESULTS_APP_URL
39
39
  volumes:
40
40
  - type: bind
41
41
  source: "/home/ubuntu/.config/qwtf_discord_bot/config.yaml"
@@ -48,7 +48,7 @@ services:
48
48
  - redis
49
49
  environment:
50
50
  - REDIS_URL=redis://redis
51
- - RATINGS_API_URL
51
+ - RESULTS_API_URL
52
52
  volumes:
53
53
  - type: bind
54
54
  source: "/home/ubuntu/.config/qwtf_discord_bot/config.yaml"
@@ -944,7 +944,7 @@ class QwtfDiscordBotPug # :nodoc:
944
944
  end
945
945
 
946
946
  def post_results(json)
947
- uri = URI([ENV['RATINGS_API_URL'], 'matches'].join('/'))
947
+ uri = URI([ENV['RESULTS_API_URL'], 'matches'].join('/'))
948
948
  req = Net::HTTP::Post.new(uri, 'Content-Type' => 'application/json')
949
949
  req.body = json
950
950
 
@@ -954,7 +954,7 @@ class QwtfDiscordBotPug # :nodoc:
954
954
  end
955
955
 
956
956
  def get_fair_teams(channel_id:, players:)
957
- uri = URI([ENV['RATINGS_API_URL'], 'fair_teams', 'new'].join('/'))
957
+ uri = URI([ENV['RESULTS_API_URL'], 'fair_teams', 'new'].join('/'))
958
958
  params = { :channel_id => channel_id, 'players[]' => players }
959
959
  uri.query = URI.encode_www_form(params)
960
960
  req = Net::HTTP::Get.new(uri)
@@ -971,6 +971,6 @@ class QwtfDiscordBotPug # :nodoc:
971
971
  end
972
972
 
973
973
  def discord_channel_leaderboard_url(channel_id)
974
- [ENV['RATINGS_APP_URL'], "discord_channels", channel_id].join('/')
974
+ [ENV['RESULTS_APP_URL'], "discord_channels", channel_id].join('/')
975
975
  end
976
976
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qwtf_discord_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.1
4
+ version: 6.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Johnson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-05 00:00:00.000000000 Z
11
+ date: 2021-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: discordrb