rails_twirp 0.13.0 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.standard.yml +0 -1
- data/CHANGELOG.md +7 -0
- data/lib/rails_twirp/version.rb +1 -1
- data/rails_twirp.gemspec +1 -1
- data/test/dummy/app/views/dummy/rpc_name_check.pb.pbbuilder +1 -1
- data/test/dummy/proto/api_pb.rb +2 -2
- data/test/dummy/proto/api_twirp.rb +13 -13
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46c49b6df28547639b8c56395dfb5c9f327a4ec4b0c2b73b14cdf6b6594f1e17
|
4
|
+
data.tar.gz: f232e0c6f6eac4d4034050cf6cc38a8c6bdfa6a77b260fe54a2d4473a0512350
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e788cdd4ca43c5524ecc34f3dd43dbbbf7081689e0154133def3fcefd92955a46a3aa5abe280a44b51faef30b630f651bdcdbb00b5cade1194e83d969ddfac95
|
7
|
+
data.tar.gz: 1bb844a44698a1a9d1c85f80a555191f8ce5d43a8212e5629b4bdd657b3f908a37b6b50a65d1f28913015bfb477d984c40a09a6a4ba3bf86b20f0da4914c89ae
|
data/.standard.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
### 0.13.2
|
2
|
+
* revert - include `test/` folder in a final gem distribution
|
3
|
+
|
4
|
+
### 0.13.1
|
5
|
+
* Don't include `test/` folder in a final gem distribution
|
6
|
+
* Format dummy app code with standardrb
|
7
|
+
|
1
8
|
### 0.13.0
|
2
9
|
* Adding #controller_name methods to Metal/Base controller (used for instrumentation)
|
3
10
|
* Include `ActionController::Caching` with Base controller/helpers
|
data/lib/rails_twirp/version.rb
CHANGED
data/rails_twirp.gemspec
CHANGED
@@ -12,6 +12,6 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.files = `git ls-files`.split("\n")
|
13
13
|
|
14
14
|
spec.add_dependency "rails", ">= 6.1.3"
|
15
|
-
spec.add_dependency "twirp", ">= 1.
|
15
|
+
spec.add_dependency "twirp", ">= 1.9", "< 1.11"
|
16
16
|
spec.required_ruby_version = ">= 3"
|
17
17
|
end
|
data/test/dummy/proto/api_pb.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: api.proto
|
3
3
|
|
4
|
-
require
|
4
|
+
require "google/protobuf"
|
5
5
|
|
6
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("api.proto", :
|
7
|
+
add_file("api.proto", syntax: :proto3) do
|
8
8
|
add_message "dummy.api.PingRequest" do
|
9
9
|
optional :name, :string, 1
|
10
10
|
end
|
@@ -1,21 +1,21 @@
|
|
1
1
|
# Code generated by protoc-gen-twirp_ruby 1.8.0, DO NOT EDIT.
|
2
|
-
require
|
3
|
-
require_relative
|
2
|
+
require "twirp"
|
3
|
+
require_relative "api_pb"
|
4
4
|
|
5
5
|
module RPC
|
6
6
|
module DummyAPI
|
7
7
|
class DummyService < Twirp::Service
|
8
|
-
package
|
9
|
-
service
|
10
|
-
rpc :Ping, PingRequest, PingResponse, :
|
11
|
-
rpc :PingRender, PingRequest, PingResponse, :
|
12
|
-
rpc :PingTemplate, PingRequest, PingResponse, :
|
13
|
-
rpc :ErrorResponse, PingRequest, PingResponse, :
|
14
|
-
rpc :RaiseError, PingRequest, PingResponse, :
|
15
|
-
rpc :UncaughtError, PingRequest, PingResponse, :
|
16
|
-
rpc :BeforeError, PingRequest, PingResponse, :
|
17
|
-
rpc :Nested, PingRequest, PingResponse, :
|
18
|
-
rpc :RpcNameCheck, RpcNameCheckRequest, RpcNameCheckResponse, :
|
8
|
+
package "dummy.api"
|
9
|
+
service "Dummy"
|
10
|
+
rpc :Ping, PingRequest, PingResponse, ruby_method: :ping
|
11
|
+
rpc :PingRender, PingRequest, PingResponse, ruby_method: :ping_render
|
12
|
+
rpc :PingTemplate, PingRequest, PingResponse, ruby_method: :ping_template
|
13
|
+
rpc :ErrorResponse, PingRequest, PingResponse, ruby_method: :error_response
|
14
|
+
rpc :RaiseError, PingRequest, PingResponse, ruby_method: :raise_error
|
15
|
+
rpc :UncaughtError, PingRequest, PingResponse, ruby_method: :uncaught_error
|
16
|
+
rpc :BeforeError, PingRequest, PingResponse, ruby_method: :before_error
|
17
|
+
rpc :Nested, PingRequest, PingResponse, ruby_method: :nested
|
18
|
+
rpc :RpcNameCheck, RpcNameCheckRequest, RpcNameCheckResponse, ruby_method: :rpc_name_check
|
19
19
|
end
|
20
20
|
|
21
21
|
class DummyClient < Twirp::Client
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_twirp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bouke van der Bijl
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,20 +30,20 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
34
|
-
- - "
|
33
|
+
version: '1.9'
|
34
|
+
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 1.
|
36
|
+
version: '1.11'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 1.
|
44
|
-
- - "
|
43
|
+
version: '1.9'
|
44
|
+
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 1.
|
46
|
+
version: '1.11'
|
47
47
|
description:
|
48
48
|
email:
|
49
49
|
- bouke@cheddar.me
|