meshtastic 0.0.118 → 0.0.119
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/.rubocop_todo.yml +23 -17
- data/Gemfile +2 -2
- data/lib/meshtastic/apponly.rb +1 -1
- data/lib/meshtastic/atak.rb +1 -1
- data/lib/meshtastic/cannedmessages.rb +1 -1
- data/lib/meshtastic/channel.rb +1 -1
- data/lib/meshtastic/clientonly.rb +1 -1
- data/lib/meshtastic/config.rb +1 -1
- data/lib/meshtastic/connection_status.rb +1 -1
- data/lib/meshtastic/deviceonly.rb +1 -1
- data/lib/meshtastic/localonly.rb +1 -1
- data/lib/meshtastic/mesh_interface.rb +596 -0
- data/lib/meshtastic/module_config.rb +1 -1
- data/lib/meshtastic/mqtt.rb +7 -4
- data/lib/meshtastic/paxcount.rb +1 -1
- data/lib/meshtastic/portnums.rb +1 -1
- data/lib/meshtastic/remote_hardware.rb +1 -1
- data/lib/meshtastic/rtttl.rb +1 -1
- data/lib/meshtastic/serial.rb +166 -31
- data/lib/meshtastic/storeforward.rb +1 -1
- data/lib/meshtastic/telemetry.rb +1 -1
- data/lib/meshtastic/util.rb +70 -0
- data/lib/meshtastic/version.rb +1 -1
- data/lib/meshtastic/xmodem.rb +1 -1
- data/lib/meshtastic.rb +9 -499
- data/spec/lib/meshtastic/mesh_interface_spec.rb +6 -0
- data/spec/lib/meshtastic/{mesh_spec.rb → util_spec.rb} +1 -1
- metadata +9 -7
- data/lib/meshtastic/mesh.rb +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cdede9307850fd527d523986a6a462cb9383e46aea77e2477496bea853e83078
|
4
|
+
data.tar.gz: 5fa41b4e5a6a14569eefc4dad958d7564d30225f6abeebefdc2debbb22fc4c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de25006fcdc794beba4c9e9a01d807ce66b10380362c9a3a2d5988010194525f861a292aa3f160e18aa30bdfaa58c97dfe78d049dc0c667f365d62af1b0d33a3
|
7
|
+
data.tar.gz: 735fb9ee16b0516f763e38af710b4702449cf6eef070e0d0cf52ac8c4e98f1bab4b6d2cee302276c5885ed4aabd368758dd2fe6942a44d5e08edb17dce7d9492
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2025-02-16 22:35:06 UTC using RuboCop version 1.72.1.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -14,23 +14,17 @@ Bundler/OrderedGems:
|
|
14
14
|
Exclude:
|
15
15
|
- 'Gemfile'
|
16
16
|
|
17
|
-
# Offense count:
|
18
|
-
# This cop supports safe autocorrection (--autocorrect).
|
19
|
-
# Configuration parameters: AllowInHeredoc.
|
20
|
-
Layout/TrailingWhitespace:
|
21
|
-
Exclude:
|
22
|
-
- 'lib/meshtastic.rb'
|
23
|
-
|
24
|
-
# Offense count: 43
|
17
|
+
# Offense count: 49
|
25
18
|
# Configuration parameters: AllowComments, AllowEmptyLambdas.
|
26
19
|
Lint/EmptyBlock:
|
27
20
|
Enabled: false
|
28
21
|
|
29
|
-
# Offense count:
|
30
|
-
# This cop supports
|
22
|
+
# Offense count: 4
|
23
|
+
# This cop supports safe autocorrection (--autocorrect).
|
31
24
|
# Configuration parameters: AutoCorrect.
|
32
25
|
Lint/UselessAssignment:
|
33
26
|
Exclude:
|
27
|
+
- 'lib/meshtastic/serial.rb'
|
34
28
|
- 'meshtastic.gemspec'
|
35
29
|
|
36
30
|
# Offense count: 6
|
@@ -43,7 +37,13 @@ Metrics/BlockLength:
|
|
43
37
|
- 'lib/meshtastic/mesh_pb.rb'
|
44
38
|
- 'lib/meshtastic/module_config_pb.rb'
|
45
39
|
|
46
|
-
# Offense count:
|
40
|
+
# Offense count: 1
|
41
|
+
# Configuration parameters: CountComments, Max, CountAsOne.
|
42
|
+
Metrics/ClassLength:
|
43
|
+
Exclude:
|
44
|
+
- 'lib/meshtastic/mesh_interface.rb'
|
45
|
+
|
46
|
+
# Offense count: 52
|
47
47
|
# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
|
48
48
|
# SupportedStyles: snake_case, normalcase, non_integer
|
49
49
|
# AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
|
@@ -54,23 +54,29 @@ Naming/VariableNumber:
|
|
54
54
|
- 'lib/meshtastic/module_config_pb.rb'
|
55
55
|
- 'lib/nanopb_pb.rb'
|
56
56
|
|
57
|
-
# Offense count:
|
57
|
+
# Offense count: 24
|
58
58
|
# Configuration parameters: AllowedConstants.
|
59
59
|
Style/Documentation:
|
60
60
|
Enabled: false
|
61
61
|
|
62
|
-
# Offense count:
|
62
|
+
# Offense count: 2
|
63
|
+
# This cop supports safe autocorrection (--autocorrect).
|
64
|
+
Style/ExplicitBlockArgument:
|
65
|
+
Exclude:
|
66
|
+
- 'lib/meshtastic/serial.rb'
|
67
|
+
|
68
|
+
# Offense count: 23
|
63
69
|
# This cop supports unsafe autocorrection (--autocorrect-all).
|
64
70
|
# Configuration parameters: EnforcedStyle.
|
65
71
|
# SupportedStyles: always, always_true, never
|
66
72
|
Style/FrozenStringLiteralComment:
|
67
73
|
Enabled: false
|
68
74
|
|
69
|
-
# Offense count:
|
75
|
+
# Offense count: 23
|
70
76
|
# This cop supports safe autocorrection (--autocorrect).
|
71
77
|
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
72
78
|
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
73
|
-
# SupportedShorthandSyntax: always, never, either, consistent
|
79
|
+
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
|
74
80
|
Style/HashSyntax:
|
75
81
|
Enabled: false
|
76
82
|
|
@@ -80,7 +86,7 @@ Style/RedundantConstantBase:
|
|
80
86
|
Exclude:
|
81
87
|
- 'lib/nanopb_pb.rb'
|
82
88
|
|
83
|
-
# Offense count:
|
89
|
+
# Offense count: 522
|
84
90
|
# This cop supports safe autocorrection (--autocorrect).
|
85
91
|
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
86
92
|
# SupportedStyles: single_quotes, double_quotes
|
data/Gemfile
CHANGED
@@ -15,8 +15,8 @@ gem 'rake', '13.2.1'
|
|
15
15
|
gem 'rdoc', '6.12.0'
|
16
16
|
gem 'rspec', '3.13.0'
|
17
17
|
gem 'rubocop', '>=1.72.1'
|
18
|
-
gem 'rubocop-rake', '>=0.7.
|
19
|
-
gem 'rubocop-rspec', '>=3.
|
18
|
+
gem 'rubocop-rake', '>=0.7.1'
|
19
|
+
gem 'rubocop-rspec', '>=3.5.0'
|
20
20
|
gem 'rvm', '1.11.3.9'
|
21
21
|
gem 'uart', '1.0.0'
|
22
22
|
gem 'yard', '0.9.37'
|
data/lib/meshtastic/apponly.rb
CHANGED
data/lib/meshtastic/atak.rb
CHANGED
data/lib/meshtastic/channel.rb
CHANGED
data/lib/meshtastic/config.rb
CHANGED