fluent-plugin-specinfra_inventory 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 0e15b95ef78a3d09be72d27519cb3ece58b39d0b
4
- data.tar.gz: a8443e82345f697389f8db0862ea542c773cc272
3
+ metadata.gz: b0ea3ec07653d8b75cc0fe2e2e026cabc13227ae
4
+ data.tar.gz: 09d802e09ea9bbac466b7be48be8e3982582a9b2
5
5
  SHA512:
6
- metadata.gz: c4c0d20b350e24950db1c1b07e33f47bca2d00df84ec694d070c735f40741d911978055c8a8ca1b33f9e3f22bc65ec2c3800937cce26b9a3a830a3e62eb65c36
7
- data.tar.gz: c0b6bf54d6ed7e7c8043f3bcb7a7ff58896d75fdf5b7a61e2e00efeb34019327071b31712185d3849063bdf596d236b54588df2ac0cd0bbbfab3c6b56553d36f
6
+ metadata.gz: ac83104cc0d6ab3f275fd4d45a96fcf975b61f5e1df91cee4197f029815b08ec69a68dc6a1d21e88ed1185d75a85e50c00f68040016c88184398c7c6bd97d532
7
+ data.tar.gz: a03cc33c305456ee36781dc773efe07300bf7995b3e9caab0cfcdbcf8d48e4d43cdaa550f683722fbc4879072cfedba664745bd3da1b2acad335e32ccd85b54b
@@ -76,7 +76,7 @@ module Fluent
76
76
  key.split(KEY_DELIMITER).each do |k|
77
77
  inv = inv[k]
78
78
  end
79
- inv
79
+ {key => inv}
80
80
  end
81
81
 
82
82
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module SpecinfraInventory
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.4"
5
5
  end
6
6
  end
7
7
  end
@@ -52,10 +52,10 @@ describe Fluent::SpecinfraInventoryInput do
52
52
  end
53
53
 
54
54
  describe "record on flat hash" do
55
- example { expect(@d.instance.record("cpu")).to include('total' => "2") }
55
+ example { expect(@d.instance.record("cpu")['cpu']).to include('total' => "2") }
56
56
  end
57
57
 
58
58
  describe "record on nested hash" do
59
- example { expect(@d.instance.record("cpu.0")).to include('vendor_id' => "1") }
59
+ example { expect(@d.instance.record("cpu.0")['cpu.0']).to include('vendor_id' => "1") }
60
60
  end
61
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-specinfra_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi Terui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-26 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd