kanrisuru 0.8.6 → 0.8.7

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: 3cf097324010e600d653651749e4269d4befe7e2b6ccc1b17cc2b31ee53d1991
4
- data.tar.gz: febb4bc33e7a1a1810c00d1deddd5c39a30ae961f74204245277984274b2d2b7
3
+ metadata.gz: 401e4f3fbff30e96891e65a0cb9d1916d022f1128c3667de554776c775ea0b19
4
+ data.tar.gz: 7e560e7e8c6e217fab2bf8b5afbe9c57224e488bac510cc58305d990880b0a7e
5
5
  SHA512:
6
- metadata.gz: bccf90abb47b07d52bcf2e791830e38380e009ef19fad30f896d979325f6133c5531676b3d3e79555c9090624f15794ec8884d9c889e57c1a150258107b39e3a
7
- data.tar.gz: d5f17fc9c9a6f80257d5bf54ee1d2e28aa48d9de0859b7abda2f8ed695b1003aff98c3f2ee75b3dc5317eb7b9d8c947b205133b9b92f0d8af727f9d827ed4b45
6
+ metadata.gz: 715a07d652de292cdc587b49b4a5b43b373e5eac5c225439c5fb15a464a860a8cdee43a13c5a2e2439c13f21d2afb0d8000deaf3146148febb7b2b0fb9114c21
7
+ data.tar.gz: f1ff0104249a8524d3d8d6c8bf7730af8ad0a55e84ef5a1c9ec75926c8f922c11aa7e46e9086dda36c2a0e6373008649e279182a1cc0aa8e74187bbab3f52e57
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## Kanrisuru 0.8.7 (August 21, 2021) ##
2
+ * Fix `FileInfo` field for ls command. Was set to `memory_blocks`, but was incorrect, corrected this to `hard_links`.
3
+
1
4
  ## Kanrisuru 0.8.6 (August 21, 2021) ##
2
5
  * Add `minimum_io_size`, `physical_sector_size`, and `logical_sector_size` to the blkid low level disk probe for devices.
3
6
 
@@ -15,8 +15,8 @@ module Kanrisuru
15
15
  os_define :linux, :which
16
16
 
17
17
  FilePath = Struct.new(:path)
18
- FileInfoId = Struct.new(:inode, :mode, :memory_blocks, :uid, :gid, :fsize, :date, :path, :type)
19
- FileInfo = Struct.new(:inode, :mode, :memory_blocks, :owner, :group, :fsize, :date, :path, :type)
18
+ FileInfoId = Struct.new(:inode, :mode, :hard_links, :uid, :gid, :fsize, :date, :path, :type)
19
+ FileInfo = Struct.new(:inode, :mode, :hard_links, :owner, :group, :fsize, :date, :path, :type)
20
20
  UserName = Struct.new(:user)
21
21
 
22
22
  def ls(opts = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.8.6'
4
+ VERSION = '0.8.7'
5
5
  end
@@ -29,13 +29,13 @@ RSpec.describe Kanrisuru::Core::Path do
29
29
  expect(result.data).to be_instance_of(Array)
30
30
 
31
31
  file = result.find { |f| f.path == '.bashrc' }
32
- expect(file.uid).to eq(1000)
32
+ expect(file.owner).to eq(1000)
33
33
 
34
34
  case os_name
35
35
  when 'opensuse', 'sles'
36
- expect(file.gid).to eq(100)
36
+ expect(file.group).to eq(100)
37
37
  else
38
- expect(file.gid).to eq(1000)
38
+ expect(file.group).to eq(1000)
39
39
  end
40
40
  end
41
41
 
@@ -6,10 +6,10 @@ RSpec.describe Kanrisuru::Core::Path do
6
6
  it 'responds to path fields' do
7
7
  expect(Kanrisuru::Core::Path::FilePath.new).to respond_to(:path)
8
8
  expect(Kanrisuru::Core::Path::FileInfoId.new).to respond_to(
9
- :inode, :mode, :memory_blocks, :uid, :gid, :fsize, :date, :path, :type
9
+ :inode, :mode, :hard_links, :uid, :gid, :fsize, :date, :path, :type
10
10
  )
11
11
  expect(Kanrisuru::Core::Path::FileInfo.new).to respond_to(
12
- :inode, :mode, :memory_blocks, :owner, :group, :fsize, :date, :path, :type
12
+ :inode, :mode, :hard_links, :owner, :group, :fsize, :date, :path, :type
13
13
  )
14
14
  expect(Kanrisuru::Core::Path::UserName.new).to respond_to(:user)
15
15
  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.6
4
+ version: 0.8.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina