ircinch 2.4.5 → 2.4.6

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.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.standard.yml +1 -1
  3. data/CHANGELOG.md +10 -0
  4. data/CODE_OF_CONDUCT.md +7 -81
  5. data/README.md +39 -30
  6. data/docs/bot_options.md +207 -314
  7. data/docs/changes.md +293 -282
  8. data/docs/common_mistakes.md +50 -41
  9. data/docs/common_tasks.md +63 -42
  10. data/docs/encodings.md +28 -55
  11. data/docs/events.md +123 -131
  12. data/docs/getting_started.md +97 -102
  13. data/docs/logging.md +62 -70
  14. data/docs/migrating.md +145 -131
  15. data/docs/plugins.md +109 -3
  16. data/docs/readme.md +17 -15
  17. data/examples/README.md +78 -0
  18. data/examples/basic/autovoice.rb +14 -18
  19. data/examples/basic/google.rb +9 -22
  20. data/examples/basic/hello.rb +4 -3
  21. data/examples/basic/join_part.rb +8 -23
  22. data/examples/basic/memo.rb +26 -24
  23. data/examples/basic/msg.rb +6 -6
  24. data/examples/basic/seen.rb +17 -24
  25. data/examples/basic/urban_dict.rb +6 -26
  26. data/examples/basic/url_shorten.rb +8 -26
  27. data/examples/plugins/autovoice.rb +17 -16
  28. data/examples/plugins/custom_prefix.rb +4 -3
  29. data/examples/plugins/dice_roll.rb +13 -20
  30. data/examples/plugins/google.rb +7 -21
  31. data/examples/plugins/hello.rb +4 -3
  32. data/examples/plugins/hooks.rb +5 -6
  33. data/examples/plugins/join_part.rb +8 -21
  34. data/examples/plugins/lambdas.rb +5 -6
  35. data/examples/plugins/last_nick.rb +7 -6
  36. data/examples/plugins/msg.rb +6 -6
  37. data/examples/plugins/multiple_matches.rb +10 -11
  38. data/examples/plugins/own_events.rb +14 -19
  39. data/examples/plugins/seen.rb +23 -23
  40. data/examples/plugins/timer.rb +5 -6
  41. data/examples/plugins/url_shorten.rb +15 -19
  42. data/examples/settings.rb +19 -0
  43. data/examples/tiny_url.rb +41 -0
  44. data/ircinch.gemspec +5 -6
  45. data/lib/cinch/bot.rb +2 -3
  46. data/lib/cinch/channel.rb +4 -4
  47. data/lib/cinch/message_queue.rb +2 -2
  48. data/lib/cinch/plugin.rb +1 -1
  49. data/lib/cinch/version.rb +1 -1
  50. metadata +270 -249
  51. data/lib/cinch/rubyext/float.rb +0 -5
metadata CHANGED
@@ -1,275 +1,296 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ircinch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.5
4
+ version: 2.4.6
5
5
  platform: ruby
6
6
  authors:
