meshtastic 0.0.142 → 0.0.143

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.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. metadata +20 -144
  3. data/.github/workflows/main.yml +0 -27
  4. data/.gitignore +0 -29
  5. data/.rspec +0 -3
  6. data/.rubocop.yml +0 -35
  7. data/.rubocop_todo.yml +0 -134
  8. data/.ruby-gemset +0 -1
  9. data/.ruby-version +0 -1
  10. data/AUTOGEN_meshtastic_protobufs.sh +0 -28
  11. data/CHANGELOG_BETWEEN_TAGS.txt +0 -196
  12. data/CODE_OF_CONDUCT.md +0 -84
  13. data/Gemfile +0 -23
  14. data/LICENSE +0 -21
  15. data/README.md +0 -106
  16. data/Rakefile +0 -17
  17. data/bin/meshtastic_autoinc_version +0 -38
  18. data/build_meshtastic_gem.sh +0 -58
  19. data/git_commit.sh +0 -29
  20. data/lib/meshtastic/admin.rb +0 -24
  21. data/lib/meshtastic/admin_pb.rb +0 -31
  22. data/lib/meshtastic/apponly.rb +0 -24
  23. data/lib/meshtastic/apponly_pb.rb +0 -18
  24. data/lib/meshtastic/atak.rb +0 -24
  25. data/lib/meshtastic/atak_pb.rb +0 -22
  26. data/lib/meshtastic/cannedmessages.rb +0 -24
  27. data/lib/meshtastic/cannedmessages_pb.rb +0 -15
  28. data/lib/meshtastic/channel.rb +0 -24
  29. data/lib/meshtastic/channel_pb.rb +0 -18
  30. data/lib/meshtastic/clientonly.rb +0 -24
  31. data/lib/meshtastic/clientonly_pb.rb +0 -18
  32. data/lib/meshtastic/config.rb +0 -24
  33. data/lib/meshtastic/config_pb.rb +0 -42
  34. data/lib/meshtastic/connection_status.rb +0 -24
  35. data/lib/meshtastic/connection_status_pb.rb +0 -20
  36. data/lib/meshtastic/device_ui_pb.rb +0 -23
  37. data/lib/meshtastic/deviceonly.rb +0 -24
  38. data/lib/meshtastic/deviceonly_pb.rb +0 -28
  39. data/lib/meshtastic/interdevice_pb.rb +0 -17
  40. data/lib/meshtastic/localonly.rb +0 -24
  41. data/lib/meshtastic/localonly_pb.rb +0 -19
  42. data/lib/meshtastic/mesh_interface.rb +0 -596
  43. data/lib/meshtastic/mesh_pb.rb +0 -65
  44. data/lib/meshtastic/module_config.rb +0 -24
  45. data/lib/meshtastic/module_config_pb.rb +0 -36
  46. data/lib/meshtastic/mqtt.rb +0 -383
  47. data/lib/meshtastic/mqtt_pb.rb +0 -19
  48. data/lib/meshtastic/paxcount.rb +0 -24
  49. data/lib/meshtastic/paxcount_pb.rb +0 -15
  50. data/lib/meshtastic/portnums.rb +0 -24
  51. data/lib/meshtastic/portnums_pb.rb +0 -15
  52. data/lib/meshtastic/powermon_pb.rb +0 -18
  53. data/lib/meshtastic/remote_hardware.rb +0 -24
  54. data/lib/meshtastic/remote_hardware_pb.rb +0 -16
  55. data/lib/meshtastic/rtttl.rb +0 -24
  56. data/lib/meshtastic/rtttl_pb.rb +0 -15
  57. data/lib/meshtastic/serial_interface.rb +0 -550
  58. data/lib/meshtastic/storeforward.rb +0 -24
  59. data/lib/meshtastic/storeforward_pb.rb +0 -19
  60. data/lib/meshtastic/stream_interface.rb +0 -132
  61. data/lib/meshtastic/telemetry.rb +0 -24
  62. data/lib/meshtastic/telemetry_pb.rb +0 -24
  63. data/lib/meshtastic/util.rb +0 -70
  64. data/lib/meshtastic/version.rb +0 -5
  65. data/lib/meshtastic/xmodem.rb +0 -24
  66. data/lib/meshtastic/xmodem_pb.rb +0 -16
  67. data/lib/meshtastic.rb +0 -71
  68. data/lib/nanopb_pb.rb +0 -19
  69. data/meshtastic.gemspec +0 -73
  70. data/reinstall_meshtastic_gemset.sh +0 -29
  71. data/sig/meshtastic.rbs +0 -4
  72. data/spec/lib/meshtastic/admin_pb_spec.rb +0 -6
  73. data/spec/lib/meshtastic/admin_spec.rb +0 -6
  74. data/spec/lib/meshtastic/apponly_pb_spec.rb +0 -6
  75. data/spec/lib/meshtastic/apponly_spec.rb +0 -6
  76. data/spec/lib/meshtastic/atak_pb_spec.rb +0 -6
  77. data/spec/lib/meshtastic/atak_spec.rb +0 -6
  78. data/spec/lib/meshtastic/cannedmessages_pb_spec.rb +0 -6
  79. data/spec/lib/meshtastic/cannedmessages_spec.rb +0 -6
  80. data/spec/lib/meshtastic/channel_pb_spec.rb +0 -6
  81. data/spec/lib/meshtastic/channel_spec.rb +0 -6
  82. data/spec/lib/meshtastic/clientonly_pb_spec.rb +0 -6
  83. data/spec/lib/meshtastic/clientonly_spec.rb +0 -6
  84. data/spec/lib/meshtastic/config_pb_spec.rb +0 -6
  85. data/spec/lib/meshtastic/config_spec.rb +0 -6
  86. data/spec/lib/meshtastic/connection_status_pb_spec.rb +0 -6
  87. data/spec/lib/meshtastic/connection_status_spec.rb +0 -6
  88. data/spec/lib/meshtastic/device_ui_pb_spec.rb +0 -6
  89. data/spec/lib/meshtastic/deviceonly_pb_spec.rb +0 -6
  90. data/spec/lib/meshtastic/deviceonly_spec.rb +0 -6
  91. data/spec/lib/meshtastic/interdevice_pb_spec.rb +0 -6
  92. data/spec/lib/meshtastic/localonly_pb_spec.rb +0 -6
  93. data/spec/lib/meshtastic/localonly_spec.rb +0 -6
  94. data/spec/lib/meshtastic/mesh_interface_spec.rb +0 -6
  95. data/spec/lib/meshtastic/mesh_pb_spec.rb +0 -6
  96. data/spec/lib/meshtastic/module_config_pb_spec.rb +0 -6
  97. data/spec/lib/meshtastic/module_config_spec.rb +0 -6
  98. data/spec/lib/meshtastic/mqtt_pb_spec.rb +0 -6
  99. data/spec/lib/meshtastic/mqtt_spec.rb +0 -6
  100. data/spec/lib/meshtastic/paxcount_pb_spec.rb +0 -6
  101. data/spec/lib/meshtastic/paxcount_spec.rb +0 -6
  102. data/spec/lib/meshtastic/portnums_pb_spec.rb +0 -6
  103. data/spec/lib/meshtastic/portnums_spec.rb +0 -6
  104. data/spec/lib/meshtastic/powermon_pb_spec.rb +0 -6
  105. data/spec/lib/meshtastic/remote_hardware_pb_spec.rb +0 -6
  106. data/spec/lib/meshtastic/remote_hardware_spec.rb +0 -6
  107. data/spec/lib/meshtastic/rtttl_pb_spec.rb +0 -6
  108. data/spec/lib/meshtastic/rtttl_spec.rb +0 -6
  109. data/spec/lib/meshtastic/serial_interface_spec.rb +0 -6
  110. data/spec/lib/meshtastic/storeforward_pb_spec.rb +0 -6
  111. data/spec/lib/meshtastic/storeforward_spec.rb +0 -6
  112. data/spec/lib/meshtastic/stream_interface_spec.rb +0 -6
  113. data/spec/lib/meshtastic/telemetry_pb_spec.rb +0 -6
  114. data/spec/lib/meshtastic/telemetry_spec.rb +0 -6
  115. data/spec/lib/meshtastic/util_spec.rb +0 -6
  116. data/spec/lib/meshtastic/version_spec.rb +0 -17
  117. data/spec/lib/meshtastic/xmodem_pb_spec.rb +0 -6
  118. data/spec/lib/meshtastic/xmodem_spec.rb +0 -6
  119. data/spec/lib/meshtastic_spec.rb +0 -6
  120. data/spec/lib/nanopb_pb_spec.rb +0 -6
  121. data/spec/spec_helper.rb +0 -15
  122. data/upgrade_Gemfile_gems.sh +0 -21
  123. data/upgrade_gem.sh +0 -4
  124. data/upgrade_meshtastic.sh +0 -13
  125. data/upgrade_ruby.sh +0 -45
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Clientonly do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::ClientonlyPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Clientonly do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::ConnectionStatusPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::ConnectionStatus do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::DeviceUIConfig do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::DeviceonlyPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Deviceonly do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::InterdeviceMessage do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::LocalonlyPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Localonly do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::MeshInterface do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::MeshPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::ModuleConfigPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::ModuleConfig do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::MQTTPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::MQTT do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::PaxcountPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Paxcount do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::PortnumsPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Portnums do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::PowerMon do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::RemoteHardwarePB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::RemoteHardware do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::RTTTLPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::RTTTL do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::SerialInterface do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::StoreforwardPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Storeforward do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::StreamInterface do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::TelemetryPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Telemetry do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::Util do
6
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::VERSION do
6
- it 'is defined' do
7
- expect(Meshtastic::VERSION).not_to be_nil
8
- end
9
-
10
- it 'is a string' do
11
- expect(Meshtastic::VERSION).to be_a(String)
12
- end
13
-
14
- it 'matches the expected pattern' do
15
- expect(Meshtastic::VERSION).to match(/\d+\.\d+\.\d+/)
16
- end
17
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::XModemPB do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic::XModem do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe Meshtastic do
6
- end
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'spec_helper'
4
-
5
- describe NanoPBOptions do
6
- end
data/spec/spec_helper.rb DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "meshtastic"
4
-
5
- RSpec.configure do |config|
6
- # Enable flags like --only-failures and --next-failure
7
- config.example_status_persistence_file_path = ".rspec_status"
8
-
9
- # Disable RSpec exposing methods globally on `Module` and `main`
10
- config.disable_monkey_patching!
11
-
12
- config.expect_with :rspec do |c|
13
- c.syntax = :expect
14
- end
15
- end
@@ -1,21 +0,0 @@
1
- #!/bin/bash --login
2
- cat Gemfile | awk '{print $2}' | grep -E "^'.+$" | grep -v -e rubygems.org | while read gem; do
3
- this_gem=`echo $gem | sed "s/'//g" | sed 's/\,//g'`
4
- latest_version=`gem search -r $this_gem | grep -E "^${this_gem}\s.+$" | awk '{print $2}' | sed 's/(//g' | sed 's/)//g' | sed 's/,//g'`
5
- echo "${this_gem} => $latest_version"
6
- os=`uname -s`
7
- if [[ $os == 'Linux' ]]; then
8
- case $this_gem in
9
- 'bundler'|'rubocop'|'rubocop-rake'|'rubocop-rspec')
10
- sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '>=${latest_version}'/g" Gemfile;;
11
- *)
12
- sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '${latest_version}'/g" Gemfile;;
13
- esac
14
- elif [[ $os == 'Darwin' ]]; then
15
- if [[ $this_gem == 'bundler' ]]; then
16
- sed -i '' "s/^gem '${this_gem}'.*$/gem '${this_gem}', '>=${latest_version}'/g" Gemfile
17
- else
18
- sed -i '' "s/^gem '${this_gem}'.*$/gem '${this_gem}', '${latest_version}'/g" Gemfile
19
- fi
20
- fi
21
- done
data/upgrade_gem.sh DELETED
@@ -1,4 +0,0 @@
1
- #!/bin/bash --login
2
- printf "Updating RubyGems (i.e. gem command)..."
3
- gem update --system
4
- echo "complete."
@@ -1,13 +0,0 @@
1
- #!/bin/bash --login
2
- if [[ $MESHTASTIC_ROOT == '' ]]; then
3
- if [[ ! -d '/opt/meshtastic' ]]; then
4
- mesh_root=$(pwd)
5
- else
6
- mesh_root='/opt/meshtastic'
7
- fi
8
- else
9
- mesh_root="${MESHTASTIC_ROOT}"
10
- fi
11
-
12
- export rvmsudo_secure_path=1
13
- rvmsudo /bin/bash --login -c "cd ${mesh_root} && ./build_meshtastic_gem.sh"
data/upgrade_ruby.sh DELETED
@@ -1,45 +0,0 @@
1
- #!/bin/bash --login
2
- # USE THIS SCRIPT WHEN UPGRADING RUBY
3
- if [[ $MESHTASTIC_ROOT == '' ]]; then
4
- if [[ ! -d '/opt/meshtastic' ]]; then
5
- meshtastic_root=$(pwd)
6
- else
7
- meshtastic_root='/opt/meshtastic'
8
- fi
9
- else
10
- meshtastic_root="${MESHTASTIC_ROOT}"
11
- fi
12
-
13
- function usage() {
14
- echo $"Usage: $0 <new ruby version e.g. 2.4.4> <optional bool running from build_meshtastic_gem.sh>"
15
- exit 1
16
- }
17
-
18
- if [[ -f '/etc/profile.d/rvm.sh' ]]; then
19
- source /etc/profile.d/rvm.sh
20
- fi
21
-
22
- new_ruby_version=$1
23
- if [[ $2 != '' ]]; then
24
- old_ruby_version=$2
25
- else
26
- old_ruby_version=`cat ${meshtastic_root}/.ruby-version`
27
- fi
28
-
29
- ruby_gemset=`cat ${meshtastic_root}/.ruby-gemset`
30
-
31
- if [[ $# < 1 ]]; then
32
- usage
33
- fi
34
-
35
- # Upgrade RVM
36
- export rvmsudo_secure_path=1
37
- rvmsudo rvm get head
38
- rvm reload
39
-
40
- # Install New Version of RubyGems & Ruby
41
- cd $meshtastic_root && ./upgrade_gem.sh
42
- rvmsudo rvm install ruby-$new_ruby_version
43
- echo $new_ruby_version > $meshtastic_root/.ruby-version
44
-
45
- cd $meshtastic_root && rvm use $new_ruby_version@$ruby_gemset && ./build_meshtastic_gem.sh