Skip to content

Conversation

@djberg96
Copy link
Contributor

@djberg96 djberg96 commented Oct 3, 2025

This PR adds a mktmpdir method along with corresponding tests.

There is also an update to the glob method to support options. Without this change I get:

memfs/lib/memfs/dir.rb:66:in `block (2 levels) in glob': undefined method `|' for an instance of Hash (NoMethodError)
  File.fnmatch?(pattern, path, flags | GLOB_FLAGS)
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:65:in `any?'
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:65:in `block in glob'
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:64:in `select'
  from /Users/dberger/Dev/memfs/lib/memfs/dir.rb:64:in `glob'

Addresses #36

Mostly written by Claude 4.5.

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']
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ended up making a separate PR for this stuff: #49

@simonc
Copy link
Owner

simonc commented Jan 31, 2026

Hi @djberg96. Thanks for this PR. I have merge the other one, could you rebase this one? I'll review it asap 😊

- Moving dev dependencies to Gemfile
- Adding binstubs for main binaries
- Bumping rake to v13.x
- Enabling Ruby warnings during tests
- Splitting rubocop and specs in CI
- Improving syntax

Closes simonc#51.
@djberg96 djberg96 force-pushed the mktmpdir_support branch 2 times, most recently from ccad6b1 to f8122cd Compare January 31, 2026 19:43
@simonc
Copy link
Owner

simonc commented Jan 31, 2026

@djberg96 Sorry I made a few changes on main at the same time, I may have made your life harder 🙈 I'm not touching anything else now.

@djberg96
Copy link
Contributor Author

djberg96 commented Jan 31, 2026

It's fucked, I don't know wtf github is doing. How could there be a diff if I literally copy/pasted the ci.yml file from main?

@djberg96 djberg96 closed this Jan 31, 2026
@simonc
Copy link
Owner

simonc commented Jan 31, 2026

@djberg96 Let me know if you just want to push the branch, I can take care of the unfucking 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants