<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/ext/pathname/lib/pathname.rb, branch v3_4_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/pathname] Bump up v0.4.0</title>
<updated>2024-11-06T07:09:08+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2024-11-06T07:08:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0949c586c05e7513497fd2e84edb039517362dd3'/>
<id>0949c586c05e7513497fd2e84edb039517362dd3</id>
<content type='text'>
https://github.com/ruby/pathname/commit/b020cbde46
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pathname/commit/b020cbde46
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow method chaining with Pathname#mkpath</title>
<updated>2024-10-04T03:21:27+00:00</updated>
<author>
<name>schneems</name>
<email>richard.schneeman+foo@gmail.com</email>
</author>
<published>2020-10-26T18:46:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3c54b8e9205fa8debe09447138fd08aeaa59e69c'/>
<id>3c54b8e9205fa8debe09447138fd08aeaa59e69c</id>
<content type='text'>
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(&amp;: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
```
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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(&amp;: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
```
</pre>
</div>
</content>
</entry>
<entry>
<title>Introduce Pathname.mktmpdir</title>
<updated>2024-10-04T02:15:33+00:00</updated>
<author>
<name>schneems</name>
<email>richard.schneeman+foo@gmail.com</email>
</author>
<published>2020-10-27T18:54:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=08346e7267b4f17ae207d67543d5f78c2541dc86'/>
<id>08346e7267b4f17ae207d67543d5f78c2541dc86</id>
<content type='text'>
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
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
```</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pathname] use delete_prefix instead of sub in find method</title>
<updated>2024-09-11T04:49:08+00:00</updated>
<author>
<name>Ivan Kuchin</name>
<email>tadump+git@gmail.com</email>
</author>
<published>2023-12-27T13:16:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6c16598a72213b492132e3f26bd7ba15a2f7113e'/>
<id>6c16598a72213b492132e3f26bd7ba15a2f7113e</id>
<content type='text'>
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.

https://github.com/ruby/pathname/commit/0070f43f19
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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.

https://github.com/ruby/pathname/commit/0070f43f19
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pathname] require fileutils in both methods using it</title>
<updated>2023-12-28T00:07:56+00:00</updated>
<author>
<name>Ivan Kuchin</name>
<email>tadump+git@gmail.com</email>
</author>
<published>2023-12-27T13:14:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1f1edeef3fe0a8ed0ae441bdf2418f4a8d9e352c'/>
<id>1f1edeef3fe0a8ed0ae441bdf2418f4a8d9e352c</id>
<content type='text'>
rmtree is already requiring fileutils, but mkpath apparently relies on
autoload of FileUtils. Switch to require for both methods

https://github.com/ruby/pathname/commit/07ad1fb41a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rmtree is already requiring fileutils, but mkpath apparently relies on
autoload of FileUtils. Switch to require for both methods

https://github.com/ruby/pathname/commit/07ad1fb41a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pathname] Bump up 0.3.0</title>
<updated>2023-11-07T07:55:13+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-11-07T07:54:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fbb63605c4dc9d0dbff3ba819bc78dae6193512b'/>
<id>fbb63605c4dc9d0dbff3ba819bc78dae6193512b</id>
<content type='text'>
https://github.com/ruby/pathname/commit/f3d23679b0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pathname/commit/f3d23679b0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pathname] Expose Pathname::VERSION</title>
<updated>2023-04-14T03:42:36+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2023-04-14T02:06:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8a06f1a69f987d37aa1b3701668a1a1b6c826667'/>
<id>8a06f1a69f987d37aa1b3701668a1a1b6c826667</id>
<content type='text'>
https://github.com/ruby/pathname/commit/2b0b1a82ee
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pathname/commit/2b0b1a82ee
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pathname] [Misc #19155] [DOC] Addion of absolute paths</title>
<updated>2022-12-03T15:53:20+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-12-03T15:31:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=b8a73e704ddc77db36317dda293e99fb0ee641f4'/>
<id>b8a73e704ddc77db36317dda293e99fb0ee641f4</id>
<content type='text'>
https://github.com/ruby/pathname/commit/3cb5ed2576
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/pathname/commit/3cb5ed2576
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/pathname] Fix `autoload` of `FileUtils`</title>
<updated>2022-07-27T12:05:10+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-07-27T05:11:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=64c8291c7e7b6c5e1357c48ab4edb0f434ef1739'/>
<id>64c8291c7e7b6c5e1357c48ab4edb0f434ef1739</id>
<content type='text'>
Should not be `Pathname::FileUtils`.

https://github.com/ruby/pathname/commit/d1eb366e73
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Should not be `Pathname::FileUtils`.

https://github.com/ruby/pathname/commit/d1eb366e73
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge https://github.com/ruby/pathname/pull/8 for pathname</title>
<updated>2022-05-20T09:36:01+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-05-20T09:36:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c83ec3aba72aeb50df3b3188b6a009e93f11494a'/>
<id>c83ec3aba72aeb50df3b3188b6a009e93f11494a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
