зеркало из https://github.com/arthurnn/twirp-ruby.git
move repo to my name
This commit is contained in:
Родитель
0ba3311683
Коммит
a373e12f0f
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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:
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/github/twirp-ruby
|
||||
module github.com/arthurnn/twirp-ruby
|
||||
|
||||
go 1.17
|
||||
|
||||
|
|
|
@ -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}"
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче