twitch_chatter 0.2.3 → 0.2.4

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: 7be5a9dc4cec9cb95f04174f974e6c2ce330dd864a28a508765f47186e713a3c
4
+ data.tar.gz: 5c17874c9d2c81be7808d6850a4b75b191f0900e46fe351f7cd6052b91bff2ff
5
5
  SHA512:
6
- metadata.gz: 7c66ee50f1572f03216b483ea7fa438ddfc498570bacda7ffabc50980fde4884259c6ba8660670d8aba35a9a55423b88ac4a6a44fb600fc36172499547f57177
7
- data.tar.gz: 1586180e0ca61c74ee5b42c52ef5afe80f9ab962eb77646298b175e1747233bbb7c14a622e82fa91e3f7b2375aec2efa1f2f4288e28ab2d38f8792255a66d4cd
6
+ metadata.gz: cedae2c82116db6442a267c0025274e6d84e90a30230c0a5ca685809f5b1aa98298ddb4c5d7c502327826f9763329ca80291943f04d289fcad98cb720a47b60c
7
+ data.tar.gz: 8784a392060bcfb90a90ada5bbdace02a2741488cde7e3c08797ed45dac5dd797401ff51008174b48b5d40b5ddcf6ea3c5aa0d9233728ed8fa8d76d22948bcef
@@ -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.4
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