protip 0.35.5 → 0.36.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protip/client.rb +1 -0
- data/lib/protip/tasks/compile.rake +5 -2
- data/lib/protip/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77ca84559a722d4a1030b6e47165bbbbf746df3cf453ee296d0a7b4199bfc1c2
|
4
|
+
data.tar.gz: 7a7cead9a2d02d7c4913309c4357f6541954e53305a6b173c93176649a035215
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd1ef5b7f309da837cd5cf24f460e2e43ad16c627f0dc79caf707314b15e46a15b926f1a674e0809664caf486a9437c4b2fef7252fbe7de5113ee402ac667df6
|
7
|
+
data.tar.gz: 4c17c97c200f7b2d74a32c2be15614b0e93dcb9a84061c9aba3acbc626f1c8bf2e7c9c9246d2aa246e1631e428bba206c723f5e327034c78942cda89eedb8895
|
data/lib/protip/client.rb
CHANGED
@@ -3,7 +3,7 @@ require 'bundler/setup'
|
|
3
3
|
|
4
4
|
namespace :protip do
|
5
5
|
desc 'compile a single .proto file to Ruby'
|
6
|
-
task :compile, [:filename, :proto_path, :ruby_path] do |t, args|
|
6
|
+
task :compile, [:filename, :proto_path, :ruby_path, :rbi_path, :protoc_gen_rbi_path] do |t, args|
|
7
7
|
proto_path = [args[:proto_path] || 'definitions'].flatten.compact.reject{|path| path == ''}
|
8
8
|
proto_path << File.join(Gem.loaded_specs['protip'].full_gem_path, 'definitions')
|
9
9
|
|
@@ -11,7 +11,10 @@ namespace :protip do
|
|
11
11
|
|
12
12
|
filename = args[:filename] || raise(ArgumentError.new 'filename argument is required')
|
13
13
|
|
14
|
-
command = "bundle exec grpc_tools_ruby_protoc #{proto_path.map{|p| "--proto_path=#{Shellwords.escape p}"}.join ' '} --ruby_out=#{Shellwords.escape ruby_path}
|
14
|
+
command = "bundle exec grpc_tools_ruby_protoc #{proto_path.map{|p| "--proto_path=#{Shellwords.escape p}"}.join ' '} --ruby_out=#{Shellwords.escape ruby_path}"
|
15
|
+
command << " --plugin=protoc-gen-rbi=#{args[:protoc_gen_rbi_path]}" if args[:protoc_gen_rbi_path]
|
16
|
+
command << " --rbi_out=#{args[:rbi_path]}" if args[:rbi_path]
|
17
|
+
command << " #{Shellwords.escape filename}"
|
15
18
|
puts command
|
16
19
|
system command
|
17
20
|
|
data/lib/protip/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: protip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.36.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AngelList
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: 4.2.10
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '8.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: 4.2.10
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '8.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: activesupport
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
version: 4.2.10
|
40
40
|
- - "<"
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
42
|
+
version: '8.0'
|
43
43
|
type: :runtime
|
44
44
|
prerelease: false
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: 4.2.10
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
52
|
+
version: '8.0'
|
53
53
|
- !ruby/object:Gem::Dependency
|
54
54
|
name: money
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
@@ -196,7 +196,7 @@ dependencies:
|
|
196
196
|
- - "~>"
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '3'
|
199
|
-
description:
|
199
|
+
description:
|
200
200
|
email:
|
201
201
|
- team@angel.co
|
202
202
|
executables: []
|
@@ -277,7 +277,7 @@ homepage: https://github.com/AngelList/protip
|
|
277
277
|
licenses:
|
278
278
|
- MIT
|
279
279
|
metadata: {}
|
280
|
-
post_install_message:
|
280
|
+
post_install_message:
|
281
281
|
rdoc_options: []
|
282
282
|
require_paths:
|
283
283
|
- lib
|
@@ -292,8 +292,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
- !ruby/object:Gem::Version
|
293
293
|
version: '0'
|
294
294
|
requirements: []
|
295
|
-
rubygems_version: 3.
|
296
|
-
signing_key:
|
295
|
+
rubygems_version: 3.1.6
|
296
|
+
signing_key:
|
297
297
|
specification_version: 4
|
298
298
|
summary: Resources backed by protobuf messages
|
299
299
|
test_files: []
|