Skip to content

Commit f41a4c1

Browse files
authored
Merge pull request #353 from ruby-go-gem/bundler-v4
Removed patch_for_go_gem and updated "Getting started" with `bundle gem --ext=go`
2 parents 05dd50c + 68467fa commit f41a4c1

File tree

13 files changed

+5
-621
lines changed

13 files changed

+5
-621
lines changed

.github/labeler.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,3 @@ ruby:
99
ruby_h_to_go:
1010
- changed-files:
1111
- any-glob-to-any-file: "_tools/ruby_h_to_go/**/*"
12-
13-
patch_for_go_gem:
14-
- changed-files:
15-
- any-glob-to-any-file: "_tools/patch_for_go_gem/**/*"

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ on:
1414
- ".github/pages.yml"
1515
- ".github/release.yml"
1616
- ".github/workflows/labeler.yml"
17-
- ".github/workflows/patch_for_go_gem.yml"
1817
- ".github/workflows/rbs-collection-updater.yml"
1918
- "_benchmark/**"
2019

.github/workflows/patch_for_go_gem.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,11 @@
2323
See [.github/workflows/matrix.json](.github/workflows/matrix.json) for details
2424

2525
## Getting started
26-
At first, patch to make a gem into a Go gem right after `bundle gem`
26+
Run followings
2727

28-
See [_tools/patch_for_go_gem/](_tools/patch_for_go_gem/)
29-
30-
Please also add the following depending on the CI you are using.
31-
32-
### GitHub Actions
33-
e.g.
34-
35-
```yml
36-
- uses: actions/setup-go@v5
37-
with:
38-
go-version-file: ext/GEM_NAME/go.mod
39-
```
28+
1. `bundle gem <GEM_NAME> --ext=go` **(Requires bundler v4.0.0.beta1+)**
29+
2. `bundle install`
30+
3. `bundle exec rake go:mod_tidy`
4031

4132
## Implementing Ruby methods in Go
4233
For example, consider the following Ruby method implemented in Go

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ task :changelog, [:before, :after] do |_, params|
2525
sh "ruby _tools/changelog_generator/changelog_generator.rb #{args.join(" ")}"
2626
end
2727

28-
task build_all: %w[ruby:build_all go:build_all go_gem:test ruby_h_to_go:test patch_for_go_gem:test]
28+
task build_all: %w[ruby:build_all go:build_all go_gem:test ruby_h_to_go:test]
2929

3030
task default: :build_all

_gem/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ Add below.
1010
spec.add_dependency "go_gem"
1111
```
1212

13-
See below for details.
14-
15-
[/_tools/patch_for_go_gem/](/_tools/patch_for_go_gem/)
16-
1713
## Usage
1814
### [`create_go_makefile`](https://ruby-go-gem.github.io/go-gem-wrapper/GoGem/Mkmf.html#create_go_makefile-instance_method)
1915
`create_go_makefile` is an extension of `create_makefile`.

_tasks/patch_for_go_gem.rake

Lines changed: 0 additions & 10 deletions
This file was deleted.

_tools/patch_for_go_gem/.gitignore

Lines changed: 0 additions & 56 deletions
This file was deleted.

_tools/patch_for_go_gem/.rspec

Lines changed: 0 additions & 2 deletions
This file was deleted.

_tools/patch_for_go_gem/README.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)