protip 0.36 → 0.36.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/protip/tasks/compile.rake +5 -2
- data/lib/protip/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d097428a40b0e38ec945cf37b946a98e611e9affa1a7c3d2d39bf9b53b10b5c1
|
4
|
+
data.tar.gz: 95ae64a3bafdd18b6c878b35e3f75b2039d725788334951d6a2f33fffbbeb67c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cad5a50b96b26f0ad63e7e17d3e266c87056ef988e89667e5a09306742a752e7253861db0b27cbb5278a555e4b3ad62178cc5cd4c89b927a6f36911deb6c49f
|
7
|
+
data.tar.gz: 50468f4ee94fa85fcf62086291e366a94244e3fd08f4a922d7c7817973c7c7a6cae7c16b00c9304199422490b7f6d3b88abf7d9190f13c43018f88335d981f3b
|
@@ -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:
|
4
|
+
version: 0.36.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AngelList
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -292,7 +292,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
292
292
|
- !ruby/object:Gem::Version
|
293
293
|
version: '0'
|
294
294
|
requirements: []
|
295
|
-
rubygems_version: 3.
|
295
|
+
rubygems_version: 3.2.29
|
296
296
|
signing_key:
|
297
297
|
specification_version: 4
|
298
298
|
summary: Resources backed by protobuf messages
|