Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,3 @@ ruby:
ruby_h_to_go:
- changed-files:
- any-glob-to-any-file: "_tools/ruby_h_to_go/**/*"

patch_for_go_gem:
- changed-files:
- any-glob-to-any-file: "_tools/patch_for_go_gem/**/*"
1 change: 0 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ on:
- ".github/pages.yml"
- ".github/release.yml"
- ".github/workflows/labeler.yml"
- ".github/workflows/patch_for_go_gem.yml"
- ".github/workflows/rbs-collection-updater.yml"
- "_benchmark/**"

Expand Down
85 changes: 0 additions & 85 deletions .github/workflows/patch_for_go_gem.yml

This file was deleted.

17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,11 @@
See [.github/workflows/matrix.json](.github/workflows/matrix.json) for details

## Getting started
At first, patch to make a gem into a Go gem right after `bundle gem`
Run followings

See [_tools/patch_for_go_gem/](_tools/patch_for_go_gem/)

Please also add the following depending on the CI you are using.

### GitHub Actions
e.g.

```yml
- uses: actions/setup-go@v5
with:
go-version-file: ext/GEM_NAME/go.mod
```
1. `bundle gem <GEM_NAME> --ext=go` **(Requires bundler v4.0.0.beta1+)**
2. `bundle install`
3. `bundle exec rake go:mod_tidy`

## Implementing Ruby methods in Go
For example, consider the following Ruby method implemented in Go
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ task :changelog, [:before, :after] do |_, params|
sh "ruby _tools/changelog_generator/changelog_generator.rb #{args.join(" ")}"
end

task build_all: %w[ruby:build_all go:build_all go_gem:test ruby_h_to_go:test patch_for_go_gem:test]
task build_all: %w[ruby:build_all go:build_all go_gem:test ruby_h_to_go:test]

task default: :build_all
4 changes: 0 additions & 4 deletions _gem/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ Add below.
spec.add_dependency "go_gem"
```

See below for details.

[/_tools/patch_for_go_gem/](/_tools/patch_for_go_gem/)

## Usage
### [`create_go_makefile`](https://ruby-go-gem.github.io/go-gem-wrapper/GoGem/Mkmf.html#create_go_makefile-instance_method)
`create_go_makefile` is an extension of `create_makefile`.
Expand Down
10 changes: 0 additions & 10 deletions _tasks/patch_for_go_gem.rake

This file was deleted.

56 changes: 0 additions & 56 deletions _tools/patch_for_go_gem/.gitignore

This file was deleted.

2 changes: 0 additions & 2 deletions _tools/patch_for_go_gem/.rspec

This file was deleted.

20 changes: 0 additions & 20 deletions _tools/patch_for_go_gem/README.md

This file was deleted.

Loading
Loading