-
Notifications
You must be signed in to change notification settings - Fork 21
Comparing changes
Open a pull request
base repository: ruby/pathname
base: v0.3.0
head repository: ruby/pathname
compare: v0.4.0
- 13 commits
- 7 files changed
- 4 contributors
Commits on Dec 27, 2023
-
require fileutils in both methods using it
rmtree is already requiring fileutils, but mkpath apparently relies on autoload of FileUtils. Switch to require for both methods
Configuration menu - View commit details
-
Copy full SHA for 07ad1fb - Browse repository at this point
Copy the full SHA 07ad1fbView commit details -
use delete_prefix instead of sub in find method
delete_prefix with a string is easier to read than a regular expression also it should be faster. It is available since ruby 2.5 and the gem requires ruby 2.7.
Configuration menu - View commit details
-
Copy full SHA for 0070f43 - Browse repository at this point
Copy the full SHA 0070f43View commit details
Commits on Dec 28, 2023
-
Merge pull request #35 from toy/require-fileutils-instead-of-autoload
require fileutils in both methods using it
Configuration menu - View commit details
-
Copy full SHA for 0a895b3 - Browse repository at this point
Copy the full SHA 0a895b3View commit details
Commits on Feb 22, 2024
-
Remove check for File.birthtime
File.birthtime has existed since Ruby 2.2, and pathname requires Ruby >= 2.7.0, so the method will always be there.
Configuration menu - View commit details
-
Copy full SHA for aca9613 - Browse repository at this point
Copy the full SHA aca9613View commit details
Commits on Apr 16, 2024
-
Merge pull request #36 from ruby/rm-birthtime
Remove check for File.birthtime
Configuration menu - View commit details
-
Copy full SHA for 9d01900 - Browse repository at this point
Copy the full SHA 9d01900View commit details
Commits on Sep 11, 2024
-
Merge pull request #34 from toy/delete_prefix-instead-of-sub
use delete_prefix instead of sub in find method
Configuration menu - View commit details
-
Copy full SHA for 4d60558 - Browse repository at this point
Copy the full SHA 4d60558View commit details
Commits on Oct 4, 2024
-
When I want to create a tmpdir I often want to manipulate it as a pathname. By introducing Pathname.mktmpdir I can get this behavior. Currently I must: ```ruby Dir.mktmpdir do |dir| dir = Pathname(dir) # ... code end ``` I would like to be able to instead: ```ruby Pathname.mktmpdir do |dir| # ... code end ```
Configuration menu - View commit details
-
Copy full SHA for 74dc689 - Browse repository at this point
Copy the full SHA 74dc689View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d16d8d - Browse repository at this point
Copy the full SHA 6d16d8dView commit details -
Allow method chaining with Pathname#mkpath
Currently in my code when I want to create a pathname object and create a path at the same time I must use tap ``` path = Pathname.new("/tmp/new").tap(&:mkpath) ``` I think it would be cleaner to be able to chain on the results of these methods instead: ``` path = Pathname.new("/tmp/new").mkpath ```Configuration menu - View commit details
-
Copy full SHA for 9aed31c - Browse repository at this point
Copy the full SHA 9aed31cView commit details
Commits on Nov 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 08f5264 - Browse repository at this point
Copy the full SHA 08f5264View commit details -
Configuration menu - View commit details
-
Copy full SHA for b020cbd - Browse repository at this point
Copy the full SHA b020cbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for ea48770 - Browse repository at this point
Copy the full SHA ea48770View commit details -
Configuration menu - View commit details
-
Copy full SHA for 03bef85 - Browse repository at this point
Copy the full SHA 03bef85View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v0.3.0...v0.4.0