proto-convert 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/proto-convert +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 220848a40cd878c344d691e50d67579e73b41bfb650c6fdb8f2572c5a2cb262a
|
4
|
+
data.tar.gz: d3bdb5b6097182ef7988be3e05607a548ce03ec98c33b339b8581464b9f0185e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da1981ab5bee08c2ade94f8ebfd9ed56a2d71872ea25ea835d6ba7dfdb9fac01bfc7d8977a9f1fdab1fdaa8c87a4ab80ac1cd5ae5b8a8807a386a14f8c4e2d5e
|
7
|
+
data.tar.gz: a17b91557fc355ea5a6ae55f6e1e5526cb19f8ff1900571cf52e825ba999fe051e64981d764421bcf1223ebbc847a941cc160b4cbdc8f830703eb940fcdf8383
|
data/bin/proto-convert
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
require 'optparse'
|
33
33
|
require 'English'
|
34
34
|
|
35
|
-
VERSION = '0.4.
|
35
|
+
VERSION = '0.4.2'
|
36
36
|
AUTHOR_NAME = 'Azeem Sajid'
|
37
37
|
AUTHOR_EMAIL = '<azeem.sajid@gmail.com>'
|
38
38
|
AUTHOR_INFO = "Author: #{AUTHOR_NAME} #{AUTHOR_EMAIL}"
|
@@ -70,7 +70,8 @@ end
|
|
70
70
|
def valid_msgtype?(compiled_proto, msg_type)
|
71
71
|
msg_types = []
|
72
72
|
File.foreach(compiled_proto) do |line|
|
73
|
-
|
73
|
+
line.strip!
|
74
|
+
if line.include?('::Google::Protobuf::DescriptorPool.generated_pool.lookup') && line.end_with?('.msgclass')
|
74
75
|
extracted_msg_type = line[/"([^"]*)"/, 1].freeze
|
75
76
|
msg_types.push(extracted_msg_type) unless extracted_msg_type.nil?
|
76
77
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proto-convert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Azeem Sajid
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|