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.
- checksums.yaml +4 -4
- metadata +20 -144
- data/.github/workflows/main.yml +0 -27
- data/.gitignore +0 -29
- data/.rspec +0 -3
- data/.rubocop.yml +0 -35
- data/.rubocop_todo.yml +0 -134
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/AUTOGEN_meshtastic_protobufs.sh +0 -28
- data/CHANGELOG_BETWEEN_TAGS.txt +0 -196
- data/CODE_OF_CONDUCT.md +0 -84
- data/Gemfile +0 -23
- data/LICENSE +0 -21
- data/README.md +0 -106
- data/Rakefile +0 -17
- data/bin/meshtastic_autoinc_version +0 -38
- data/build_meshtastic_gem.sh +0 -58
- data/git_commit.sh +0 -29
- data/lib/meshtastic/admin.rb +0 -24
- data/lib/meshtastic/admin_pb.rb +0 -31
- data/lib/meshtastic/apponly.rb +0 -24
- data/lib/meshtastic/apponly_pb.rb +0 -18
- data/lib/meshtastic/atak.rb +0 -24
- data/lib/meshtastic/atak_pb.rb +0 -22
- data/lib/meshtastic/cannedmessages.rb +0 -24
- data/lib/meshtastic/cannedmessages_pb.rb +0 -15
- data/lib/meshtastic/channel.rb +0 -24
- data/lib/meshtastic/channel_pb.rb +0 -18
- data/lib/meshtastic/clientonly.rb +0 -24
- data/lib/meshtastic/clientonly_pb.rb +0 -18
- data/lib/meshtastic/config.rb +0 -24
- data/lib/meshtastic/config_pb.rb +0 -42
- data/lib/meshtastic/connection_status.rb +0 -24
- data/lib/meshtastic/connection_status_pb.rb +0 -20
- data/lib/meshtastic/device_ui_pb.rb +0 -23
- data/lib/meshtastic/deviceonly.rb +0 -24
- data/lib/meshtastic/deviceonly_pb.rb +0 -28
- data/lib/meshtastic/interdevice_pb.rb +0 -17
- data/lib/meshtastic/localonly.rb +0 -24
- data/lib/meshtastic/localonly_pb.rb +0 -19
- data/lib/meshtastic/mesh_interface.rb +0 -596
- data/lib/meshtastic/mesh_pb.rb +0 -65
- data/lib/meshtastic/module_config.rb +0 -24
- data/lib/meshtastic/module_config_pb.rb +0 -36
- data/lib/meshtastic/mqtt.rb +0 -383
- data/lib/meshtastic/mqtt_pb.rb +0 -19
- data/lib/meshtastic/paxcount.rb +0 -24
- data/lib/meshtastic/paxcount_pb.rb +0 -15
- data/lib/meshtastic/portnums.rb +0 -24
- data/lib/meshtastic/portnums_pb.rb +0 -15
- data/lib/meshtastic/powermon_pb.rb +0 -18
- data/lib/meshtastic/remote_hardware.rb +0 -24
- data/lib/meshtastic/remote_hardware_pb.rb +0 -16
- data/lib/meshtastic/rtttl.rb +0 -24
- data/lib/meshtastic/rtttl_pb.rb +0 -15
- data/lib/meshtastic/serial_interface.rb +0 -550
- data/lib/meshtastic/storeforward.rb +0 -24
- data/lib/meshtastic/storeforward_pb.rb +0 -19
- data/lib/meshtastic/stream_interface.rb +0 -132
- data/lib/meshtastic/telemetry.rb +0 -24
- data/lib/meshtastic/telemetry_pb.rb +0 -24
- data/lib/meshtastic/util.rb +0 -70
- data/lib/meshtastic/version.rb +0 -5
- data/lib/meshtastic/xmodem.rb +0 -24
- data/lib/meshtastic/xmodem_pb.rb +0 -16
- data/lib/meshtastic.rb +0 -71
- data/lib/nanopb_pb.rb +0 -19
- data/meshtastic.gemspec +0 -73
- data/reinstall_meshtastic_gemset.sh +0 -29
- data/sig/meshtastic.rbs +0 -4
- data/spec/lib/meshtastic/admin_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/admin_spec.rb +0 -6
- data/spec/lib/meshtastic/apponly_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/apponly_spec.rb +0 -6
- data/spec/lib/meshtastic/atak_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/atak_spec.rb +0 -6
- data/spec/lib/meshtastic/cannedmessages_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/cannedmessages_spec.rb +0 -6
- data/spec/lib/meshtastic/channel_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/channel_spec.rb +0 -6
- data/spec/lib/meshtastic/clientonly_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/clientonly_spec.rb +0 -6
- data/spec/lib/meshtastic/config_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/config_spec.rb +0 -6
- data/spec/lib/meshtastic/connection_status_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/connection_status_spec.rb +0 -6
- data/spec/lib/meshtastic/device_ui_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/deviceonly_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/deviceonly_spec.rb +0 -6
- data/spec/lib/meshtastic/interdevice_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/localonly_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/localonly_spec.rb +0 -6
- data/spec/lib/meshtastic/mesh_interface_spec.rb +0 -6
- data/spec/lib/meshtastic/mesh_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/module_config_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/module_config_spec.rb +0 -6
- data/spec/lib/meshtastic/mqtt_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/mqtt_spec.rb +0 -6
- data/spec/lib/meshtastic/paxcount_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/paxcount_spec.rb +0 -6
- data/spec/lib/meshtastic/portnums_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/portnums_spec.rb +0 -6
- data/spec/lib/meshtastic/powermon_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/remote_hardware_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/remote_hardware_spec.rb +0 -6
- data/spec/lib/meshtastic/rtttl_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/rtttl_spec.rb +0 -6
- data/spec/lib/meshtastic/serial_interface_spec.rb +0 -6
- data/spec/lib/meshtastic/storeforward_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/storeforward_spec.rb +0 -6
- data/spec/lib/meshtastic/stream_interface_spec.rb +0 -6
- data/spec/lib/meshtastic/telemetry_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/telemetry_spec.rb +0 -6
- data/spec/lib/meshtastic/util_spec.rb +0 -6
- data/spec/lib/meshtastic/version_spec.rb +0 -17
- data/spec/lib/meshtastic/xmodem_pb_spec.rb +0 -6
- data/spec/lib/meshtastic/xmodem_spec.rb +0 -6
- data/spec/lib/meshtastic_spec.rb +0 -6
- data/spec/lib/nanopb_pb_spec.rb +0 -6
- data/spec/spec_helper.rb +0 -15
- data/upgrade_Gemfile_gems.sh +0 -21
- data/upgrade_gem.sh +0 -4
- data/upgrade_meshtastic.sh +0 -13
- data/upgrade_ruby.sh +0 -45
|
@@ -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
|
data/spec/lib/meshtastic_spec.rb
DELETED
data/spec/lib/nanopb_pb_spec.rb
DELETED
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
|
data/upgrade_Gemfile_gems.sh
DELETED
|
@@ -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
data/upgrade_meshtastic.sh
DELETED
|
@@ -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
|