Skip to content

Commit d4cda34

Browse files
hsbtclaude
andcommitted
Rename pathname_builtin.rb to pathname.rb
Rename the builtin Ruby file from pathname_builtin.rb to pathname.rb and update all references in the build system, documentation, and source files accordingly. Also add rb_provide("pathname.rb") to prevent double-loading when the file is found on the load path via -I. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7be18b5 commit d4cda34

7 files changed

Lines changed: 8 additions & 7 deletions

File tree

.document

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ marshal.rb
2222
numeric.rb
2323
nilclass.rb
2424
pack.rb
25-
pathname_builtin.rb
25+
pathname.rb
2626
ractor.rb
2727
string.rb
2828
symbol.rb

common.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ BUILTIN_RB_SRCS = \
11921192
$(srcdir)/array.rb \
11931193
$(srcdir)/hash.rb \
11941194
$(srcdir)/kernel.rb \
1195-
$(srcdir)/pathname_builtin.rb \
1195+
$(srcdir)/pathname.rb \
11961196
$(srcdir)/ractor.rb \
11971197
$(srcdir)/symbol.rb \
11981198
$(srcdir)/timev.rb \

depend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9715,7 +9715,7 @@ miniinit.$(OBJEXT): {$(VPATH)}numeric.rb
97159715
miniinit.$(OBJEXT): {$(VPATH)}onigmo.h
97169716
miniinit.$(OBJEXT): {$(VPATH)}oniguruma.h
97179717
miniinit.$(OBJEXT): {$(VPATH)}pack.rb
9718-
miniinit.$(OBJEXT): {$(VPATH)}pathname_builtin.rb
9718+
miniinit.$(OBJEXT): {$(VPATH)}pathname.rb
97199719
miniinit.$(OBJEXT): {$(VPATH)}prelude.rb
97209720
miniinit.$(OBJEXT): {$(VPATH)}prism_compile.h
97219721
miniinit.$(OBJEXT): {$(VPATH)}prism_xallocator.h
@@ -11305,7 +11305,7 @@ pathname.$(OBJEXT): {$(VPATH)}missing.h
1130511305
pathname.$(OBJEXT): {$(VPATH)}onigmo.h
1130611306
pathname.$(OBJEXT): {$(VPATH)}oniguruma.h
1130711307
pathname.$(OBJEXT): {$(VPATH)}pathname.c
11308-
pathname.$(OBJEXT): {$(VPATH)}pathname_builtin.rbinc
11308+
pathname.$(OBJEXT): {$(VPATH)}pathname.rbinc
1130911309
pathname.$(OBJEXT): {$(VPATH)}ruby.h
1131011310
pathname.$(OBJEXT): {$(VPATH)}st.h
1131111311
pathname.$(OBJEXT): {$(VPATH)}subst.h

doc/maintainers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ consensus on ruby-core/ruby-dev.
5050

5151
* *No maintainer*
5252

53-
#### pathname_builtin.rb, lib/pathname.rb
53+
#### pathname.rb
5454

5555
* Tanaka Akira ([akr])
5656

inits.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ rb_call_builtin_inits(void)
101101
BUILTIN(ast);
102102
BUILTIN(trace_point);
103103
BUILTIN(pack);
104-
BUILTIN(pathname_builtin);
104+
BUILTIN(pathname);
105105
BUILTIN(warning);
106106
BUILTIN(array);
107107
BUILTIN(hash);

pathname.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ path_sub(int argc, VALUE *argv, VALUE self)
9797
return rb_class_new_instance(1, &str, rb_obj_class(self));
9898
}
9999

100-
#include "pathname_builtin.rbinc"
100+
#include "pathname.rbinc"
101101

102102
static void init_ids(void);
103103

@@ -120,6 +120,7 @@ InitVM_pathname(void)
120120
rb_define_method(rb_cPathname, "sub", path_sub, -1);
121121

122122
rb_provide("pathname.so");
123+
rb_provide("pathname.rb");
123124
rb_provide("pathname");
124125
}
125126

File renamed without changes.

0 commit comments

Comments
 (0)