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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/proto-convert +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5838325797314e221a75028304dad6529875a0313bc0c718b8a85fd6a39c000
4
- data.tar.gz: 59ca7099f09e630d907bd61557c3ede9149d2a183b55a8c819949d02be35e1f1
3
+ metadata.gz: 220848a40cd878c344d691e50d67579e73b41bfb650c6fdb8f2572c5a2cb262a
4
+ data.tar.gz: d3bdb5b6097182ef7988be3e05607a548ce03ec98c33b339b8581464b9f0185e
5
5
  SHA512:
6
- metadata.gz: f36c7eaac6931d92299889d86ce4fc9858cc2461e5f05a0f4e0a9ebfc3805ea46a2ec3b95368c2a21b3722e4a6ca90cc5c51deef1519a29882bc0a3b46099957
7
- data.tar.gz: ab63c7fc6ee12cac7e7f6b837c4c672ba41551bc985780052c2a3d42ce3820ea594d4e9913621be55a3a61afb8f4b33697a0940055a690902c99556d39cdd501
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.1'
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
- if line.include?('::Google::Protobuf::DescriptorPool.generated_pool.lookup')
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.1
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-08-11 00:00:00.000000000 Z
11
+ date: 2023-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler