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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4814bf529a854dfa493cdf41b44fcd972540296fb8efc53466071d72966ef42c
4
- data.tar.gz: e3fbbc645541382e5f58d32964284a75b79899d561bdbcc7d36e8de319947767
3
+ metadata.gz: d097428a40b0e38ec945cf37b946a98e611e9affa1a7c3d2d39bf9b53b10b5c1
4
+ data.tar.gz: 95ae64a3bafdd18b6c878b35e3f75b2039d725788334951d6a2f33fffbbeb67c
5
5
  SHA512:
6
- metadata.gz: d3b36f9db24a47836307862876fc10243cf85d09a0be0f1fef29f2152354de8f8bebe910310599d7602837c0e4e71733e69981c3746d31e65e0f01943bae0123
7
- data.tar.gz: 39a16f61c8eb90de85ba7df7ca0bf2ff3e76608284ed46f348b515a94046c377c670548c1f9c417639c23f67a0d9d7a51f26bfb4f659048d4e641bab4f1738ee
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} #{Shellwords.escape filename}"
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
 
@@ -1,3 +1,3 @@
1
1
  module Protip
2
- VERSION = '0.36'
2
+ VERSION = '0.36.1'
3
3
  end
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.36'
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: 2020-12-30 00:00:00.000000000 Z
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.1.4
295
+ rubygems_version: 3.2.29
296
296
  signing_key:
297
297
  specification_version: 4
298
298
  summary: Resources backed by protobuf messages