ragent 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 191cb56fece3b2f00ba49ecf91f182cfd9619958
4
- data.tar.gz: da425f06681e2593c2193c7135ce94da2bb69098
3
+ metadata.gz: 7454e03b6e6aa2985778846b26d7397941d821ba
4
+ data.tar.gz: a9515e435d272b6b4498af6d6d26714aadea1a22
5
5
  SHA512:
6
- metadata.gz: efc8b9d1d9b87ba3fd4d02b8dbada0b1d715e94c0b53cd7f2781ee28bcbe265dcf1548bdff67de3459597574868a6267a738063307ec7d34420b2350bddbf91d
7
- data.tar.gz: eb2c4532db49eb0c22286e6bdcc5a690e9e32ed36d25d08adcbc967969c454532052cbd143b1c9c375dd2b2ba4034b5e1e8bbf72a5a2f66a2d1a032f8b4abb95
6
+ metadata.gz: cde9611ad63ed334cc552986b3ae0e7926208cd6578bd8a2d6f68fb2137f33d2bf517a40693ea2b58a102cf64d20e86f9426306122b604b113b0562b4c8e05aa
7
+ data.tar.gz: abe7a1cc87e8ca3c870ad11984a38704b361273a42784fa5fa8b7353cce06acec6b5dd0ddafb2896aa7b8c9e8e00e62b4a2cf7e2f2468414bb43df5421aa5927
@@ -76,4 +76,4 @@ module Ragent
76
76
  end
77
77
  end
78
78
 
79
- Ragent.ragent.plugins.register('login', Ragent::Plugin::Login)
79
+ Ragent.ragent.plugins.register(Ragent::Plugin::Login)
@@ -49,4 +49,4 @@ module Ragent
49
49
  end
50
50
  end
51
51
 
52
- Ragent.ragent.plugins.register('time_bomb', Ragent::Plugin::TimeBomb)
52
+ Ragent.ragent.plugins.register(Ragent::Plugin::TimeBomb)
@@ -18,15 +18,15 @@ module Ragent
18
18
  info "loaded plugin #{name}"
19
19
  # TODO: load and configure dependencies
20
20
  plugin = @plugins[name.to_s]
21
- info "Configure: #{plugin.name}"
21
+ info "Configure: #{name}"
22
22
  running_plugin = plugin.new(@ragent)
23
23
  running_plugin.configure(*args, &block)
24
- debug "Configured: #{plugin.name}"
24
+ debug "Configured: #{name}"
25
25
  @running_plugins << running_plugin
26
26
  end
27
27
 
28
- def register(name, mod)
29
- @plugins[name.to_s] = mod
28
+ def register(mod)
29
+ @plugins[mod.plugin_name] = mod
30
30
  end
31
31
 
32
32
  def start
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Ragent
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ragent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schrammel