sfpagent 0.2.9 → 0.2.10
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.
- data/VERSION +1 -1
- data/bin/init_script +1 -1
- data/lib/sfpagent/agent.rb +4 -1
- metadata +3 -3
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.10
|
data/bin/init_script
CHANGED
data/lib/sfpagent/agent.rb
CHANGED
|
@@ -34,6 +34,8 @@ module Sfp
|
|
|
34
34
|
WEBrick::BasicLog::FATAL ||
|
|
35
35
|
WEBrick::BasicLog::WARN)
|
|
36
36
|
|
|
37
|
+
ParentEliminator = Sfp::Visitor::ParentEliminator.new
|
|
38
|
+
|
|
37
39
|
@@current_model_hash = nil
|
|
38
40
|
|
|
39
41
|
@@bsig = nil
|
|
@@ -328,7 +330,8 @@ module Sfp
|
|
|
328
330
|
_, name, rest = path.split('.', 3)
|
|
329
331
|
model = get_cache_model(name)
|
|
330
332
|
if !model.nil? and model.has_key?('model')
|
|
331
|
-
|
|
333
|
+
value = (rest.to_s.length <= 0 ? model['model'] : model['model'].at?("$.#{rest}"))
|
|
334
|
+
value.accept(ParentEliminator) if value.is_a?(Hash)
|
|
332
335
|
end
|
|
333
336
|
end
|
|
334
337
|
return value
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sfpagent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -13,7 +13,7 @@ date: 2013-08-13 00:00:00.000000000 Z
|
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: sfp
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &12429380 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,7 +21,7 @@ dependencies:
|
|
|
21
21
|
version: 0.3.12
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *12429380
|
|
25
25
|
description: A Ruby implementation of SFP agent.
|
|
26
26
|
email: herry13@gmail.com
|
|
27
27
|
executables:
|