radfish 0.2.3 → 0.2.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
  SHA256:
3
- metadata.gz: 73011007c472b46cd1b41258548fdc37da25f15a4d14c370809aeafe5d67953b
4
- data.tar.gz: 0b649b8aa1b6c5d05eae02641b2fef7fc6bb9d45b913fdd7727c875c69c62562
3
+ metadata.gz: 6da783b12d9a90873743161fff969aae700800a544b1223f488e9828964b3a97
4
+ data.tar.gz: f42f9b1ae0ffbf3d50ad13732895b82472839133ece168b1cfb06b015f1d07a7
5
5
  SHA512:
6
- metadata.gz: 65195d4125e3afb35707adc1b87d1370de1df0b2e19afe6a5a7e56a0ace94a8437b83f9c70d1d6ada0861074d7dede5d3ccb06c5861e1e20aec95388d79ae763
7
- data.tar.gz: c99fcf649bb95dd02a861457920c310f276ec544f86fa3016771953dd277ac8a9c996add49207c59fa7f200384db570ae2b45d64abe2612663145e5b13085b98
6
+ metadata.gz: 0edb45f482cd15f8d389064273572d158f195500c613f99a652b713438c16715703de07130f8421dd6e2d6b7d1b2a7df4eb066d1aa0d6625cfa2e2827572bc9b
7
+ data.tar.gz: f0ba4c5e3c0d07e0f06df7f2b15a56dc99b9349d537e71c3c48037bf1d757aae773ac1d5b5df671a6398656cb12a2b0d000a6d923876c8f37d5f5f74c1f4c14a
@@ -209,6 +209,7 @@ module Radfish
209
209
  pci_slot: fetch.call(:pci_slot),
210
210
  status: fetch.call(:status),
211
211
  drives_count: fetch.call(:drives_count),
212
+ battery_status: fetch.call(:battery_status),
212
213
  vendor: @vendor,
213
214
  adapter_data: raw
214
215
  )
@@ -6,11 +6,12 @@ module Radfish
6
6
  class Controller
7
7
  attr_reader :id, :name, :model, :vendor, :adapter_data, :firmware_version,
8
8
  :encryption_mode, :encryption_capability, :controller_type,
9
- :pci_slot, :status, :drives_count
9
+ :pci_slot, :status, :drives_count, :battery_status
10
10
 
11
11
  def initialize(client:, id:, name: nil, model: nil, vendor: nil, adapter_data: nil,
12
12
  firmware_version: nil, encryption_mode: nil, encryption_capability: nil,
13
- controller_type: nil, pci_slot: nil, status: nil, drives_count: nil)
13
+ controller_type: nil, pci_slot: nil, status: nil, drives_count: nil,
14
+ battery_status: nil)
14
15
  @client = client
15
16
  @id = id
16
17
  @name = name
@@ -24,6 +25,7 @@ module Radfish
24
25
  @pci_slot = pci_slot
25
26
  @status = status
26
27
  @drives_count = drives_count
28
+ @battery_status = battery_status
27
29
  end
28
30
 
29
31
  # Convenience accessors delegate to the client wrappers
@@ -47,7 +49,8 @@ module Radfish
47
49
  controller_type: controller_type,
48
50
  pci_slot: pci_slot,
49
51
  status: status,
50
- drives_count: drives_count
52
+ drives_count: drives_count,
53
+ battery_status: battery_status
51
54
  }.compact
52
55
  end
53
56
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Radfish
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radfish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Siegel