twitch_chatter 0.2.3 → 0.2.5

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: 13a1b1aa40ce8a4bf039e642e6e8f57c5f3a7b23e8e626bdc959828d9230c467
4
- data.tar.gz: d5bd2dde71a133d4d0ebbe8affb73af0329285686d15918949137ea022d4bc12
3
+ metadata.gz: 968161587fb57212e83ef72cf5668675836850d387647b78801ee1eeb0b38200
4
+ data.tar.gz: d20ced88fb4b54254c51a763b859fcdc850939d5a4b4a9d3108e2c738f2af17e
5
5
  SHA512:
6
- metadata.gz: 7c66ee50f1572f03216b483ea7fa438ddfc498570bacda7ffabc50980fde4884259c6ba8660670d8aba35a9a55423b88ac4a6a44fb600fc36172499547f57177
7
- data.tar.gz: 1586180e0ca61c74ee5b42c52ef5afe80f9ab962eb77646298b175e1747233bbb7c14a622e82fa91e3f7b2375aec2efa1f2f4288e28ab2d38f8792255a66d4cd
6
+ metadata.gz: 711bca18914b57de1c2aabb9f00707957564c74589693dca1f19ef9be3dc1d8c57753137a1840571326211c3eeac58bf70ec44dc754315ef1ce2e40fafd2c412
7
+ data.tar.gz: '097e9eea60255ab5cc1f5df2b918cb2422c46f3fb4d1523fd0c9ae8df64f1bb1a41c84b2e9af8e5cce49518a17bb5705694e59df3d1db0e6285aff79b88a62fe'
@@ -106,6 +106,8 @@ module Twitch
106
106
  # @example
107
107
  # bot.leave(:twitchgaming)
108
108
  def leave(streamer)
109
+ return unless ready?
110
+
109
111
  streamer = streamer.to_sym
110
112
  streams[streamer] = []
111
113
  @ws.write("PART ##{streamer}")
@@ -37,6 +37,13 @@ module Twitch
37
37
  @name.to_s
38
38
  end
39
39
 
40
+ def to_url
41
+ "https://twitch.tv/#{@name}"
42
+ end
43
+
44
+ alias_method :link, :to_url
45
+ alias_method :href, :to_url
46
+
40
47
  # @param other [Channel, String, Symbol]
41
48
  # @return [Boolean]
42
49
  def ==(other)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitch_chatter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Hackworth
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-26 00:00:00.000000000 Z
11
+ date: 2024-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-websocket