rfbeam 0.3.2 → 0.3.3
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/Gemfile.lock +1 -1
- data/lib/rfbeam/kld7/{detection.rb → app_messages.rb} +8 -0
- data/lib/rfbeam/version.rb +1 -1
- data/lib/rfbeam.rb +15 -15
- data/rfbeam.gemspec +46 -0
- metadata +6 -5
- /data/lib/rfbeam/kld7/{parameters.rb → app_commands.rb} +0 -0
- /data/lib/rfbeam/kld7/{commands.rb → connection.rb} +0 -0
- /data/lib/rfbeam/kld7/{device_data.rb → constants.rb} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b79b7e0fa02dd099a126d18b8eb2de0d6d4c6bf3396891d42082851851160dd
|
4
|
+
data.tar.gz: 98bb8d9c52705fb542785adbbb798330af16fde06498acddbd12156c9eece97c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35619295790790e9d3ffb3d80dab111cae4650e083d227ec1787a96fc0c8741369463d1678ae2256413ecbf0dd104078328d32a1e76b6278fea817742cecefa3
|
7
|
+
data.tar.gz: 39ea4038c1175e9d4f598c1662c1f0152bee7d14fc6222fff29cf6e4b76af2886d57138003feb26d1e25ee45485972f600f7eb99c66e62770e2c7dcbfb4dded3
|
data/Gemfile.lock
CHANGED
data/lib/rfbeam/version.rb
CHANGED
data/lib/rfbeam.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'rfbeam/kld7/
|
4
|
-
require 'rfbeam/kld7/
|
5
|
-
require 'rfbeam/kld7/
|
6
|
-
require 'rfbeam/kld7/
|
3
|
+
require 'rfbeam/kld7/app_commands'
|
4
|
+
require 'rfbeam/kld7/app_messages'
|
5
|
+
require 'rfbeam/kld7/connection'
|
6
|
+
require 'rfbeam/kld7/constants'
|
7
7
|
require_relative 'rfbeam/version'
|
8
8
|
|
9
9
|
module RfBeam
|
@@ -14,16 +14,16 @@ module RfBeam
|
|
14
14
|
include RfBeam::KLD7
|
15
15
|
end
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
17
|
+
def self.connected
|
18
|
+
path_str, dir =
|
19
|
+
if RubySerial::ON_LINUX
|
20
|
+
%w[ttyUSB /dev/]
|
21
|
+
elsif RubySerial::ON_WINDOWS
|
22
|
+
['TODO: Implement find device for Windows', 'You lazy bugger']
|
23
|
+
else
|
24
|
+
%w[tty.usbserial /dev/]
|
25
|
+
end
|
26
|
+
|
27
|
+
Dir.glob("#{dir}#{path_str}*")
|
28
28
|
end
|
29
29
|
end
|
data/rfbeam.gemspec
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative 'lib/rfbeam/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'rfbeam'
|
7
|
+
spec.version = RfBeam::VERSION
|
8
|
+
spec.authors = ['Rob Carruthers']
|
9
|
+
spec.email = ['robc@hey.com']
|
10
|
+
|
11
|
+
spec.summary = 'Ruby Serial interface and CLI for RFBeam doplar radar modules'
|
12
|
+
spec.description = 'Currently only works K-LD7 on Raspberry Pi (MacOS & Ubuntu 22.04 LTS)'
|
13
|
+
spec.homepage = 'https://gitlab.com/robcarruthers/rfbeam'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
spec.required_ruby_version = '>= 2.7.6'
|
16
|
+
|
17
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
18
|
+
|
19
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
20
|
+
spec.metadata['source_code_uri'] = 'https://gitlab.com/robcarruthers/rfbeam'
|
21
|
+
spec.metadata['changelog_uri'] = 'https://gitlab.com/robcarruthers/rfbeam/CHANGELOG.md'
|
22
|
+
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
25
|
+
spec.files =
|
26
|
+
Dir.chdir(__dir__) do
|
27
|
+
`git ls-files -z`.split("\x0")
|
28
|
+
.reject do |f|
|
29
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
30
|
+
end
|
31
|
+
end
|
32
|
+
spec.bindir = 'exe'
|
33
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
34
|
+
spec.require_paths = ['lib']
|
35
|
+
|
36
|
+
# Uncomment to register a new dependency of your gem
|
37
|
+
# spec.add_dependency "example-gem", "~> 1.0"
|
38
|
+
spec.add_dependency 'activesupport', '~> 6.1.0'
|
39
|
+
# spec.add_dependency 'bindata', '~> 2.4.10'
|
40
|
+
spec.add_dependency 'rubyserial', '~> 0.6.0'
|
41
|
+
# spec.add_dependency 'terminal-table', '~> 3.0.2'
|
42
|
+
spec.add_dependency 'thor', '~> 1.2.1'
|
43
|
+
|
44
|
+
# For more information and examples about making a new gem, check out our
|
45
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
46
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rfbeam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Carruthers
|
@@ -69,10 +69,10 @@ files:
|
|
69
69
|
- README.md
|
70
70
|
- Rakefile
|
71
71
|
- lib/rfbeam.rb
|
72
|
-
- lib/rfbeam/kld7/
|
73
|
-
- lib/rfbeam/kld7/
|
74
|
-
- lib/rfbeam/kld7/
|
75
|
-
- lib/rfbeam/kld7/
|
72
|
+
- lib/rfbeam/kld7/app_commands.rb
|
73
|
+
- lib/rfbeam/kld7/app_messages.rb
|
74
|
+
- lib/rfbeam/kld7/connection.rb
|
75
|
+
- lib/rfbeam/kld7/constants.rb
|
76
76
|
- lib/rfbeam/version.rb
|
77
77
|
- node_modules/.bin/prettier
|
78
78
|
- node_modules/.yarn-integrity
|
@@ -160,6 +160,7 @@ files:
|
|
160
160
|
- node_modules/prettier/standalone.js
|
161
161
|
- node_modules/prettier/third-party.js
|
162
162
|
- package.json
|
163
|
+
- rfbeam.gemspec
|
163
164
|
- sig/rfbeam.rbs
|
164
165
|
- yarn.lock
|
165
166
|
homepage: https://gitlab.com/robcarruthers/rfbeam
|
File without changes
|
File without changes
|
File without changes
|