diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 217f60d..912003e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - ruby-version: ['3.2', '3.1', '3.0', '2.7', '2.6'] + ruby-version: ['3.4', '3.3', '3.2', '3.1', '3.0', '2.7'] steps: - uses: actions/checkout@v3 @@ -25,10 +25,8 @@ jobs: with: ruby-version: ${{matrix.ruby-version}} bundler-cache: true - - name: Updating RubyGems - run: gem update --system - name: Install dependencies - run: bundle install + run: bundle install --quiet - name: Rubocop run: bundle exec rubocop -D - name: Rspec diff --git a/lib/memfs/dir.rb b/lib/memfs/dir.rb index 486d813..fd9ef5a 100644 --- a/lib/memfs/dir.rb +++ b/lib/memfs/dir.rb @@ -160,13 +160,14 @@ def tell @pos end - private - GLOB_FLAGS = if defined?(File::FNM_EXTGLOB) File::FNM_EXTGLOB | File::FNM_PATHNAME else File::FNM_PATHNAME end + private_constant :GLOB_FLAGS + + private attr_accessor :entry, :max_seek, :state diff --git a/lib/memfs/file.rb b/lib/memfs/file.rb index 2b23335..ce4fb9e 100644 --- a/lib/memfs/file.rb +++ b/lib/memfs/file.rb @@ -207,7 +207,7 @@ def self.symlink(old_name, new_name) end def self.symlink?(path) - lstat_query(path, :symlink?) + lstat_query?(path, :symlink?) end def self.truncate(path, length) @@ -340,10 +340,10 @@ def self.stat_query(path, query, force_boolean: true) end private_class_method :stat_query - def self.lstat_query(path, query) + def self.lstat_query?(path, query) response = fs.find(path) && lstat(path).public_send(query) !!response end - private_class_method :lstat_query + private_class_method :lstat_query? end end