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 CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.2.10
data/bin/init_script CHANGED
@@ -11,7 +11,7 @@
11
11
 
12
12
  set -e
13
13
 
14
- bin="/home/herry/workspace/sfp/sfpagent/bin/sfpagent"
14
+ bin=`which sfpagent`
15
15
 
16
16
  test -x $bin || exit 0
17
17
 
@@ -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
- return (rest.to_s.length <= 0 ? model['model'] : model['model'].at?("$.#{rest}"))
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.9
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: &7372320 !ruby/object:Gem::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: *7372320
24
+ version_requirements: *12429380
25
25
  description: A Ruby implementation of SFP agent.
26
26
  email: herry13@gmail.com
27
27
  executables: