<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/bundler/templates, branch v4.0.3</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/rubygems] Fix native extension loading in newgem template for RHEL-based systems</title>
<updated>2025-12-08T07:03:32+00:00</updated>
<author>
<name>yoshoku</name>
<email>yoshoku@outlook.com</email>
</author>
<published>2025-12-04T00:04:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=1de15815a8b85f02ba73d9f7c30322530b471b5f'/>
<id>1de15815a8b85f02ba73d9f7c30322530b471b5f</id>
<content type='text'>
Add fallback to `require` when `require_relative` fails to load native
extensions. This addresses an issue on RHEL-based Linux distributions
where Ruby scripts and built native extension shared libraries are
installed in separate directories.

https://github.com/ruby/rubygems/commit/68599bd107
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add fallback to `require` when `require_relative` fails to load native
extensions. This addresses an issue on RHEL-based Linux distributions
where Ruby scripts and built native extension shared libraries are
installed in separate directories.

https://github.com/ruby/rubygems/commit/68599bd107
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Fixed RuboCop offense in Rakefile generated by `bundle gem`</title>
<updated>2025-11-21T03:13:59+00:00</updated>
<author>
<name>sue445</name>
<email>sue445@sue445.net</email>
</author>
<published>2025-11-21T00:50:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9aa09b4620fd633ef2ffaff4bdae5e344b173ee6'/>
<id>9aa09b4620fd633ef2ffaff4bdae5e344b173ee6</id>
<content type='text'>
```
Offenses:

Rakefile:18:1: C: [Correctable] Layout/EmptyLines: Extra blank line detected.

Diff:
@@ -11,4 +11,5 @@
   ext.lib_dir = "lib/test_gem"
 end

+
 task default: :compile

https://github.com/ruby/rubygems/commit/8c414729df
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
```
Offenses:

Rakefile:18:1: C: [Correctable] Layout/EmptyLines: Extra blank line detected.

Diff:
@@ -11,4 +11,5 @@
   ext.lib_dir = "lib/test_gem"
 end

+
 task default: :compile