7
- - Matt Sias
7
+ - Matt Sias
8
8
  bindir: exe
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
- - !ruby/object:Gem::Dependency
13
- name: ostruct
14
- requirement: !ruby/object:Gem::Requirement
15
- requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: '0'
19
- type: :runtime
20
- prerelease: false
21
- version_requirements: !ruby/object:Gem::Requirement
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
25
- version: '0'
26
- - !ruby/object:Gem::Dependency
27
- name: base64
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: '0'
33
- type: :development
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- version: '0'
40
- - !ruby/object:Gem::Dependency
41
- name: bundler-audit
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- type: :development
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
- - !ruby/object:Gem::Dependency
55
- name: bundler-integrity
56
- requirement: !ruby/object:Gem::Requirement
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: '0'
61
- type: :development
62
- prerelease: false
63
- version_requirements: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
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'
82
- - !ruby/object:Gem::Dependency
83
- name: minitest
84
- requirement: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
- type: :development
90
- prerelease: false
91
- version_requirements: !ruby/object:Gem::Requirement
92
- requirements:
93
- - - ">="
94
- - !ruby/object:Gem::Version
95
- version: '0'
96
- - !ruby/object:Gem::Dependency
97
- name: rake
98
- requirement: !ruby/object:Gem::Requirement
99
- requirements:
100
- - - ">="
101
- - !ruby/object:Gem::Version
102
- version: '0'
103
- type: :development
104
- prerelease: false
105
- version_requirements: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: '0'
110
- - !ruby/object:Gem::Dependency
111
- name: simplecov
112
- requirement: !ruby/object:Gem::Requirement
113
- requirements:
114
- - - ">="
115
- - !ruby/object:Gem::Version
116
- version: '0'
117
- type: :development
118
- prerelease: false
119
- version_requirements: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- - !ruby/object:Gem::Dependency
125
- name: standard
126
- requirement: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '0'
131
- type: :development
132
- prerelease: false
133
- version_requirements: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- version: '0'
138
- description: A simple, friendly Ruby DSL for creating IRC bots
12
+ - !ruby/object:Gem::Dependency
13
+ name: base64
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ -
17
+ - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: "0"
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ -
25
+ - ">="
26
+ - !ruby/object:Gem::Version
27
+ version: "0"
28
+ - !ruby/object:Gem::Dependency
29
+ name: ostruct
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ -
33
+ - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: "0"
36
+ type: :runtime
37
+ prerelease: false
38
+ version_requirements: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ -
41
+ - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ - !ruby/object:Gem::Dependency
45
+ name: bundler-audit
46
+ requirement: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ -
49
+ - ">="
50
+ - !ruby/object:Gem::Version
51
+ version: "0"
52
+ type: :development
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ -
57
+ - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: "0"
60
+ - !ruby/object:Gem::Dependency
61
+ name: bundler-integrity
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ -
65
+ - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: "0"
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ -
73
+ - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: "0"
76
+ - !ruby/object:Gem::Dependency
77
+ name: irb
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ -
81
+ - ">="
82
+ - !ruby/object:Gem::Version
83
+ version: "0"
84
+ type: :development
85
+ prerelease: false
86
+ version_requirements: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ -
89
+ - ">="
90
+ - !ruby/object:Gem::Version
91
+ version: "0"
92
+ - !ruby/object:Gem::Dependency
93
+ name: minitest
94
+ requirement: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ -
97
+ - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: "0"
100
+ type: :development
101
+ prerelease: false
102
+ version_requirements: !ruby/object:Gem::Requirement
103
+ requirements:
104
+ -
105
+ - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: "0"
108
+ - !ruby/object:Gem::Dependency
109
+ name: rake
110
+ requirement: !ruby/object:Gem::Requirement
111
+ requirements:
112
+ -
113
+ - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: "0"
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ -
121
+ - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: "0"
124
+ - !ruby/object:Gem::Dependency
125
+ name: simplecov
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ -
129
+ - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: "0"
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ -
137
+ - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: "0"
140
+ - !ruby/object:Gem::Dependency
141
+ name: standard
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ -
145
+ - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: "0"
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ -
153
+ - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: "0"
156
+ description: "A simple, friendly Ruby DSL for creating IRC bots"
139
157
  email:
140
- - mattsias@gmail.com
158
+ - mattsias@gmail.com
141
159
  executables: []
142
160
  extensions: []
143
161
  extra_rdoc_files: []
144
162
  files:
145
- - ".standard.yml"
146
- - CHANGELOG.md
147
- - CODE_OF_CONDUCT.md
148
- - Gemfile
149
- - LICENSE.txt
150
- - README.md
151
- - Rakefile
152
- - docs/bot_options.md
153
- - docs/changes.md
154
- - docs/common_mistakes.md
155
- - docs/common_tasks.md
156
- - docs/encodings.md
157
- - docs/events.md
158
- - docs/getting_started.md
159
- - docs/logging.md
160
- - docs/migrating.md
161
- - docs/plugins.md
162
- - docs/readme.md
163
- - examples/basic/autovoice.rb
164
- - examples/basic/google.rb
165
- - examples/basic/hello.rb
166
- - examples/basic/join_part.rb
167
- - examples/basic/memo.rb
168
- - examples/basic/msg.rb
169
- - examples/basic/seen.rb
170
- - examples/basic/urban_dict.rb
171
- - examples/basic/url_shorten.rb
172
- - examples/plugins/autovoice.rb
173
- - examples/plugins/custom_prefix.rb
174
- - examples/plugins/dice_roll.rb
175
- - examples/plugins/google.rb
176
- - examples/plugins/hello.rb
177
- - examples/plugins/hooks.rb
178
- - examples/plugins/join_part.rb
179
- - examples/plugins/lambdas.rb
180
- - examples/plugins/last_nick.rb
181
- - examples/plugins/msg.rb
182
- - examples/plugins/multiple_matches.rb
183
- - examples/plugins/own_events.rb
184
- - examples/plugins/seen.rb
185
- - examples/plugins/timer.rb
186
- - examples/plugins/url_shorten.rb
187
- - ircinch.gemspec
188
- - lib/cinch.rb
189
- - lib/cinch/ban.rb
190
- - lib/cinch/bot.rb
191
- - lib/cinch/cached_list.rb
192
- - lib/cinch/callback.rb
193
- - lib/cinch/channel.rb
194
- - lib/cinch/channel_list.rb
195
- - lib/cinch/configuration.rb
196
- - lib/cinch/configuration/bot.rb
197
- - lib/cinch/configuration/dcc.rb
198
- - lib/cinch/configuration/plugins.rb
199
- - lib/cinch/configuration/sasl.rb
200
- - lib/cinch/configuration/ssl.rb
201
- - lib/cinch/configuration/timeouts.rb
202
- - lib/cinch/constants.rb
203
- - lib/cinch/dcc.rb
204
- - lib/cinch/dcc/dccable_object.rb
205
- - lib/cinch/dcc/incoming.rb
206
- - lib/cinch/dcc/incoming/send.rb
207
- - lib/cinch/dcc/outgoing.rb
208
- - lib/cinch/dcc/outgoing/send.rb
209
- - lib/cinch/exceptions.rb
210
- - lib/cinch/formatting.rb
211
- - lib/cinch/handler.rb
212
- - lib/cinch/handler_list.rb
213
- - lib/cinch/helpers.rb
214
- - lib/cinch/i_support.rb
215
- - lib/cinch/irc.rb
216
- - lib/cinch/log_filter.rb
217
- - lib/cinch/logger.rb
218
- - lib/cinch/logger/formatted_logger.rb
219
- - lib/cinch/logger/zcbot_logger.rb
220
- - lib/cinch/logger_list.rb
221
- - lib/cinch/mask.rb
222
- - lib/cinch/message.rb
223
- - lib/cinch/message_queue.rb
224
- - lib/cinch/mode_parser.rb
225
- - lib/cinch/network.rb
226
- - lib/cinch/open_ended_queue.rb
227
- - lib/cinch/pattern.rb
228
- - lib/cinch/plugin.rb
229
- - lib/cinch/plugin_list.rb
230
- - lib/cinch/rubyext/float.rb
231
- - lib/cinch/rubyext/module.rb
232
- - lib/cinch/rubyext/string.rb
233
- - lib/cinch/sasl.rb
234
- - lib/cinch/sasl/dh_blowfish.rb
235
- - lib/cinch/sasl/diffie_hellman.rb
236
- - lib/cinch/sasl/mechanism.rb
237
- - lib/cinch/sasl/plain.rb
238
- - lib/cinch/syncable.rb
239
- - lib/cinch/target.rb
240
- - lib/cinch/timer.rb
241
- - lib/cinch/user.rb
242
- - lib/cinch/user_list.rb
243
- - lib/cinch/utilities/deprecation.rb
244
- - lib/cinch/utilities/encoding.rb
245
- - lib/cinch/utilities/kernel.rb
246
- - lib/cinch/version.rb
247
- - lib/ircinch.rb
248
- homepage: https://github.com/ircinchrb/ircinch
163
+ - .standard.yml
164
+ - CHANGELOG.md
165
+ - CODE_OF_CONDUCT.md
166
+ - Gemfile
167
+ - LICENSE.txt
168
+ - README.md
169
+ - Rakefile
170
+ - docs/bot_options.md
171
+ - docs/changes.md
172
+ - docs/common_mistakes.md
173
+ - docs/common_tasks.md
174
+ - docs/encodings.md
175
+ - docs/events.md
176
+ - docs/getting_started.md
177
+ - docs/logging.md
178
+ - docs/migrating.md
179
+ - docs/plugins.md
180
+ - docs/readme.md
181
+ - examples/README.md
182
+ - examples/basic/autovoice.rb
183
+ - examples/basic/google.rb
184
+ - examples/basic/hello.rb
185
+ - examples/basic/join_part.rb
186
+ - examples/basic/memo.rb
187
+ - examples/basic/msg.rb
188
+ - examples/basic/seen.rb
189
+ - examples/basic/urban_dict.rb
190
+ - examples/basic/url_shorten.rb
191
+ - examples/plugins/autovoice.rb
192
+ - examples/plugins/custom_prefix.rb
193
+ - examples/plugins/dice_roll.rb
194
+ - examples/plugins/google.rb
195
+ - examples/plugins/hello.rb
196
+ - examples/plugins/hooks.rb
197
+ - examples/plugins/join_part.rb
198
+ - examples/plugins/lambdas.rb
199
+ - examples/plugins/last_nick.rb
200
+ - examples/plugins/msg.rb
201
+ - examples/plugins/multiple_matches.rb
202
+ - examples/plugins/own_events.rb
203
+ - examples/plugins/seen.rb
204
+ - examples/plugins/timer.rb
205
+ - examples/plugins/url_shorten.rb
206
+ - examples/settings.rb
207
+ - examples/tiny_url.rb
208
+ - ircinch.gemspec
209
+ - lib/cinch.rb
210
+ - lib/cinch/ban.rb
211
+ - lib/cinch/bot.rb
212
+ - lib/cinch/cached_list.rb
213
+ - lib/cinch/callback.rb
214
+ - lib/cinch/channel.rb
215
+ - lib/cinch/channel_list.rb
216
+ - lib/cinch/configuration.rb
217
+ - lib/cinch/configuration/bot.rb
218
+ - lib/cinch/configuration/dcc.rb
219
+ - lib/cinch/configuration/plugins.rb
220
+ - lib/cinch/configuration/sasl.rb
221
+ - lib/cinch/configuration/ssl.rb
222
+ - lib/cinch/configuration/timeouts.rb
223
+ - lib/cinch/constants.rb
224
+ - lib/cinch/dcc.rb
225
+ - lib/cinch/dcc/dccable_object.rb
226
+ - lib/cinch/dcc/incoming.rb
227
+ - lib/cinch/dcc/incoming/send.rb
228
+ - lib/cinch/dcc/outgoing.rb
229
+ - lib/cinch/dcc/outgoing/send.rb
230
+ - lib/cinch/exceptions.rb
231
+ - lib/cinch/formatting.rb
232
+ - lib/cinch/handler.rb
233
+ - lib/cinch/handler_list.rb
234
+ - lib/cinch/helpers.rb
235
+ - lib/cinch/i_support.rb
236
+ - lib/cinch/irc.rb
237
+ - lib/cinch/log_filter.rb
238
+ - lib/cinch/logger.rb
239
+ - lib/cinch/logger/formatted_logger.rb
240
+ - lib/cinch/logger/zcbot_logger.rb
241
+ - lib/cinch/logger_list.rb
242
+ - lib/cinch/mask.rb
243
+ - lib/cinch/message.rb
244
+ - lib/cinch/message_queue.rb
245
+ - lib/cinch/mode_parser.rb
246
+ - lib/cinch/network.rb
247
+ - lib/cinch/open_ended_queue.rb
248
+ - lib/cinch/pattern.rb
249
+ - lib/cinch/plugin.rb
250
+ - lib/cinch/plugin_list.rb
251
+ - lib/cinch/rubyext/module.rb
252
+ - lib/cinch/rubyext/string.rb
253
+ - lib/cinch/sasl.rb
254
+ - lib/cinch/sasl/dh_blowfish.rb
255
+ - lib/cinch/sasl/diffie_hellman.rb
256
+ - lib/cinch/sasl/mechanism.rb
257
+ - lib/cinch/sasl/plain.rb
258
+ - lib/cinch/syncable.rb
259
+ - lib/cinch/target.rb
260
+ - lib/cinch/timer.rb
261
+ - lib/cinch/user.rb
262
+ - lib/cinch/user_list.rb
263
+ - lib/cinch/utilities/deprecation.rb
264
+ - lib/cinch/utilities/encoding.rb
265
+ - lib/cinch/utilities/kernel.rb
266
+ - lib/cinch/version.rb
267
+ - lib/ircinch.rb
268
+ homepage: "https://github.com/ircinchrb/ircinch"
249
269
  licenses:
250
- - MIT
270
+ - MIT
251
271
  metadata:
252
- bug_tracker_uri: https://github.com/ircinchrb/ircinch/issues
253
- changelog_uri: https://github.com/ircinchrb/ircinch/blob/main/CHANGELOG.md
254
- documentation_uri: https://rubydoc.info/gems/ircinch
255
- homepage_uri: https://github.com/ircinchrb/ircinch
256
- source_code_uri: https://github.com/ircinchrb/ircinch
257
- rubygems_mfa_required: 'true'
272
+ bug_tracker_uri: "https://github.com/ircinchrb/ircinch/issues"
273
+ changelog_uri: "https://github.com/ircinchrb/ircinch/blob/main/CHANGELOG.md"
274
+ documentation_uri: "https://rubydoc.info/gems/ircinch"
275
+ source_code_uri: "https://github.com/ircinchrb/ircinch"
276
+ rubygems_mfa_required: "true"
258
277
  rdoc_options: []
259
278
  require_paths:
260
- - lib
279
+ - lib
261
280
  required_ruby_version: !ruby/object:Gem::Requirement
262
281
  requirements:
263
- - - ">="
264
- - !ruby/object:Gem::Version
265
- version: 3.2.0
282
+ -
283
+ - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: 3.3.0
266
286
  required_rubygems_version: !ruby/object:Gem::Requirement
267
287
  requirements:
268
- - - ">="
269
- - !ruby/object:Gem::Version
270
- version: '0'
288
+ -
289
+ - ">="
290
+ - !ruby/object:Gem::Version
291
+ version: "0"
271
292
  requirements: []
272
- rubygems_version: 4.0.6
293
+ rubygems_version: 4.1.0
273
294
  specification_version: 4
274
295
  summary: An IRC Bot Building Ruby Framework
275
296
  test_files: []
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- unless Float.const_defined?(:INFINITY)
4
- Float::INFINITY = 1.0 / 0.0
5
- end