blur 2.1.3 → 2.1.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.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blur
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mikkel Kroman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: executables
10
10
  cert_chain: []
11
- date: 2019-07-26 00:00:00.000000000 Z
11
+ date: 2021-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deep_merge
@@ -52,7 +52,7 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.6'
55
- description:
55
+ description:
56
56
  email: mk@uplink.io
57
57
  executables:
58
58
  - blur
@@ -67,9 +67,7 @@ files:
67
67
  - library/blur/callbacks.rb
68
68
  - library/blur/channel.rb
69
69
  - library/blur/client.rb
70
- - library/blur/enhancements.rb
71
70
  - library/blur/handling.rb
72
- - library/blur/logging.rb
73
71
  - library/blur/network.rb
74
72
  - library/blur/network/connection.rb
75
73
  - library/blur/network/isupport.rb
@@ -81,7 +79,7 @@ homepage: https://github.com/mkroman/blur
81
79
  licenses:
82
80
  - MIT
83
81
  metadata: {}
84
- post_install_message:
82
+ post_install_message:
85
83
  rdoc_options: []
86
84
  require_paths:
87
85
  - library
@@ -89,15 +87,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
87
  requirements:
90
88
  - - ">="
91
89
  - !ruby/object:Gem::Version
92
- version: 1.9.1
90
+ version: '2.7'
93
91
  required_rubygems_version: !ruby/object:Gem::Requirement
94
92
  requirements:
95
93
  - - ">="
96
94
  - !ruby/object:Gem::Version
97
95
  version: '0'
98
96
  requirements: []
99
- rubygems_version: 3.0.3
100
- signing_key:
97
+ rubygems_version: 3.1.4
98
+ signing_key:
101
99
  specification_version: 4
102
100
  summary: An event-driven IRC-framework for Ruby.
103
101
  test_files: []
@@ -1,39 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Reopens the scope of the standard Exception-class to extend it with helpful
4
- # methods.
5
- class Exception
6
- # The pattern to match against the backtrace log.
7
- Pattern = /^.*?:(\d+):/
8
-
9
- # Retrieve the line on which the exception was raised from when raised inside
10
- # a script.
11
- #
12
- # @return Fixnum the line of the script the exception was raised on.
13
- def line
14
- backtrace[0].match(Pattern)[1].to_i + 1
15
- end
16
- end
17
-
18
- # Reopens the scope of the standard String-class to extend it with helpful
19
- # methods.
20
- class String
21
- # Checks if the string contains nothing but a numeric value.
22
- #
23
- # @return true if it is a numeric value.
24
- def numeric?
25
- self =~ /^\d+$/
26
- end
27
-
28
- # Split a string up in n chunks and then iterate through them, exactly like
29
- # Enumerable#each_slice.
30
- #
31
- # @return [Enumerator] list of slices.
32
- # @yieldreturn [Array] list of elements in each slice consecutively.
33
- def each_slice size = 8
34
- self.chars.each_slice(size).each{|slice| yield slice.join }
35
- end
36
-
37
- alias_method :starts_with?, :start_with?
38
- alias_method :each_block, :each_slice
39
- end
@@ -1,41 +0,0 @@
1
- # encoding: utf-8
2
-
3
- # Temporary replacement for majic's color method.
4
- class String
5
- def ^ c
6
- self
7
- end
8
- end
9
-
10
- module Blur
11
- # Very crude logging module.
12
- module Logging
13
- Levels = [:debug, :info, :warn, :error, :fatal]
14
-
15
- class Logger
16
- Levels.each do |level|
17
- define_method level do |*messages|
18
- Logging.mutex.synchronize do
19
- messages.each{|m| puts "%-8s %s" % [level.to_s.upcase, m] }
20
- end
21
- end
22
- end
23
- end
24
-
25
- @mutex = Mutex.new
26
- @logger = Logger.new
27
-
28
- class << self
29
- attr_reader :mutex
30
- attr_reader :logger
31
- end
32
-
33
- def log *messages
34
- if messages.empty?
35
- Logging.logger
36
- else
37
- Logging.logger.debug *messages
38
- end
39
- end
40
- end
41
- end