ircinch 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de7e4e085fee1303e2bcca842721d58d57748d597b392c2f914a25bd2e6a30ef
4
- data.tar.gz: 8aae2cfb9b253be5bb25aed45f05f1bb26de5b0acad85f732dbde1d9b7a54268
3
+ metadata.gz: d603bfc62bdd98e5a52cc6f56fea0a5ac42592df0d58c0ccf40a3197f95167b5
4
+ data.tar.gz: 271c967f694780843b98712454662782efcfc9145a0d015a7a3a5570af7303bd
5
5
  SHA512:
6
- metadata.gz: 3a6fa7c8ab22c8afaf2426e2ac39321587b490a7a9cd186f7b025a10758286879d77e945dbc45089ffc23564725f74bad9c77b2bdd9f4223b8ee5a7373197627
7
- data.tar.gz: 7ee970b4665d0e682d8e1382330d6b36809d967f485997717f2d37a96d2c9f14a244d96de00d4fd45bd0f8c57682160439b980f697b18c6044ffc44fcadacd3c
6
+ metadata.gz: d192049a5f08179804fb74810d828ab4facfcada4ffbecdbc18c0e3d7474c2151298f7da2b287882fe8b3a71f40ba9e3f23d3e798f731008170fac47456b2174
7
+ data.tar.gz: 8a7693d15e83fef6b7716e1aca5d0cec0d942aa42ab8a99356a5a98fab1d1a1310f29f9a3d1546981df277f30d0b29fc57ef21b60f64124efaea3d9953f99e5a
data/.standard.yml CHANGED
@@ -1,3 +1,4 @@
1
1
  # For available configuration options, see:
2
2
  # https://github.com/testdouble/standard
3
- ruby_version: 3.4
3
+ parallel: true
4
+ ruby_version: 3.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ * IRCinch 2.4.3, 27 December 2025
2
+ - Fix SASL auth time out by fixing IRC message parsing expression (fix by @janikrabe)
3
+ - Remove various duplicate methods
4
+ - Update standardrb configuration and lint files
5
+ - Improve CI build and steps
6
+
1
7
  * IRCinch 2.4.2, 3 April 2025
2
8
  - Improve Gemspec metadata
3
9
  - Performance and linting improvements
@@ -8,6 +8,7 @@ require "ircinch"
8
8
 
9
9
  class Autovoice
10
10
  include Cinch::Plugin
11
+
11
12
  listen_to :join
12
13
  match(/autovoice (on|off)$/)
13
14
 
@@ -5,6 +5,7 @@ require "open-uri"
5
5
 
6
6
  class Google
7
7
  include Cinch::Plugin
8
+
8
9
  match(/google (.+)/)
9
10
 
10
11
  def search(query)
@@ -2,6 +2,7 @@ require "ircinch"
2
2
 
3
3
  class Nickchange
4
4
  include Cinch::Plugin
5
+
5
6
  listen_to :nick
6
7
 
7
8
  def listen(m)
@@ -2,6 +2,7 @@ require "ircinch"
2
2
 
3
3
  class MultiCommands
4
4
  include Cinch::Plugin
5
+
5
6
  match(/command1 (.+)/, method: :command1)
6
7
  match(/command2 (.+)/, method: :command2)
7
8
  match(/^command3 (.+)/, use_prefix: false)
@@ -8,6 +8,7 @@ class Seen
8
8
  end
9
9
 
10
10
  include Cinch::Plugin
11
+
11
12
  listen_to :channel
12
13
  match(/seen (.+)/)
13
14
 
data/ircinch.gemspec CHANGED
@@ -41,6 +41,7 @@ Gem::Specification.new do |spec|
41
41
  spec.add_development_dependency "base64"
42
42
  spec.add_development_dependency "bundler-audit"
43
43
  spec.add_development_dependency "bundler-integrity"
44
+ spec.add_development_dependency "irb"
44
45
  spec.add_development_dependency "minitest"
45
46
  spec.add_development_dependency "rake"
46
47
  spec.add_development_dependency "simplecov"
data/lib/cinch/channel.rb CHANGED
@@ -23,7 +23,7 @@ module Cinch
23
23
  synced_attr_reader :users
24
24
 
25
25
  # @return [String] the channel's topic
26
- attr_accessor :topic
26
+ attr_reader :topic
27
27
  synced_attr_reader :topic
28
28
 
29
29
  # @return [Array<Ban>] all active bans
@@ -307,7 +307,6 @@ module Cinch
307
307
  @bot.irc.send("INVITE #{user} #{@name}")
308
308
  end
309
309
 
310
- undef_method(:topic=)
311
310
  # Sets the topic.
312
311
  #
313
312
  # @param [String] new_topic the new topic
@@ -418,10 +417,6 @@ module Cinch
418
417
  end
