kanrisuru 0.8.6 → 0.8.7
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 +4 -4
 - data/CHANGELOG.md +3 -0
 - data/lib/kanrisuru/core/path.rb +2 -2
 - data/lib/kanrisuru/version.rb +1 -1
 - data/spec/functional/core/path_spec.rb +3 -3
 - data/spec/unit/core/path_spec.rb +2 -2
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 401e4f3fbff30e96891e65a0cb9d1916d022f1128c3667de554776c775ea0b19
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 7e560e7e8c6e217fab2bf8b5afbe9c57224e488bac510cc58305d990880b0a7e
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 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 
     | 
    
         | 
    
        data/lib/kanrisuru/core/path.rb
    CHANGED
    
    | 
         @@ -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, : 
     | 
| 
       19 
     | 
    
         
            -
                  FileInfo = Struct.new(:inode, :mode, : 
     | 
| 
      
 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 = {})
         
     | 
    
        data/lib/kanrisuru/version.rb
    CHANGED
    
    
| 
         @@ -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. 
     | 
| 
      
 32 
     | 
    
         
            +
                    expect(file.owner).to eq(1000)
         
     | 
| 
       33 
33 
     | 
    
         | 
| 
       34 
34 
     | 
    
         
             
                    case os_name
         
     | 
| 
       35 
35 
     | 
    
         
             
                    when 'opensuse', 'sles'
         
     | 
| 
       36 
     | 
    
         
            -
                      expect(file. 
     | 
| 
      
 36 
     | 
    
         
            +
                      expect(file.group).to eq(100)
         
     | 
| 
       37 
37 
     | 
    
         
             
                    else
         
     | 
| 
       38 
     | 
    
         
            -
                      expect(file. 
     | 
| 
      
 38 
     | 
    
         
            +
                      expect(file.group).to eq(1000)
         
     | 
| 
       39 
39 
     | 
    
         
             
                    end
         
     | 
| 
       40 
40 
     | 
    
         
             
                  end
         
     | 
| 
       41 
41 
     | 
    
         | 
    
        data/spec/unit/core/path_spec.rb
    CHANGED
    
    | 
         @@ -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, : 
     | 
| 
      
 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, : 
     | 
| 
      
 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
         
     |