qwtf_discord_bot 6.1.0 → 6.1.1

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: a2cbd2052764c82fc832ccac617eb4a2c26e2861827c95b430ee0ad341274027
4
- data.tar.gz: 4d67b365bda23d496afd20ea375a2486f52fe1b59cf29f6844435254cc7cacb6
3
+ metadata.gz: 1fbbce642ba972a8c0f329cead6f6b0c2eeaaa2d81f8ffc4a72d5efc9ec927e9
4
+ data.tar.gz: a9cbe36675e83caeb0d8cdbb9f0cd52cbe8a6847339bd699d09a1b4c37347daf
5
5
  SHA512:
6
- metadata.gz: 1dbde41666f182f177cdc0a5d7e4329388769515e238918be21f7f5dd203f974c43034c95f7b02b0fa965d49885e06e435b5aec0a8a14bff9f87f33068b3ae4b
7
- data.tar.gz: 2080539c53ec3a5225e000aa872860613b90aa50616fcf006c356835b78e2f2ccc9570a8f902d3bdcafe602ca48e83957e12703017ee71c11010b4585150f153
6
+ metadata.gz: 5487069a3f1eb9f4c22f0b6ad3397dbe8f7d18fa9416b2c3a65084d37c74903630d6c4d8a8eb96cc7683d138168338bb3980b29698a72dcd9ac7ab0a24297210
7
+ data.tar.gz: f85243fec5e5b0879bc08a3390b0e008b00e31b8f0c78e2b949c378d145a316ace08342c4f08a049641dffcecd930cef27f031fd073ef77955336fd8f9c0348a
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.1.0
1
+ 6.1.1
data/lib/pug.rb CHANGED
@@ -74,6 +74,10 @@ class Pug
74
74
  total_player_count >= maxplayers
75
75
  end
76
76
 
77
+ def has_exactly_maxplayers?
78
+ total_player_count == maxplayers
79
+ end
80
+
77
81
  def empty?
78
82
  total_player_count.zero?
79
83
  end
@@ -40,7 +40,7 @@ class QwtfDiscordBotPug # :nodoc:
40
40
  end
41
41
 
42
42
  join_pug(e, pug)
43
- start_pug(pug, e) if pug.full?
43
+ start_pug(pug, e) if pug.has_exactly_maxplayers?
44
44
  end
45
45
  end
46
46
 
@@ -272,7 +272,7 @@ class QwtfDiscordBotPug # :nodoc:
272
272
  end
273
273
  end
274
274
 
275
- start_pug(pug, e) if !pug_already_full && pug.full?
275
+ start_pug(pug, e) if !pug_already_full && pug.has_exactly_maxplayers?
276
276
  end
277
277
  end
278
278
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qwtf_discord_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.0
4
+ version: 6.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sheldon Johnson