419
418
  super
420
419
  end
421
- alias_method :msg, :send # deprecated
422
- alias_method :privmsg, :send # deprecated
423
- undef_method(:msg) # yardoc hack
424
- undef_method(:privmsg) # yardoc hack
425
420
 
426
421
  # @deprecated
427
422
  def msg(*args)
@@ -447,8 +442,6 @@ module Cinch
447
442
  def to_s
448
443
  @name
449
444
  end
450
- alias_method :to_str, :to_s # deprecated
451
- undef_method(:to_str) # yardoc hack
452
445
 
453
446
  def to_str
454
447
  Cinch::Utilities::Deprecation.print_deprecation("2.2.0", "Channel#to_str", "Channel#to_s")
data/lib/cinch/helpers.rb CHANGED
@@ -182,8 +182,6 @@ module Cinch
182
182
  def Format(*settings, string)
183
183
  Formatting.format(*settings, string)
184
184
  end
185
- alias_method :Color, :Format # deprecated
186
- undef_method(:Color) # yardoc hack
187
185
 
188
186
  def Color(*args)
189
187
  Cinch::Utilities::Deprecation.print_deprecation("2.2.0", "Helpers.Color", "Helpers.Format")
data/lib/cinch/message.rb CHANGED
@@ -99,7 +99,7 @@ module Cinch
99
99
  # @api private
100
100
  # @return [void]
101
101
  def parse
102
- match = @raw.match(/(?:^@([^:]+))?(?::?(\S+) )?(\S+)(.*)/)
102
+ match = @raw.match(/\A(?:@([^ ]+) )?(?::(\S+) )?(\S+)(.*)/)
103
103
  tags, @prefix, @command, raw_params = match.captures
104
104
 
105
105
  if @bot.irc.network.ngametv?
data/lib/cinch/target.rb CHANGED
@@ -48,10 +48,6 @@ module Cinch
48
48
  end
49
49
  end
50
50
  end
51
- alias_method :msg, :send # deprecated
52
- alias_method :privmsg, :send # deprecated
53
- undef_method(:msg) # yardoc hack
54
- undef_method(:privmsg) # yardoc hack
55
51
 
56
52
  # @deprecated
57
53
  def msg(*args)
@@ -80,21 +76,17 @@ module Cinch
80
76
  def safe_send(text, notice = false)
81
77
  send(Cinch::Helpers.sanitize(text), notice)
82
78
  end
83
- alias_method :safe_msg, :safe_send # deprecated
84
- alias_method :safe_privmsg, :safe_msg # deprecated
85
- undef_method(:safe_msg) # yardoc hack
86
- undef_method(:safe_privmsg) # yardoc hack
87
79
 
88
80
  # @deprecated
89
81
  def safe_msg(*args)
90
82
  Cinch::Utilities::Deprecation.print_deprecation("2.2.0", "Target#safe_msg", "Target#safe_send")
91
- send(*args)
83
+ safe_send(*args)
92
84
  end
93
85
 
94
86
  # @deprecated
95
87
  def safe_privmsg(*args)
96
88
  Cinch::Utilities::Deprecation.print_deprecation("2.2.0", "Target#safe_privmsg", "Target#safe_send")
97
- send(*args)
89
+ safe_send(*args)
98
90
  end
99
91
 
100
92
  # Like {#safe_msg} but for notices.
data/lib/cinch/user.rb CHANGED
@@ -261,13 +261,11 @@ module Cinch
261
261
  @bot.irc.send "WHOIS #{@name} #{@name}"
262
262
  end
263
263
  end
264
- alias_method :whois, :refresh # deprecated
265
- undef_method(:whois) # yardoc hack
266
264
 
267
265
  # @deprecated
268
- def whois
266
+ def whois(*args)
269
267
  Cinch::Utilities::Deprecation.print_deprecation("2.2.0", "User#whois", "User#refresh")
270
- refresh
268
+ refresh(*args)
271
269
  end
272
270
 
273
271
  # @param [Hash, nil] values A hash of values gathered from WHOIS,
data/lib/cinch/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Cinch
4
4
  # Version of the library
5
- VERSION = "2.4.2"
5
+ VERSION = "2.4.3"
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ircinch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Sias
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-04-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: ostruct
@@ -65,6 +65,20 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: irb
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
68
82
  - !ruby/object:Gem::Dependency
69
83
  name: minitest
70
84
  requirement: !ruby/object:Gem::Requirement
@@ -255,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
255
269
  - !ruby/object:Gem::Version
256
270
  version: '0'
257
271
  requirements: []
258
- rubygems_version: 3.6.6
272
+ rubygems_version: 4.0.3
259
273
  specification_version: 4
260
274
  summary: An IRC Bot Building Ruby Framework
261
275
  test_files: []