twirbet 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/twirbet/version.rb +1 -1
- metadata +1 -122
- data/.rspec +0 -3
- data/.rubocop.yml +0 -20
- data/CHANGELOG.md +0 -5
- data/Gemfile +0 -28
- data/Gemfile.lock +0 -127
- data/Rakefile +0 -17
- data/examples/clientcompat/client +0 -28
- data/examples/clientcompat/clientcompat.proto +0 -29
- data/examples/clientcompat/clientcompat_pb.rb +0 -36
- data/examples/clientcompat/clientcompat_twirbet.rb +0 -57
- data/examples/ping/Gemfile +0 -11
- data/examples/ping/Gemfile.lock +0 -69
- data/examples/ping/bin/puma +0 -27
- data/examples/ping/bin/pumactl +0 -27
- data/examples/ping/bin/srb +0 -27
- data/examples/ping/bin/srb-rbi +0 -27
- data/examples/ping/bin/tapioca +0 -27
- data/examples/ping/client.rb +0 -14
- data/examples/ping/config/application.rb +0 -13
- data/examples/ping/config/environment.rb +0 -6
- data/examples/ping/config.ru +0 -8
- data/examples/ping/proto/ping.proto +0 -15
- data/examples/ping/proto/ping_pb.rb +0 -20
- data/examples/ping/proto/ping_twirbet.rb +0 -47
- data/examples/ping/sorbet/config +0 -4
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/extension_range.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/reserved_range.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto.rbi +0 -83
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto/enum_reserved_range.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto.rbi +0 -48
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_options.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_descriptor_proto.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_options.rbi +0 -27
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/extension_range_options.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/label.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/type.rbi +0 -37
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto.rbi +0 -90
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/c_type.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/js_type.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/field_options.rbi +0 -69
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_proto.rbi +0 -97
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_set.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_options/optimize_mode.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/file_options.rbi +0 -160
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info/annotation.rbi +0 -41
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/map.rbi +0 -12
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/message_options.rbi +0 -48
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_descriptor_proto.rbi +0 -55
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_options/idempotency_level.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/method_options.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_descriptor_proto.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_options.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/repeated_field.rbi +0 -11
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/service_descriptor_proto.rbi +0 -34
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/service_options.rbi +0 -27
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info/location.rbi +0 -48
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info.rbi +0 -20
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option/name_part.rbi +0 -22
- data/examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option.rbi +0 -62
- data/examples/ping/sorbet/rbi/dsl/ping/ping_request.rbi +0 -16
- data/examples/ping/sorbet/rbi/dsl/ping/ping_response.rbi +0 -16
- data/examples/ping/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
- data/examples/ping/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -8
- data/examples/ping/sorbet/rbi/gems/google-protobuf@3.21.12.rbi +0 -1645
- data/examples/ping/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
- data/examples/ping/sorbet/rbi/gems/nio4r@2.5.8.rbi +0 -8
- data/examples/ping/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
- data/examples/ping/sorbet/rbi/gems/parser@3.1.3.0.rbi +0 -5076
- data/examples/ping/sorbet/rbi/gems/puma@6.0.0.rbi +0 -4177
- data/examples/ping/sorbet/rbi/gems/rack@3.0.2.rbi +0 -5016
- data/examples/ping/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
- data/examples/ping/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -2383
- data/examples/ping/sorbet/rbi/gems/tapioca@0.10.3.rbi +0 -3032
- data/examples/ping/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3919
- data/examples/ping/sorbet/rbi/gems/twirbet@0.1.0.rbi +0 -528
- data/examples/ping/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -8
- data/examples/ping/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2498
- data/examples/ping/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +0 -391
- data/examples/ping/sorbet/rbi/gems/yard@0.9.28.rbi +0 -17022
- data/examples/ping/sorbet/tapioca/config.yml +0 -13
- data/examples/ping/sorbet/tapioca/require.rb +0 -5
- data/sorbet/config +0 -5
- data/sorbet/rbi/annotations/rainbow.rbi +0 -269
- data/sorbet/rbi/custom/ping.rbi +0 -23
- data/sorbet/rbi/gems/ast@2.4.2.rbi +0 -584
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +0 -1064
- data/sorbet/rbi/gems/google-protobuf@3.21.12.rbi +0 -1645
- data/sorbet/rbi/gems/json@2.6.3.rbi +0 -1541
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -158
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +0 -277
- data/sorbet/rbi/gems/parser@3.1.3.0.rbi +0 -6878
- data/sorbet/rbi/gems/rack@3.0.2.rbi +0 -5163
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -397
- data/sorbet/rbi/gems/rake@13.0.6.rbi +0 -2946
- data/sorbet/rbi/gems/rbi@0.0.16.rbi +0 -3008
- data/sorbet/rbi/gems/regexp_parser@2.6.1.rbi +0 -3126
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +0 -4660
- data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +0 -10492
- data/sorbet/rbi/gems/rspec-expectations@3.12.1.rbi +0 -7817
- data/sorbet/rbi/gems/rspec-mocks@3.12.1.rbi +0 -4994
- data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +0 -1477
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +0 -10
- data/sorbet/rbi/gems/rubocop-ast@1.24.0.rbi +0 -6790
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +0 -354
- data/sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi +0 -7650
- data/sorbet/rbi/gems/rubocop-shopify@2.10.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +0 -1014
- data/sorbet/rbi/gems/rubocop@1.40.0.rbi +0 -51560
- data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +0 -1212
- data/sorbet/rbi/gems/spoom@1.1.15.rbi +0 -2383
- data/sorbet/rbi/gems/tapioca@0.10.3.rbi +0 -3032
- data/sorbet/rbi/gems/thor@1.2.1.rbi +0 -3950
- data/sorbet/rbi/gems/unicode-display_width@2.3.0.rbi +0 -46
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +0 -4265
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +0 -2498
- data/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi +0 -391
- data/sorbet/rbi/gems/yard@0.9.28.rbi +0 -17033
- data/sorbet/tapioca/config.yml +0 -13
- data/sorbet/tapioca/require.rb +0 -4
- data/twirbet.gemspec +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd5b5ac9ee4ce65a067b054e02b7817adc779a1a7d99fef9580d8bdc9dcc689c
|
4
|
+
data.tar.gz: c460ce321811f4d3047106859508b3c93894dbae002c3886c93c29d8c6853989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbbc67892455f4ff46130e87161bc7f4b9921ba16cfa8e6e7050b1fd742e2c49f262b49310fd7b82dfef787b57be616134d83a5ebeb70b7da778b679e583eab6
|
7
|
+
data.tar.gz: 9c0de30a6602ce40e7ff7801ab5cab94763e05b50748df8bf6af488cda038e80706c66f6e6f044f5c0684fe17670ceb259248dbbcac1c0acb165361dde2429e5
|
data/lib/twirbet/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twirbet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brave Hager
|
@@ -59,90 +59,8 @@ executables: []
|
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- ".rspec"
|
63
|
-
- ".rubocop.yml"
|
64
|
-
- CHANGELOG.md
|
65
|
-
- Gemfile
|
66
|
-
- Gemfile.lock
|
67
62
|
- LICENSE.txt
|
68
63
|
- README.md
|
69
|
-
- Rakefile
|
70
|
-
- examples/clientcompat/client
|
71
|
-
- examples/clientcompat/clientcompat.proto
|
72
|
-
- examples/clientcompat/clientcompat_pb.rb
|
73
|
-
- examples/clientcompat/clientcompat_twirbet.rb
|
74
|
-
- examples/ping/Gemfile
|
75
|
-
- examples/ping/Gemfile.lock
|
76
|
-
- examples/ping/bin/puma
|
77
|
-
- examples/ping/bin/pumactl
|
78
|
-
- examples/ping/bin/srb
|
79
|
-
- examples/ping/bin/srb-rbi
|
80
|
-
- examples/ping/bin/tapioca
|
81
|
-
- examples/ping/client.rb
|
82
|
-
- examples/ping/config.ru
|
83
|
-
- examples/ping/config/application.rb
|
84
|
-
- examples/ping/config/environment.rb
|
85
|
-
- examples/ping/proto/ping.proto
|
86
|
-
- examples/ping/proto/ping_pb.rb
|
87
|
-
- examples/ping/proto/ping_twirbet.rb
|
88
|
-
- examples/ping/sorbet/config
|
89
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto.rbi
|
90
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/extension_range.rbi
|
91
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/descriptor_proto/reserved_range.rbi
|
92
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto.rbi
|
93
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/enum_descriptor_proto/enum_reserved_range.rbi
|
94
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/enum_options.rbi
|
95
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_descriptor_proto.rbi
|
96
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/enum_value_options.rbi
|
97
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/extension_range_options.rbi
|
98
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto.rbi
|
99
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/label.rbi
|
100
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/field_descriptor_proto/type.rbi
|
101
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/field_options.rbi
|
102
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/c_type.rbi
|
103
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/field_options/js_type.rbi
|
104
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_proto.rbi
|
105
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/file_descriptor_set.rbi
|
106
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/file_options.rbi
|
107
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/file_options/optimize_mode.rbi
|
108
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info.rbi
|
109
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/generated_code_info/annotation.rbi
|
110
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/map.rbi
|
111
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/message_options.rbi
|
112
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/method_descriptor_proto.rbi
|
113
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/method_options.rbi
|
114
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/method_options/idempotency_level.rbi
|
115
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_descriptor_proto.rbi
|
116
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/oneof_options.rbi
|
117
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/repeated_field.rbi
|
118
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/service_descriptor_proto.rbi
|
119
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/service_options.rbi
|
120
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info.rbi
|
121
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/source_code_info/location.rbi
|
122
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option.rbi
|
123
|
-
- examples/ping/sorbet/rbi/dsl/google/protobuf/uninterpreted_option/name_part.rbi
|
124
|
-
- examples/ping/sorbet/rbi/dsl/ping/ping_request.rbi
|
125
|
-
- examples/ping/sorbet/rbi/dsl/ping/ping_response.rbi
|
126
|
-
- examples/ping/sorbet/rbi/gems/ast@2.4.2.rbi
|
127
|
-
- examples/ping/sorbet/rbi/gems/diff-lcs@1.5.0.rbi
|
128
|
-
- examples/ping/sorbet/rbi/gems/google-protobuf@3.21.12.rbi
|
129
|
-
- examples/ping/sorbet/rbi/gems/netrc@0.11.0.rbi
|
130
|
-
- examples/ping/sorbet/rbi/gems/nio4r@2.5.8.rbi
|
131
|
-
- examples/ping/sorbet/rbi/gems/parallel@1.22.1.rbi
|
132
|
-
- examples/ping/sorbet/rbi/gems/parser@3.1.3.0.rbi
|
133
|
-
- examples/ping/sorbet/rbi/gems/puma@6.0.0.rbi
|
134
|
-
- examples/ping/sorbet/rbi/gems/rack@3.0.2.rbi
|
135
|
-
- examples/ping/sorbet/rbi/gems/rbi@0.0.16.rbi
|
136
|
-
- examples/ping/sorbet/rbi/gems/spoom@1.1.15.rbi
|
137
|
-
- examples/ping/sorbet/rbi/gems/tapioca@0.10.3.rbi
|
138
|
-
- examples/ping/sorbet/rbi/gems/thor@1.2.1.rbi
|
139
|
-
- examples/ping/sorbet/rbi/gems/twirbet@0.1.0.rbi
|
140
|
-
- examples/ping/sorbet/rbi/gems/unparser@0.6.5.rbi
|
141
|
-
- examples/ping/sorbet/rbi/gems/webrick@1.7.0.rbi
|
142
|
-
- examples/ping/sorbet/rbi/gems/yard-sorbet@0.7.0.rbi
|
143
|
-
- examples/ping/sorbet/rbi/gems/yard@0.9.28.rbi
|
144
|
-
- examples/ping/sorbet/tapioca/config.yml
|
145
|
-
- examples/ping/sorbet/tapioca/require.rb
|
146
64
|
- lib/twirbet.rb
|
147
65
|
- lib/twirbet/client.rb
|
148
66
|
- lib/twirbet/dsl.rb
|
@@ -154,45 +72,6 @@ files:
|
|
154
72
|
- lib/twirbet/transports/fake_transport.rb
|
155
73
|
- lib/twirbet/transports/net_http_transport.rb
|
156
74
|
- lib/twirbet/version.rb
|
157
|
-
- sorbet/config
|
158
|
-
- sorbet/rbi/annotations/rainbow.rbi
|
159
|
-
- sorbet/rbi/custom/ping.rbi
|
160
|
-
- sorbet/rbi/gems/ast@2.4.2.rbi
|
161
|
-
- sorbet/rbi/gems/diff-lcs@1.5.0.rbi
|
162
|
-
- sorbet/rbi/gems/google-protobuf@3.21.12.rbi
|
163
|
-
- sorbet/rbi/gems/json@2.6.3.rbi
|
164
|
-
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
165
|
-
- sorbet/rbi/gems/parallel@1.22.1.rbi
|
166
|
-
- sorbet/rbi/gems/parser@3.1.3.0.rbi
|
167
|
-
- sorbet/rbi/gems/rack@3.0.2.rbi
|
168
|
-
- sorbet/rbi/gems/rainbow@3.1.1.rbi
|
169
|
-
- sorbet/rbi/gems/rake@13.0.6.rbi
|
170
|
-
- sorbet/rbi/gems/rbi@0.0.16.rbi
|
171
|
-
- sorbet/rbi/gems/regexp_parser@2.6.1.rbi
|
172
|
-
- sorbet/rbi/gems/rexml@3.2.5.rbi
|
173
|
-
- sorbet/rbi/gems/rspec-core@3.12.0.rbi
|
174
|
-
- sorbet/rbi/gems/rspec-expectations@3.12.1.rbi
|
175
|
-
- sorbet/rbi/gems/rspec-mocks@3.12.1.rbi
|
176
|
-
- sorbet/rbi/gems/rspec-support@3.12.0.rbi
|
177
|
-
- sorbet/rbi/gems/rspec@3.12.0.rbi
|
178
|
-
- sorbet/rbi/gems/rubocop-ast@1.24.0.rbi
|
179
|
-
- sorbet/rbi/gems/rubocop-rake@0.6.0.rbi
|
180
|
-
- sorbet/rbi/gems/rubocop-rspec@2.16.0.rbi
|
181
|
-
- sorbet/rbi/gems/rubocop-shopify@2.10.1.rbi
|
182
|
-
- sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi
|
183
|
-
- sorbet/rbi/gems/rubocop@1.40.0.rbi
|
184
|
-
- sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi
|
185
|
-
- sorbet/rbi/gems/spoom@1.1.15.rbi
|
186
|
-
- sorbet/rbi/gems/tapioca@0.10.3.rbi
|
187
|
-
- sorbet/rbi/gems/thor@1.2.1.rbi
|
188
|
-
- sorbet/rbi/gems/unicode-display_width@2.3.0.rbi
|
189
|
-
- sorbet/rbi/gems/unparser@0.6.5.rbi
|
190
|
-
- sorbet/rbi/gems/webrick@1.7.0.rbi
|
191
|
-
- sorbet/rbi/gems/yard-sorbet@0.7.0.rbi
|
192
|
-
- sorbet/rbi/gems/yard@0.9.28.rbi
|
193
|
-
- sorbet/tapioca/config.yml
|
194
|
-
- sorbet/tapioca/require.rb
|
195
|
-
- twirbet.gemspec
|
196
75
|
homepage: https://github.com/bravehager/twirbet
|
197
76
|
licenses:
|
198
77
|
- MIT
|
data/.rspec
DELETED
data/.rubocop.yml
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
require:
|
2
|
-
- rubocop-rake
|
3
|
-
- rubocop-rspec
|
4
|
-
- rubocop-sorbet
|
5
|
-
|
6
|
-
inherit_gem:
|
7
|
-
rubocop-shopify: rubocop.yml
|
8
|
-
|
9
|
-
AllCops:
|
10
|
-
NewCops: enable
|
11
|
-
Exclude:
|
12
|
-
- examples/**/*
|
13
|
-
|
14
|
-
Sorbet/ValidSigil:
|
15
|
-
Exclude:
|
16
|
-
- ./**/*_pb.rb
|
17
|
-
|
18
|
-
Sorbet/FalseSigil:
|
19
|
-
Exclude:
|
20
|
-
- ./**/*_pb.rb
|
data/CHANGELOG.md
DELETED
data/Gemfile
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source "https://rubygems.org"
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in twirbet.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem "rake", "~> 13.0"
|
9
|
-
|
10
|
-
gem "rspec", "~> 3.0"
|
11
|
-
|
12
|
-
gem "rubocop", "~> 1.21"
|
13
|
-
|
14
|
-
gem "rubocop-rake", "~> 0.6.0"
|
15
|
-
|
16
|
-
gem "rubocop-rspec", "~> 2.16"
|
17
|
-
|
18
|
-
gem "rubocop-shopify", "~> 2.10"
|
19
|
-
|
20
|
-
gem "rubocop-sorbet", "~> 0.6.11"
|
21
|
-
|
22
|
-
gem "sorbet", "~> 0.5.10595"
|
23
|
-
|
24
|
-
gem "spoom", "~> 1.1"
|
25
|
-
|
26
|
-
gem "tapioca", "~> 0.10.3"
|
27
|
-
|
28
|
-
gem "webmock", "~> 3.18"
|
data/Gemfile.lock
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
twirbet (0.1.0)
|
5
|
-
google-protobuf (~> 3.21)
|
6
|
-
rack (~> 3.0)
|
7
|
-
sorbet-runtime (~> 0.5.10595)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
addressable (2.8.1)
|
13
|
-
public_suffix (>= 2.0.2, < 6.0)
|
14
|
-
ast (2.4.2)
|
15
|
-
crack (0.4.5)
|
16
|
-
rexml
|
17
|
-
diff-lcs (1.5.0)
|
18
|
-
google-protobuf (3.21.12)
|
19
|
-
google-protobuf (3.21.12-x86_64-linux)
|
20
|
-
hashdiff (1.0.1)
|
21
|
-
json (2.6.3)
|
22
|
-
netrc (0.11.0)
|
23
|
-
parallel (1.22.1)
|
24
|
-
parser (3.1.3.0)
|
25
|
-
ast (~> 2.4.1)
|
26
|
-
public_suffix (5.0.1)
|
27
|
-
rack (3.0.2)
|
28
|
-
rainbow (3.1.1)
|
29
|
-
rake (13.0.6)
|
30
|
-
rbi (0.0.16)
|
31
|
-
ast
|
32
|
-
parser (>= 2.6.4.0)
|
33
|
-
sorbet-runtime (>= 0.5.9204)
|
34
|
-
unparser
|
35
|
-
regexp_parser (2.6.1)
|
36
|
-
rexml (3.2.5)
|
37
|
-
rspec (3.12.0)
|
38
|
-
rspec-core (~> 3.12.0)
|
39
|
-
rspec-expectations (~> 3.12.0)
|
40
|
-
rspec-mocks (~> 3.12.0)
|
41
|
-
rspec-core (3.12.0)
|
42
|
-
rspec-support (~> 3.12.0)
|
43
|
-
rspec-expectations (3.12.1)
|
44
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
45
|
-
rspec-support (~> 3.12.0)
|
46
|
-
rspec-mocks (3.12.1)
|
47
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
48
|
-
rspec-support (~> 3.12.0)
|
49
|
-
rspec-support (3.12.0)
|
50
|
-
rubocop (1.40.0)
|
51
|
-
json (~> 2.3)
|
52
|
-
parallel (~> 1.10)
|
53
|
-
parser (>= 3.1.2.1)
|
54
|
-
rainbow (>= 2.2.2, < 4.0)
|
55
|
-
regexp_parser (>= 1.8, < 3.0)
|
56
|
-
rexml (>= 3.2.5, < 4.0)
|
57
|
-
rubocop-ast (>= 1.23.0, < 2.0)
|
58
|
-
ruby-progressbar (~> 1.7)
|
59
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
60
|
-
rubocop-ast (1.24.0)
|
61
|
-
parser (>= 3.1.1.0)
|
62
|
-
rubocop-rake (0.6.0)
|
63
|
-
rubocop (~> 1.0)
|
64
|
-
rubocop-rspec (2.16.0)
|
65
|
-
rubocop (~> 1.33)
|
66
|
-
rubocop-shopify (2.10.1)
|
67
|
-
rubocop (~> 1.35)
|
68
|
-
rubocop-sorbet (0.6.11)
|
69
|
-
rubocop (>= 0.90.0)
|
70
|
-
ruby-progressbar (1.11.0)
|
71
|
-
sorbet (0.5.10595)
|
72
|
-
sorbet-static (= 0.5.10595)
|
73
|
-
sorbet-runtime (0.5.10595)
|
74
|
-
sorbet-static (0.5.10595-universal-darwin-21)
|
75
|
-
sorbet-static (0.5.10595-x86_64-linux)
|
76
|
-
sorbet-static-and-runtime (0.5.10595)
|
77
|
-
sorbet (= 0.5.10595)
|
78
|
-
sorbet-runtime (= 0.5.10595)
|
79
|
-
spoom (1.1.15)
|
80
|
-
sorbet (>= 0.5.10187)
|
81
|
-
sorbet-runtime (>= 0.5.9204)
|
82
|
-
thor (>= 0.19.2)
|
83
|
-
tapioca (0.10.3)
|
84
|
-
bundler (>= 1.17.3)
|
85
|
-
netrc (>= 0.11.0)
|
86
|
-
parallel (>= 1.21.0)
|
87
|
-
rbi (~> 0.0.0, >= 0.0.16)
|
88
|
-
sorbet-static-and-runtime (>= 0.5.9892)
|
89
|
-
spoom (~> 1.1.0, >= 1.1.11)
|
90
|
-
thor (>= 1.2.0)
|
91
|
-
yard-sorbet
|
92
|
-
thor (1.2.1)
|
93
|
-
unicode-display_width (2.3.0)
|
94
|
-
unparser (0.6.5)
|
95
|
-
diff-lcs (~> 1.3)
|
96
|
-
parser (>= 3.1.0)
|
97
|
-
webmock (3.18.1)
|
98
|
-
addressable (>= 2.8.0)
|
99
|
-
crack (>= 0.3.2)
|
100
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
101
|
-
webrick (1.7.0)
|
102
|
-
yard (0.9.28)
|
103
|
-
webrick (~> 1.7.0)
|
104
|
-
yard-sorbet (0.7.0)
|
105
|
-
sorbet-runtime (>= 0.5)
|
106
|
-
yard (>= 0.9)
|
107
|
-
|
108
|
-
PLATFORMS
|
109
|
-
arm64-darwin-21
|
110
|
-
x86_64-linux
|
111
|
-
|
112
|
-
DEPENDENCIES
|
113
|
-
rake (~> 13.0)
|
114
|
-
rspec (~> 3.0)
|
115
|
-
rubocop (~> 1.21)
|
116
|
-
rubocop-rake (~> 0.6.0)
|
117
|
-
rubocop-rspec (~> 2.16)
|
118
|
-
rubocop-shopify (~> 2.10)
|
119
|
-
rubocop-sorbet (~> 0.6.11)
|
120
|
-
sorbet (~> 0.5.10595)
|
121
|
-
spoom (~> 1.1)
|
122
|
-
tapioca (~> 0.10.3)
|
123
|
-
twirbet!
|
124
|
-
webmock (~> 3.18)
|
125
|
-
|
126
|
-
BUNDLED WITH
|
127
|
-
2.3.26
|
data/Rakefile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
require "rspec/core/rake_task"
|
5
|
-
|
6
|
-
RSpec::Core::RakeTask.new(:spec)
|
7
|
-
|
8
|
-
require "rubocop/rake_task"
|
9
|
-
|
10
|
-
RuboCop::RakeTask.new
|
11
|
-
|
12
|
-
task default: [:spec, :rubocop]
|
13
|
-
|
14
|
-
desc "Run client compatibility tests"
|
15
|
-
task clientcompat: ["install:local"] do
|
16
|
-
sh "clientcompat -client=examples/clientcompat/client"
|
17
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
|
3
|
-
require_relative "clientcompat_twirbet"
|
4
|
-
|
5
|
-
message = Twirp::Clientcompat::ClientCompatMessage.decode(STDIN.read)
|
6
|
-
|
7
|
-
client = Twirp::Clientcompat::CompatService::Client.new(message.service_address)
|
8
|
-
|
9
|
-
case message.method_name
|
10
|
-
when :NOOP
|
11
|
-
request = Google::Protobuf.decode(Twirp::Clientcompat::Empty, message.request)
|
12
|
-
begin
|
13
|
-
response = client.noop_method(request)
|
14
|
-
$stdout.write(response.to_proto)
|
15
|
-
rescue Twirbet::BaseError => e
|
16
|
-
$stderr.write(e.code)
|
17
|
-
end
|
18
|
-
when :METHOD
|
19
|
-
request = Google::Protobuf.decode(Twirp::Clientcompat::Req, message.request)
|
20
|
-
begin
|
21
|
-
response = client.real_method(request)
|
22
|
-
$stdout.write(response.to_proto)
|
23
|
-
rescue Twirbet::BaseError => e
|
24
|
-
$stderr.write(e.code)
|
25
|
-
end
|
26
|
-
else
|
27
|
-
raise "Unknown method: #{message.method_name}"
|
28
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
syntax = "proto3";
|
2
|
-
|
3
|
-
package twirp.clientcompat;
|
4
|
-
option go_package = "/internal/clientcompat";
|
5
|
-
|
6
|
-
service CompatService {
|
7
|
-
rpc Method(Req) returns (Resp);
|
8
|
-
rpc NoopMethod(Empty) returns (Empty);
|
9
|
-
}
|
10
|
-
|
11
|
-
message Empty {}
|
12
|
-
|
13
|
-
message Req {
|
14
|
-
string v = 1;
|
15
|
-
}
|
16
|
-
|
17
|
-
message Resp {
|
18
|
-
int32 v = 1;
|
19
|
-
}
|
20
|
-
|
21
|
-
message ClientCompatMessage {
|
22
|
-
string service_address = 1;
|
23
|
-
enum CompatServiceMethod {
|
24
|
-
NOOP = 0;
|
25
|
-
METHOD = 1;
|
26
|
-
}
|
27
|
-
CompatServiceMethod method_name = 2;
|
28
|
-
bytes request = 3;
|
29
|
-
}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: clientcompat.proto
|
3
|
-
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
7
|
-
add_file("clientcompat.proto", :syntax => :proto3) do
|
8
|
-
add_message "twirp.clientcompat.Empty" do
|
9
|
-
end
|
10
|
-
add_message "twirp.clientcompat.Req" do
|
11
|
-
optional :v, :string, 1
|
12
|
-
end
|
13
|
-
add_message "twirp.clientcompat.Resp" do
|
14
|
-
optional :v, :int32, 1
|
15
|
-
end
|
16
|
-
add_message "twirp.clientcompat.ClientCompatMessage" do
|
17
|
-
optional :service_address, :string, 1
|
18
|
-
optional :method_name, :enum, 2, "twirp.clientcompat.ClientCompatMessage.CompatServiceMethod"
|
19
|
-
optional :request, :bytes, 3
|
20
|
-
end
|
21
|
-
add_enum "twirp.clientcompat.ClientCompatMessage.CompatServiceMethod" do
|
22
|
-
value :NOOP, 0
|
23
|
-
value :METHOD, 1
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
module Twirp
|
29
|
-
module Clientcompat
|
30
|
-
Empty = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twirp.clientcompat.Empty").msgclass
|
31
|
-
Req = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twirp.clientcompat.Req").msgclass
|
32
|
-
Resp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twirp.clientcompat.Resp").msgclass
|
33
|
-
ClientCompatMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twirp.clientcompat.ClientCompatMessage").msgclass
|
34
|
-
ClientCompatMessage::CompatServiceMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("twirp.clientcompat.ClientCompatMessage.CompatServiceMethod").enummodule
|
35
|
-
end
|
36
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
require "twirbet"
|
2
|
-
require_relative "clientcompat_pb"
|
3
|
-
|
4
|
-
module Twirp
|
5
|
-
module Clientcompat
|
6
|
-
module CompatService
|
7
|
-
module Handler
|
8
|
-
extend T::Sig
|
9
|
-
extend T::Helpers
|
10
|
-
|
11
|
-
interface!
|
12
|
-
|
13
|
-
sig { abstract.params(request: Req).returns(Resp) }
|
14
|
-
def real_method(request); end
|
15
|
-
|
16
|
-
sig { abstract.params(request: Empty).returns(Empty) }
|
17
|
-
def noop_method(request); end
|
18
|
-
end
|
19
|
-
|
20
|
-
class Service < Twirbet::Service
|
21
|
-
extend T::Sig
|
22
|
-
|
23
|
-
package "twirp.clientcompat"
|
24
|
-
service "CompatService"
|
25
|
-
|
26
|
-
rpc "Method", Req, Resp, ruby_method: :real_method
|
27
|
-
rpc "NoopMethod", Empty, Empty, ruby_method: :noop_method
|
28
|
-
|
29
|
-
sig { params(handler: Handler).void }
|
30
|
-
def initialize(handler)
|
31
|
-
super(handler)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
class Client < Twirbet::Client
|
36
|
-
extend T::Sig
|
37
|
-
include Handler
|
38
|
-
|
39
|
-
package "twirp.clientcompat"
|
40
|
-
service "CompatService"
|
41
|
-
|
42
|
-
rpc "Method", Req, Resp, ruby_method: :real_method
|
43
|
-
rpc "NoopMethod", Empty, Empty, ruby_method: :noop_method
|
44
|
-
|
45
|
-
sig { override.params(request: Req).returns(Resp) }
|
46
|
-
def real_method(request)
|
47
|
-
call("Method", request)
|
48
|
-
end
|
49
|
-
|
50
|
-
sig { override.params(request: Empty).returns(Empty) }
|
51
|
-
def noop_method(request)
|
52
|
-
call("NoopMethod", request)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
data/examples/ping/Gemfile
DELETED
data/examples/ping/Gemfile.lock
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../..
|
3
|
-
specs:
|
4
|
-
twirbet (0.1.0)
|
5
|
-
google-protobuf (~> 3.21)
|
6
|
-
rack (~> 3.0)
|
7
|
-
sorbet-runtime (~> 0.5.10595)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
ast (2.4.2)
|
13
|
-
diff-lcs (1.5.0)
|
14
|
-
google-protobuf (3.21.12)
|
15
|
-
netrc (0.11.0)
|
16
|
-
nio4r (2.5.8)
|
17
|
-
parallel (1.22.1)
|
18
|
-
parser (3.1.3.0)
|
19
|
-
ast (~> 2.4.1)
|
20
|
-
puma (6.0.0)
|
21
|
-
nio4r (~> 2.0)
|
22
|
-
rack (3.0.2)
|
23
|
-
rbi (0.0.16)
|
24
|
-
ast
|
25
|
-
parser (>= 2.6.4.0)
|
26
|
-
sorbet-runtime (>= 0.5.9204)
|
27
|
-
unparser
|
28
|
-
sorbet (0.5.10595)
|
29
|
-
sorbet-static (= 0.5.10595)
|
30
|
-
sorbet-runtime (0.5.10595)
|
31
|
-
sorbet-static (0.5.10595-universal-darwin-21)
|
32
|
-
sorbet-static-and-runtime (0.5.10595)
|
33
|
-
sorbet (= 0.5.10595)
|
34
|
-
sorbet-runtime (= 0.5.10595)
|
35
|
-
spoom (1.1.15)
|
36
|
-
sorbet (>= 0.5.10187)
|
37
|
-
sorbet-runtime (>= 0.5.9204)
|
38
|
-
thor (>= 0.19.2)
|
39
|
-
tapioca (0.10.3)
|
40
|
-
bundler (>= 1.17.3)
|
41
|
-
netrc (>= 0.11.0)
|
42
|
-
parallel (>= 1.21.0)
|
43
|
-
rbi (~> 0.0.0, >= 0.0.16)
|
44
|
-
sorbet-static-and-runtime (>= 0.5.9892)
|
45
|
-
spoom (~> 1.1.0, >= 1.1.11)
|
46
|
-
thor (>= 1.2.0)
|
47
|
-
yard-sorbet
|
48
|
-
thor (1.2.1)
|
49
|
-
unparser (0.6.5)
|
50
|
-
diff-lcs (~> 1.3)
|
51
|
-
parser (>= 3.1.0)
|
52
|
-
webrick (1.7.0)
|
53
|
-
yard (0.9.28)
|
54
|
-
webrick (~> 1.7.0)
|
55
|
-
yard-sorbet (0.7.0)
|
56
|
-
sorbet-runtime (>= 0.5)
|
57
|
-
yard (>= 0.9)
|
58
|
-
|
59
|
-
PLATFORMS
|
60
|
-
arm64-darwin-21
|
61
|
-
|
62
|
-
DEPENDENCIES
|
63
|
-
puma (~> 6.0)
|
64
|
-
sorbet (~> 0.5.10595)
|
65
|
-
tapioca (~> 0.10.3)
|
66
|
-
twirbet!
|
67
|
-
|
68
|
-
BUNDLED WITH
|
69
|
-
2.3.26
|
data/examples/ping/bin/puma
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'puma' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
-
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
-
|
15
|
-
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
|
-
load(bundle_binstub)
|
18
|
-
else
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
require "rubygems"
|
25
|
-
require "bundler/setup"
|
26
|
-
|
27
|
-
load Gem.bin_path("puma", "puma")
|
data/examples/ping/bin/pumactl
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
#
|
5
|
-
# This file was generated by Bundler.
|
6
|
-
#
|
7
|
-
# The application 'pumactl' is installed as part of a gem, and
|
8
|
-
# this file is here to facilitate running it.
|
9
|
-
#
|
10
|
-
|
11
|
-
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
|
12
|
-
|
13
|
-
bundle_binstub = File.expand_path("bundle", __dir__)
|
14
|
-
|
15
|
-
if File.file?(bundle_binstub)
|
16
|
-
if File.read(bundle_binstub, 300) =~ /This file was generated by Bundler/
|
17
|
-
load(bundle_binstub)
|
18
|
-
else
|
19
|
-
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
|
20
|
-
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
require "rubygems"
|
25
|
-
require "bundler/setup"
|
26
|
-
|
27
|
-
load Gem.bin_path("puma", "pumactl")
|