twitch-bot 5.0.2 → 5.0.6

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: 7e01b9b202dc484cc6f55788d1adc6cc7b6272c1bb3ff67fcb2e0615956ea761
4
- data.tar.gz: d819d7d5be9b59fdbdf9bcb1ebb100272f79fcb8377a887ad3e4450aee3b437a
3
+ metadata.gz: 6133a3ba914f7fd40da2b2f0f451b49a431bc02823820a7e75ca93322f0c340a
4
+ data.tar.gz: 3c2e6b980f222d9971ea31eebe245dbad6328580dbb80f8628001401745014a7
5
5
  SHA512:
6
- metadata.gz: 96ab9830ae76529ef3f8f92e9876fb043e01afa2f7d4ee354dae4014e377df3f3e427c1a6f54dfdb515e7b2ec0018416f39874420f74e5659f8d83453b2d293b
7
- data.tar.gz: 16a25b0062f8a1066442305ffc54c6d9ed1b573bfc836f990830f6c075738c6438876da82bdc4caa0220e88f1fa5e1cbd64ab151e7479fadb4dba00378dbda28
6
+ metadata.gz: 7d92e3cca67e6e16cf2d226a71342cc91d58ce65982dbc3f98cb406e1556fc5a068747edf27e386ac1fb9c20162433c8aadcc41960ef68c795784e8b3146ae73
7
+ data.tar.gz: 434259e844ddff31a768f4c4349d1eb7d621be9718f94060cdace86cdaca76c0f8effebf16c8f83f9ac74f91e4448e7f6612b865b6b03f73070c17f2d2700979
@@ -27,27 +27,3 @@ jobs:
27
27
  bundle exec rake test
28
28
  env:
29
29
  REDIS_URL: 'redis://redis:6379'
30
-
31
- release:
32
- if: startsWith(github.ref, 'refs/tags/v')
33
- needs: test
34
- runs-on: ubuntu-latest
35
- steps:
36
- - uses: actions/checkout@v2
37
- - name: Setup
38
- uses: actions/setup-ruby@v1
39
- with:
40
- ruby-version: 2.6.x
41
- - name: Bundle
42
- run: |
43
- gem install bundler
44
- bundle install --jobs 4 --retry 3
45
- - name: Publish to RubyGems
46
- run: |
47
- mkdir -p $HOME/.gem
48
- touch $HOME/.gem/credentials
49
- chmod 0600 $HOME/.gem/credentials
50
- printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
51
- rake release
52
- env:
53
- GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog Twitch::Bot
2
2
 
3
+ ## v5.0.6
4
+
5
+ - [FIX] Use safe navigation properly.
6
+
7
+ ## v5.0.5
8
+
9
+ - [FIX] Catch missing channel object.
10
+
11
+ ## v5.0.4
12
+
13
+ - [FIX] Handle `nil` values from Redis.
14
+
15
+ ## v5.0.3
16
+
17
+ - [FIX] Remove CI release stage broken by Rubygems OTP.
18
+
3
19
  ## v5.0.2
4
20
 
5
21
  - [FIX] `PART` command caused a crash when not in a channel.
@@ -181,7 +181,7 @@ module Twitch
181
181
  end
182
182
 
183
183
  def max_messages_count
184
- if channel.moderators.include?(config.setting("botname"))
184
+ if channel&.moderators&.include?(config.setting("botname"))
185
185
  MODERATOR_MESSAGES_COUNT
186
186
  else
187
187
  USER_MESSAGES_COUNT
@@ -19,7 +19,7 @@ module Twitch
19
19
 
20
20
  def retrieve(key)
21
21
  value = redis.get(key)
22
- JSON.parse(value)
22
+ value.nil? ? nil : JSON.parse(value)
23
23
  end
24
24
 
25
25
  private
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Twitch
4
4
  module Bot
5
- VERSION = "5.0.2"
5
+ VERSION = "5.0.6"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitch-bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.2
4
+ version: 5.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jochen Lillich