Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/pathname
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.3.0
Choose a base ref
...
head repository: ruby/pathname
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.4.0
Choose a head ref
  • 13 commits
  • 7 files changed
  • 4 contributors

Commits on Dec 27, 2023

  1. 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
    toy committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    07ad1fb View commit details
    Browse the repository at this point in the history
  2. 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.
    toy committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    0070f43 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. Merge pull request #35 from toy/require-fileutils-instead-of-autoload

    require fileutils in both methods using it
    hsbt authored Dec 28, 2023
    Configuration menu
    Copy the full SHA
    0a895b3 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2024

  1. 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.
    peterzhu2118 committed Feb 22, 2024
    Configuration menu
    Copy the full SHA
    aca9613 View commit details
    Browse the repository at this point in the history

Commits on Apr 16, 2024

  1. Merge pull request #36 from ruby/rm-birthtime

    Remove check for File.birthtime
    hsbt authored Apr 16, 2024
    Configuration menu
    Copy the full SHA
    9d01900 View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Merge pull request #34 from toy/delete_prefix-instead-of-sub

    use delete_prefix instead of sub in find method
    hsbt authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    4d60558 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2024

  1. Introduce Pathname.mktmpdir

    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
    ```
    schneems authored and hsbt committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    74dc689 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d16d8d View commit details
    Browse the repository at this point in the history
  3. 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
    ```
    schneems authored and hsbt committed Oct 4, 2024
    Configuration menu
    Copy the full SHA
    9aed31c View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2024

  1. Configuration menu
    Copy the full SHA
    08f5264 View commit details
    Browse the repository at this point in the history
  2. Bump up v0.4.0

    hsbt committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    b020cbd View commit details
    Browse the repository at this point in the history
  3. Don't use bundle exec

    hsbt committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    ea48770 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03bef85 View commit details
    Browse the repository at this point in the history
Loading