gitall 1.1.13 → 1.1.14

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: 91122a54571e65b4532e3da61dcf876cb9e51caea8a36b28284e3ccc8f5dfa20
4
- data.tar.gz: 0ba65901de331a235fa0769f58168a08e3b5d3e37597c52ad32a9d425c162674
3
+ metadata.gz: 2125bfb18847ddc7a66a079a485b498edae5cb755feebc821955ef03c0f02da3
4
+ data.tar.gz: f1f8b823f7d332f80d59838e8cc68445dbc0e0edb9045e1050137b20bcd0991e
5
5
  SHA512:
6
- metadata.gz: 4d36f3d72a176b72442c514aa077112e9355664647e067667d5ea175a7e2b8de91fdd6f9ec6bcb58891506f2e55f68db22934ffa0e45286a2e90d80049301bf6
7
- data.tar.gz: 659063607c2672c774fa187ebacdaf51f83600b3e233c0a035179ee58cb8fe6657044ce37ba22e4cda30ea9e78bf168124e17af7845f49b7a1190cef0fd064f6
6
+ metadata.gz: b0ee568d332eb358c248af960ba1cbedad5cbf6a23ebc53ab36aa960995fc3b155e2c990d79a460eafb62f47d0b06e0a9cbee7eaea27ac48c58c1ee5903b0f60
7
+ data.tar.gz: e4ba4a8c042f40cfe490e763ad6019bd199b503f80238a42dad791c33e8a3a86f954cb862daeab789c8345c4bde3b913a908a809a64ff294d0ea19a1ee73fdf3
@@ -12,17 +12,17 @@ module GitAll
12
12
 
13
13
  desc 'start [options]', 'Start GitAll'
14
14
  def start
15
- threads = []
15
+ $threads = []
16
16
  GitAll::Bot::Bots.add_bots
17
17
  GitAll::Bot::Bots.bots.each do |name, bot|
18
- threads << Thread.new do
18
+ $threads << Thread.new do
19
19
  bot.start
20
20
  Thread.current.thread_variable_set(:network, name)
21
21
  Thread.current.thread_variable_set(:bot, bot)
22
22
  end
23
23
  end
24
- threads << Thread.new { GitAll::WebHook.run! }
25
- threads.each(&:join)
24
+ $threads << Thread.new { GitAll::WebHook.run! }
25
+ $threads.each(&:join)
26
26
  end
27
27
  end
28
28
  end
@@ -44,12 +44,12 @@ class Admin
44
44
  def do_Quit(m, msg = nil)
45
45
  return unless authenticated? m
46
46
  if msg.nil?
47
- $bots.each do |net, bot|
47
+ GitAll::Bot::Bots.bots.each do |net, bot|
48
48
  info("Exiting from #{net}")
49
49
  bot.quit('QUIT received!')
50
50
  end
51
51
  else
52
- $bots.each do |net, bot|
52
+ GitAll::Bot::Bots.bots.each do |net, bot|
53
53
  info("Exiting from #{net}")
54
54
  bot.quit(msg)
55
55
  end
@@ -1,3 +1,3 @@
1
1
  module GitAll
2
- VERSION = '1.1.13'
2
+ VERSION = '1.1.14'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.13
4
+ version: 1.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer