fluent-plugin-specinfra_inventory 0.2.1 → 0.2.2

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: 4d769fc4785bae5e9fb1eb018ea939ff99692074
4
- data.tar.gz: a561ced203709b9e2a38266f5e1fd4bdbb878605
3
+ metadata.gz: 07dfc54aaf7afdf70861257158208ae08cce46d8
4
+ data.tar.gz: bab4b1e6e41110f2e4e1afc8ad9a2b73f8f574d5
5
5
  SHA512:
6
- metadata.gz: 002a491c838f02020aa747ab68eadee955988217855de1beb5a8bc4bf29fd92dba49a15aa9ac4ad3e31f9499bb5f8f2ff973d00ea88db1a94d113ce2c69d262c
7
- data.tar.gz: ce340754872b1e544cd96c2b15ab9a332c5763932176373e75e06a3121a1719efeac17206ec696f34343640126233e17714fc53a1c23c70ea59145a3b0e8534d
6
+ metadata.gz: 7abbab1e4e48c0865e0b7ffacac8c675d9d6b4c6ab02e407be49838e379a2544e5e4c3af5710c1aadf64d27e5735cee71c6459be2cc7b6bc4fbc159533f11d22
7
+ data.tar.gz: 4e341944c21b0d25e57d83c310c05ed093c5e48325d79b7e637fa608890c8b83460334271dd8e2d08b9fc818a54c0e6ef06d0c2ebe3fd070bca293a5f64cd8ce
@@ -1,3 +1,7 @@
1
+ ## 0.2.2
2
+
3
+ * Bug fix
4
+
1
5
  ## 0.2.1
2
6
 
3
7
  * Bug fix
@@ -124,7 +124,7 @@ module Fluent
124
124
  end
125
125
 
126
126
  def _cast_byte(v)
127
- m = v.match(/^(\d+)(kb|KB)$/)
127
+ m = v.match(/^(\d+)(kb|KB|kB)$/)
128
128
  m.nil? ? v : m[0].to_i * 1024
129
129
  end
130
130
 
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module SpecinfraInventory
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
6
6
  end
7
7
  end
@@ -81,6 +81,8 @@ describe Fluent::SpecinfraInventoryInput do
81
81
  example { expect(@d.instance._cast_byte("12")).to eq "12" }
82
82
  example { expect(@d.instance._cast_byte("0kb")).to eq 0 }
83
83
  example { expect(@d.instance._cast_byte("99kb")).to eq 101376 }
84
+ example { expect(@d.instance._cast_byte("99kB")).to eq 101376 }
85
+ example { expect(@d.instance._cast_byte("99KB")).to eq 101376 }
84
86
  example { expect(@d.instance._cast_byte("akb")).to eq "akb" }
85
87
  example { expect(@d.instance._cast_byte("1%")).to eq "1%" }
86
88
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-specinfra_inventory
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi Terui