kanrisuru 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb2d3362a0cb76eee232056937ae6d81c0d40c24d0a1bbafed6f78cbbfeda880
4
- data.tar.gz: 3f8ddb4ed3d24ad2741f619bd3f12553ddd26181f42301dbe8c165ade253c006
3
+ metadata.gz: ce41108c8201af2a48ac2453f8dc3fb993869e9264a8754d603a11d09ffe1cb5
4
+ data.tar.gz: 542d34622a949d0eb5ddddc1d7403f13e9e37dfb39cb88b589c7655a2a34a3e4
5
5
  SHA512:
6
- metadata.gz: c6e633ff0d3008cd8bd3ba003bf5c2bf0a5892e9e44c1eb0aeefe2435c4a5f7703ae088cede78a80ac01aa8aef11e6733f1a9926dac646f3d51f943e3a4be1e9
7
- data.tar.gz: a163204d160ab1dff741f18f02a013b5a7cb3a274fc2fa7dd3c00ca9115809fbf64794ec4a075bfb4609019d81ab63fdf90385424a05aeaff2cfb959c2b2916d
6
+ metadata.gz: 7aea2688091ff8449f21eb11cd2fdcb51d71563538fd9c9e38a484770adb8745663a3132314b0001d9e6206dbd57533fe2626af1c59e2ada6d0ea394e2fdd113
7
+ data.tar.gz: 054a8612edecb94b79bd6b7488096ae12d4fee790d17cf295d4a04f397282ae2c9f5e4a977a37145bd4fc37bf0896a2a9bbd43098762ff65496de29804aa6a0b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.8.2 (August 19, 2021) ##
2
+ * Convert `major` and `minor` device field values to an `integer` in lsblk system module.
3
+
1
4
  ## Kanrisuru 0.8.1 (August 19, 2021) ##
2
5
  * Fix `nodeps` flag value for `lsblk` command in disk module.
3
6
 
@@ -244,8 +244,8 @@ module Kanrisuru
244
244
  current_device.fs_type = value
245
245
  when 'MAJ:MIN'
246
246
  maj, min = value.split(':')
247
- current_device.maj_dev = maj
248
- current_device.min_dev = min
247
+ current_device.maj_dev = maj ? maj.to_i : nil
248
+ current_device.min_dev = min ? min.to_i : nil
249
249
  when 'MOUNTPOINT'
250
250
  current_device.mount_point = value
251
251
  when 'SIZE'
@@ -281,8 +281,8 @@ module Kanrisuru
281
281
 
282
282
  LsblkDevice.new(
283
283
  device['name'],
284
- maj_min ? maj_min.split(':')[0] : nil,
285
- maj_min ? maj_min.split(':')[1] : nil,
284
+ maj_min ? maj_min.split(':')[0].to_i : nil,
285
+ maj_min ? maj_min.split(':')[1].to_i : nil,
286
286
  device['rm'],
287
287
  device['ro'],
288
288
  device['owner'],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.8.1'
4
+ VERSION = '0.8.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina