nfagent 0.9.29 → 0.9.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,5 +36,5 @@ require 'nfagent/cli'
36
36
  require 'nfagent/tests'
37
37
 
38
38
  module NFAgent
39
- VERSION = '0.9.29'
39
+ VERSION = '0.9.30'
40
40
  end
@@ -4,7 +4,7 @@ module NFAgent
4
4
  def instance
5
5
  return @instance if @instance
6
6
  raise "No Mapper Set" if Config.mapper.blank?
7
- @instance = Config.mapper.constantize.new
7
+ @instance = Object.const_get(Config.mapper).new
8
8
  end
9
9
 
10
10
  # TODO: Can we delegate?
@@ -6,8 +6,8 @@ class TestPlugin < ActiveSupport::TestCase
6
6
  end
7
7
 
8
8
  test "load" do
9
- assert_raise(NameError) { "MissingMapper".constantize }
9
+ assert_raise(NameError) { Object.const_get("MissingMapper") }
10
10
  NFAgent::Plugin.load_plugins
11
- "MyMapper".constantize
11
+ Object.const_get("MyMapper")
12
12
  end
13
13
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 9
8
- - 29
9
- version: 0.9.29
8
+ - 30
9
+ version: 0.9.30
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Draper
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-02-10 00:00:00 +10:30
17
+ date: 2011-02-18 00:00:00 +10:30
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -60,7 +60,7 @@ dependencies:
60
60
  type: :runtime
61
61
  version_requirements: *id003
62
62
  - !ruby/object:Gem::Dependency
63
- name: rubyforge
63
+ name: hoe
64
64
  prerelease: false
65
65
  requirement: &id004 !ruby/object:Gem::Requirement
66
66
  requirements:
@@ -68,25 +68,11 @@ dependencies:
68
68
  - !ruby/object:Gem::Version
69
69
  segments:
70
70
  - 2
71
- - 0
72
71
  - 4
73
- version: 2.0.4
74
- type: :development
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: hoe
78
- prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 2
85
- - 6
86
72
  - 0
87
- version: 2.6.0
73
+ version: 2.4.0
88
74
  type: :development
89
- version_requirements: *id005
75
+ version_requirements: *id004
90
76
  description: Logging Agent for NetFox Online
91
77
  email:
92
78
  - daniel@netfox.com