From a373e12f0fd164055f886aee1e7cd27d6c4c7ec2 Mon Sep 17 00:00:00 2001 From: Arthur Nogueira Neves Date: Mon, 12 Jun 2023 21:21:47 -0400 Subject: [PATCH] move repo to my name --- CONTRIBUTING.md | 4 ++-- README.md | 8 ++++---- example/README.md | 2 +- go.mod | 2 +- lib/twirp/service.rb | 2 +- protoc-gen-twirp_ruby/main.go | 2 +- twirp.gemspec | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 244563f..560d362 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,9 +21,9 @@ Once enough new features are added, a new release is drafted. * `protoc-gen-twirp_ruby/version.go` * Run `bundle install` to update the `Gemfile.lock` file with the new version. * Run `rake` to run tests. - * Re-generate code (see [example/README.md](example/README.md)). Make sure to use the latest version of `protoc-gen-twirp_ruby`; if the repo is in `$GOPATH/src/github.com/github/twirp-ruby`, then you only need to do `go install github.com/github/twirp-ruby/protoc-gen-twirp_ruby` before running the `protoc` command to generate code. The generated code should be annotated with the new version. + * Re-generate code (see [example/README.md](example/README.md)). Make sure to use the latest version of `protoc-gen-twirp_ruby`; if the repo is in `$GOPATH/src/github.com/arthurnn/twirp-ruby`, then you only need to do `go install github.com/arthurnn/twirp-ruby/protoc-gen-twirp_ruby` before running the `protoc` command to generate code. The generated code should be annotated with the new version. * Update example code and README if needed with new features. * Commit changes for the new version in main and push to remote. - * [Draft a new release](https://github.com/github/twirp-ruby/releases) in Github. Create a new tag with the version. Add release notes (see previous releases to keep the same format). + * [Draft a new release](https://github.com/arthurnn/twirp-ruby/releases) in Github. Create a new tag with the version. Add release notes (see previous releases to keep the same format). * Build and push the gem: `rake release`. * Update the Draft release with the created tag, and publish it. diff --git a/README.md b/README.md index 0688e28..c83eec1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Twirp-Ruby -[![Run Tests](https://github.com/github/twirp-ruby/actions/workflows/tests.yml/badge.svg)](https://github.com/github/twirp-ruby/actions/workflows/tests.yml) +[![Run Tests](https://github.com/arthurnn/twirp-ruby/actions/workflows/tests.yml/badge.svg)](https://github.com/arthurnn/twirp-ruby/actions/workflows/tests.yml) [Twirp is a protocol](https://twitchtv.github.io/twirp/docs/spec_v5.html) for routing and serialization of services defined in a [.proto file](https://developers.google.com/protocol-buffers/docs/proto3), allowing easy implementation of RPC services with auto-generated clients in different languages. @@ -11,12 +11,12 @@ The [canonical implementation](https://github.com/twitchtv/twirp) is in Golang. Add `gem "twirp"` to your Gemfile, or install with `gem install twirp`. -To auto-generate Ruby code from a proto file, use the `protoc` plugin and the `--ruby_out` option ([see Wiki page](https://github.com/github/twirp-ruby/wiki/Code-Generation)). +To auto-generate Ruby code from a proto file, use the `protoc` plugin and the `--ruby_out` option ([see Wiki page](https://github.com/arthurnn/twirp-ruby/wiki/Code-Generation)). ## Documentation -[On the wiki](https://github.com/github/twirp-ruby/wiki). +[On the wiki](https://github.com/arthurnn/twirp-ruby/wiki). ## Contributing @@ -25,4 +25,4 @@ To auto-generate Ruby code from a proto file, use the `protoc` plugin and the `- ## Releases and changes -See the [releases](https://github.com/github/twirp-ruby/releases) page for latest information about released versions. +See the [releases](https://github.com/arthurnn/twirp-ruby/releases) page for latest information about released versions. diff --git a/example/README.md b/example/README.md index 9aae1f5..cab0e01 100644 --- a/example/README.md +++ b/example/README.md @@ -39,7 +39,7 @@ Make sure you have the [protobuf compiler](https://github.com/golang/protobuf) ( Install the twirp plugin with go: ```sh -go get -u github.com/github/twirp-ruby/protoc-gen-twirp_ruby +go get -u github.com/arthurnn/twirp-ruby/protoc-gen-twirp_ruby ``` From the `/example` folder, run the generator command: diff --git a/go.mod b/go.mod index bdfca17..d56c71e 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/github/twirp-ruby +module github.com/arthurnn/twirp-ruby go 1.17 diff --git a/lib/twirp/service.rb b/lib/twirp/service.rb index b7933ac..b64c250 100644 --- a/lib/twirp/service.rb +++ b/lib/twirp/service.rb @@ -138,7 +138,7 @@ module Twirp input = nil begin body_str = rack_request.body.read - rack_request.body.rewind # allow other middleware to read again (https://github.com/github/twirp-ruby/issues/50) + rack_request.body.rewind # allow other middleware to read again (https://github.com/arthurnn/twirp-ruby/issues/50) input = Encoding.decode(body_str, env[:input_class], content_type) rescue => e error_msg = "Invalid request body for rpc method #{method_name.inspect} with Content-Type=#{content_type}" diff --git a/protoc-gen-twirp_ruby/main.go b/protoc-gen-twirp_ruby/main.go index 2a872af..5b83a76 100644 --- a/protoc-gen-twirp_ruby/main.go +++ b/protoc-gen-twirp_ruby/main.go @@ -28,7 +28,7 @@ import ( descriptor "google.golang.org/protobuf/types/descriptorpb" plugin "google.golang.org/protobuf/types/pluginpb" - "github.com/github/twirp-ruby/internal/gen/typemap" + "github.com/arthurnn/twirp-ruby/internal/gen/typemap" ) func main() { diff --git a/twirp.gemspec b/twirp.gemspec index e6003e9..965b58d 100644 --- a/twirp.gemspec +++ b/twirp.gemspec @@ -11,7 +11,7 @@ Gem::Specification.new do |spec| spec.email = ["forbescyrus@gmail.com", "tothemario@gmail.com"] spec.summary = %q{Twirp services in Ruby.} spec.description = %q{Twirp is a simple RPC framework with protobuf service definitions. The Twirp gem provides native support for Ruby.} - spec.homepage = "https://github.com/github/twirp-ruby" + spec.homepage = "https://github.com/arthurnn/twirp-ruby" spec.license = "MIT" spec.files = Dir['lib/**/*'] + %w(Gemfile LICENSE README.md twirp.gemspec)