meshtastic 0.0.181 → 0.0.182

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27355386b939c892e3fb2bc5ab98181fa0a02995663fadd66021153f9fbbf219
4
- data.tar.gz: 5de937dd2654b8bbb7b8a5859251a63de35cef66f3fd6304bb714f3e6344d0ed
3
+ metadata.gz: 4b5946f218daad08b39581b432ce784a6f5e87dbb65604c56fb13ca80668f146
4
+ data.tar.gz: 71bb00a58a69e32525c4c802d4cccaa31123ace62547a0d4be35bc5416dd39fc
5
5
  SHA512:
6
- metadata.gz: 718d1b5cf1fe122909636032011da2ebe28271305f01bf2ea44a50b003780299bdc851a2c68029e599982d270439c7062b2b8504494671bfc9775413457caca5
7
- data.tar.gz: 5b8435e2d71adcb7a3634b758ca8678a89774b8ba62f3e3868cb2ffca265f7b4369421e417689a551f97443c80b73fe70d0c8044fb53b842ab45374964a821f4
6
+ metadata.gz: 7bac94e05a8015138bee0e41d110cc988236ded6403321876876b175985036f035768e3870a47ab516e328b9c05cea13f84e127f33a4b2e62ff5ccd3bb109c55
7
+ data.tar.gz: 11de3c970720a9775c5cdbbf3f1f311aa2d180be57a9c3da85b2ddef394c04eb7deec0b80cb8d6fe996f907ee813c799839a341fd3a965579c912770e51bddb4
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: meshtastic/field_metadata.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/descriptor_pb'
8
+
9
+
10
+ descriptor_data = "\n\x1fmeshtastic/field_metadata.proto\x12\nmeshtastic\x1a google/protobuf/descriptor.proto\"\xb3\x01\n\rFieldMetadata\x12\x10\n\x08\x64iy_only\x18\x01 \x01(\x08\x12\x12\n\nadmin_only\x18\x02 \x01(\x08\x12\x11\n\tmin_value\x18\x03 \x01(\x01\x12\x11\n\tmax_value\x18\x04 \x01(\x01\x12\x0c\n\x04unit\x18\x05 \x01(\t\x12\x12\n\ndeprecated\x18\x06 \x01(\x08\x12\r\n\x05label\x18\x07 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x08 \x01(\t\x12\x10\n\x08keywords\x18\t \x01(\t:R\n\x0e\x66ield_metadata\x12\x1d.google.protobuf.FieldOptions\x18\xb9\x8e\x03 \x01(\x0b\x32\x19.meshtastic.FieldMetadata:[\n\x13\x65num_value_metadata\x12!.google.protobuf.EnumValueOptions\x18\xb9\x8e\x03 \x01(\x0b\x32\x19.meshtastic.FieldMetadataBi\n\x14org.meshtastic.protoB\x13\x46ieldMetadataProtosZ\"github.com/meshtastic/go/generated\xaa\x02\x14Meshtastic.Protobufs\xba\x02\x00"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Meshtastic
16
+ FieldMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("meshtastic.FieldMetadata").msgclass
17
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Meshtastic
4
- VERSION = '0.0.181'
4
+ VERSION = '0.0.182'
5
5
  end
data/meshtastic.gemspec CHANGED
@@ -20,6 +20,9 @@ Gem::Specification.new do |spec|
20
20
  spec.metadata['rubygems_mfa_required'] = 'true'
21
21
 
22
22
  spec.files = `git ls-files -z`.split("\x00")
23
+ # Protobuf regeneration can introduce dependencies before Git tracks them.
24
+ # Package Ruby sources and their specs independently of staging state.
25
+ spec.files |= Dir.glob('{lib,spec}/**/*.rb', base: __dir__)
23
26
  spec.executables = spec.files.grep(%r{^bin/}) do |f|
24
27
  File.basename(f)
25
28
  end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe Meshtastic::FieldMetadata do
6
+ it 'round trips generated field metadata' do
7
+ message = described_class.new(label: 'Example', admin_only: true)
8
+ expect(described_class.decode(message.to_proto)).to eq(message)
9
+ end
10
+
11
+ it 'packages every generated protobuf and its corresponding spec' do
12
+ root = File.expand_path('../../..', __dir__)
13
+ specification = Gem::Specification.load(File.join(root, 'meshtastic.gemspec'))
14
+ Dir.glob('lib/**/*_pb.rb', base: root).each do |path|
15
+ expect(specification.files).to include(path)
16
+ expect(specification.files).to include("spec/#{path.sub(/\.rb\z/, '_spec.rb')}")
17
+ end
18
+ end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: meshtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.181
4
+ version: 0.0.182
5
5
  platform: ruby
6
6
  authors:
7
7
  - 0day Inc.
@@ -350,6 +350,7 @@ files:
350
350
  - lib/meshtastic/deviceonly.rb
351
351
  - lib/meshtastic/deviceonly_legacy_pb.rb
352
352
  - lib/meshtastic/deviceonly_pb.rb
353
+ - lib/meshtastic/field_metadata_pb.rb
353
354
  - lib/meshtastic/interdevice_pb.rb
354
355
  - lib/meshtastic/localonly.rb
355
356
  - lib/meshtastic/localonly_pb.rb
@@ -417,6 +418,7 @@ files:
417
418
  - spec/lib/meshtastic/deviceonly_legacy_pb_spec.rb
418
419
  - spec/lib/meshtastic/deviceonly_pb_spec.rb
419
420
  - spec/lib/meshtastic/deviceonly_spec.rb
421
+ - spec/lib/meshtastic/field_metadata_pb_spec.rb
420
422
  - spec/lib/meshtastic/interdevice_pb_spec.rb
421
423
  - spec/lib/meshtastic/localonly_pb_spec.rb
422
424
  - spec/lib/meshtastic/localonly_spec.rb