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 +4 -4
- data/lib/meshtastic/field_metadata_pb.rb +17 -0
- data/lib/meshtastic/version.rb +1 -1
- data/meshtastic.gemspec +3 -0
- data/spec/lib/meshtastic/field_metadata_pb_spec.rb +19 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b5946f218daad08b39581b432ce784a6f5e87dbb65604c56fb13ca80668f146
|
|
4
|
+
data.tar.gz: 71bb00a58a69e32525c4c802d4cccaa31123ace62547a0d4be35bc5416dd39fc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/meshtastic/version.rb
CHANGED
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.
|
|
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
|