https://github.com/ruby/rubygems/commit/8c414729df
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Add go_gem/rake_task for Go native extention gem skeleton</title>
<updated>2025-11-21T03:13:59+00:00</updated>
<author>
<name>sue445</name>
<email>sue445@sue445.net</email>
</author>
<published>2025-11-20T13:34:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a26f8235283b27dc1c5018addd0dfac209aaaa17'/>
<id>a26f8235283b27dc1c5018addd0dfac209aaaa17</id>
<content type='text'>
https://github.com/ruby/rubygems/commit/64f92d2da0
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rubygems/commit/64f92d2da0
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Add `--ext=go` to `bundle gem`</title>
<updated>2025-11-19T00:47:07+00:00</updated>
<author>
<name>Go Sueyoshi</name>
<email>sue445@users.noreply.github.com</email>
</author>
<published>2025-11-19T00:46:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4423facbffd5bd523541ebf42dc274272b1de732'/>
<id>4423facbffd5bd523541ebf42dc274272b1de732</id>
<content type='text'>
(https://github.com/ruby/rubygems/pull/8183)

* Add new gem templates

* Add `--ext=go` in `bundle gem`

* Add setup-go to .github/workflows/main.yml

* Embed go version in go.mod

* Use go in bundler CI

* Add example method to template

* Install Go in .circleci/config.yml

* Install Go in .gitlab-ci.yml

* Allow hard tabs in go template

* Run `rake update_manifest`

* Fix test

* Move go_gem to gemspec

Respect to 9b0ec80

* nits: :golf:

* includes valid module name in go.mod

* generate header file

* Run `go mod tidy` to create `go.sum`

* Check if `go.sum` is generated only when Go is installed

To avoid test failure in environments where Go is not installed

* Run CI

* Workaround for hung up

c.f. https://github.com/rubygems/rubygems/actions/runs/11639408044/job/32415545422

* Write man for --ext=go

* Re-generate man with `./bin/rake man:build`

* pinning :pushpin:

* Update with `./bin/rake man:build`

* nits: Extract to method

* nits: Use `sys_exec` instead of `system`

* Clean go module cache after test

Workaround following error

```
1) bundle gem gem naming with underscore --ext parameter set with go includes go_gem extension in extconf.rb
   Failure/Error: FileUtils.rm_r(dir)

   Errno::EACCES:
     Permission denied @ apply2files - /home/runner/work/rubygems/rubygems/bundler/tmp/2.2/home/go/pkg/mod/gopkg.in/yaml.v3@v3.0.1/decode_test.go
   # ./spec/support/helpers.rb:37:in `block in reset!'
   # ./spec/support/helpers.rb:21:in `each'
   # ./spec/support/helpers.rb:21:in `reset!'
   # ./spec/spec_helper.rb:130:in `block (2 levels) in &lt;top (required)&gt;'
   # /home/runner/work/rubygems/rubygems/lib/rubygems.rb:303:in `load'
   # /home/runner/work/rubygems/rubygems/lib/rubygems.rb:303:in `activate_and_load_bin_path'
```

Files installed with `go get` have permissions set to 444
ref. https://github.com/golang/go/issues/35615

```
$ ls -l /home/runner/work/rubygems/rubygems/bundler/tmp/2.2/home/go/pkg/mod/gopkg.in/yaml.v3@v3.0.1/decode_test.go
-r--r--r-- 1 runner runner 42320 Nov 15 06:38 /home/runner/work/rubygems/rubygems/bundler/tmp/2.2/home/go/pkg/mod/gopkg.in/yaml.v3@v3.0.1/decode_test.go
```

So they cannot be deleted by `FileUtils.rm_r`.
Therefore, this is necessary to execute `go clean -modcache` separately from `FileUtils.rm_r` to circumvent it.

* Remove needless changes

ref. https://github.com/ruby/rubygems/pull/8183#discussion_r2532902051

* ci: setup-go is needless

* Don't run go command in `bundle gem`

ref. https://github.com/ruby/rubygems/pull/8183#discussion_r2532765470

* Revert unrelated date changes

---------

https://github.com/ruby/rubygems/commit/260d7d60b3

Co-authored-by: Hiroshi SHIBATA &lt;hsbt@ruby-lang.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(https://github.com/ruby/rubygems/pull/8183)

* Add new gem templates

* Add `--ext=go` in `bundle gem`

* Add setup-go to .github/workflows/main.yml

* Embed go version in go.mod

* Use go in bundler CI

* Add example method to template

* Install Go in .circleci/config.yml

* Install Go in .gitlab-ci.yml

* Allow hard tabs in go template

* Run `rake update_manifest`

* Fix test

* Move go_gem to gemspec

Respect to 9b0ec80

* nits: :golf:

* includes valid module name in go.mod

* generate header file

* Run `go mod tidy` to create `go.sum`

* Check if `go.sum` is generated only when Go is installed

To avoid test failure in environments where Go is not installed

* Run CI

* Workaround for hung up

c.f. https://github.com/rubygems/rubygems/actions/runs/11639408044/job/32415545422

* Write man for --ext=go

* Re-generate man with `./bin/rake man:build`

* pinning :pushpin:

* Update with `./bin/rake man:build`

* nits: Extract to method

* nits: Use `sys_exec` instead of `system`

* Clean go module cache after test

Workaround following error

```
1) bundle gem gem naming with underscore --ext parameter set with go includes go_gem extension in extconf.rb
   Failure/Error: FileUtils.rm_r(dir)

   Errno::EACCES:
     Permission denied @ apply2files - /home/runner/work/rubygems/rubygems/bundler/tmp/2.2/home/go/pkg/mod/gopkg.in/yaml.v3@v3.0.1/decode_test.go
   # ./spec/support/helpers.rb:37:in `block in reset!'
   # ./spec/support/helpers.rb:21:in `each'
   # ./spec/support/helpers.rb:21:in `reset!'
   # ./spec/spec_helper.rb:130:in `block (2 levels) in &lt;top (required)&gt;'
   # /home/runner/work/rubygems/rubygems/lib/rubygems.rb:303:in `load'
   # /home/runner/work/rubygems/rubygems/lib/rubygems.rb:303:in `activate_and_load_bin_path'
```

Files installed with `go get` have permissions set to 444
ref. https://github.com/golang/go/issues/35615

```
$ ls -l /home/runner/work/rubygems/rubygems/bundler/tmp/2.2/home/go/pkg/mod/gopkg.in/yaml.v3@v3.0.1/decode_test.go
-r--r--r-- 1 runner runner 42320 Nov 15 06:38 /home/runner/work/rubygems/rubygems/bundler/tmp/2.2/home/go/pkg/mod/gopkg.in/yaml.v3@v3.0.1/decode_test.go
```

So they cannot be deleted by `FileUtils.rm_r`.
Therefore, this is necessary to execute `go clean -modcache` separately from `FileUtils.rm_r` to circumvent it.

* Remove needless changes

ref. https://github.com/ruby/rubygems/pull/8183#discussion_r2532902051

* ci: setup-go is needless

* Don't run go command in `bundle gem`

ref. https://github.com/ruby/rubygems/pull/8183#discussion_r2532765470

* Revert unrelated date changes

---------

https://github.com/ruby/rubygems/commit/260d7d60b3

Co-authored-by: Hiroshi SHIBATA &lt;hsbt@ruby-lang.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Make more shortly with https://rubyonrails.org/conduct</title>
<updated>2025-10-28T08:28:38+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2025-10-23T00:08:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a27f430de7fdf9b4ab9b158c44aa40b81bd705cd'/>
<id>a27f430de7fdf9b4ab9b158c44aa40b81bd705cd</id>
<content type='text'>
https://github.com/ruby/rubygems/commit/62ba34d6c9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rubygems/commit/62ba34d6c9
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] Update new gem CoC and prompt</title>
<updated>2025-10-28T08:28:38+00:00</updated>
<author>
<name>dysonreturns</name>
<email>22199434-dysonreturns@users.noreply.gitlab.com</email>
</author>
<published>2025-10-21T18:21:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=7550f7e453713b776cf39d9ccd0154d9e33cf6f1'/>
<id>7550f7e453713b776cf39d9ccd0154d9e33cf6f1</id>
<content type='text'>
Prompt wording "prefer safe, respectful, productive, and collaborative spaces" is copied verbatim from Ruby Community Conduct Guideline.

https://github.com/ruby/rubygems/commit/6cdf5f6d8a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prompt wording "prefer safe, respectful, productive, and collaborative spaces" is copied verbatim from Ruby Community Conduct Guideline.

https://github.com/ruby/rubygems/commit/6cdf5f6d8a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/rubygems] update magnus version in rust extension gem template</title>
<updated>2025-10-20T07:04:08+00:00</updated>
<author>
<name>Mat Sadler</name>
<email>mat@sourcetagsandcodes.com</email>
</author>
<published>2025-10-18T02:49:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=6eb75f6c36288cdd7522f27ad18608d13031f2b8'/>
<id>6eb75f6c36288cdd7522f27ad18608d13031f2b8</id>
<content type='text'>
https://github.com/ruby/rubygems/commit/1ba8eb4ab3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/rubygems/commit/1ba8eb4ab3
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Fix spacing in bundle gem newgem.gemspec.tt</title>
<updated>2025-07-25T02:10:40+00:00</updated>
<author>
<name>Martin Emde</name>
<email>martinemde@users.noreply.github.com</email>
</author>
<published>2025-07-24T11:50:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=80712140af4229eec4da4e68cf7aaf6a659f5a85'/>
<id>80712140af4229eec4da4e68cf7aaf6a659f5a85</id>
<content type='text'>
The changelog line was generating indented more than it should.

https://github.com/rubygems/rubygems/commit/da6109ef5b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The changelog line was generating indented more than it should.

https://github.com/rubygems/rubygems/commit/da6109ef5b
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Update gemspec based on provided github username when exists</title>
<updated>2025-07-09T04:48:37+00:00</updated>
<author>
<name>Sweta Sanghavi</name>
<email>sweta.sanghavi@gusto.com</email>
</author>
<published>2025-06-23T19:12:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4ed2757543bcc6764315a6d2e4281a9d62ef49f1'/>
<id>4ed2757543bcc6764315a6d2e4281a9d62ef49f1</id>
<content type='text'>
* Conditionally set changelog_url if gh username passed
and enabled
* conditionally set homepage, source code uri, homepage uri when gh
  username passed in
* update documentation to say username will also be used for gemspec file

https://github.com/rubygems/rubygems/commit/1c1ada593b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Conditionally set changelog_url if gh username passed
and enabled
* conditionally set homepage, source code uri, homepage uri when gh
  username passed in
* update documentation to say username will also be used for gemspec file

https://github.com/rubygems/rubygems/commit/1c1ada593b
</pre>
</div>
</content>
</entry>
<entry>
<title>[rubygems/rubygems] Use `persist-credentials: false` in template</title>
<updated>2025-06-19T01:23:36+00:00</updated>
<author>
<name>Landon Grindheim</name>
<email>landon.grindheim@gmail.com</email>
</author>
<published>2025-06-18T19:06:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=471da0f0bd8adcff4a32d51fcf5fe8828f05d6b0'/>
<id>471da0f0bd8adcff4a32d51fcf5fe8828f05d6b0</id>
<content type='text'>
`actions/checkout` defaults this value to `true`, causing credentials to
be written to `.git/config`. By setting it to `false`, we lessen the
likelihood of secrets being written to disk.

https://github.com/rubygems/rubygems/commit/a751d36456
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`actions/checkout` defaults this value to `true`, causing credentials to
be written to `.git/config`. By setting it to `false`, we lessen the
likelihood of secrets being written to disk.

https://github.com/rubygems/rubygems/commit/a751d36456
</pre>
</div>
</content>
</entry>
</feed>
