aprs_is 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/aprs_is/client.rb +5 -4
- data/lib/aprs_is/filter.rb +1 -1
- data/lib/aprs_is/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26a238a0d264259d40b343b8820d4bff4aadf4454bb31ac7912667a96d4017c3
|
4
|
+
data.tar.gz: 23c7e3f48d1237b1b205099cf3b71c1e9f091352d5dc7aa48655919bc7747425
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c104262ec3acf37093da6bf047284bfb6d8bd065c1208b07158a3b76568925288b733b781d75bd86b37db4f60cc7509f2c95b14f751b2cc463919911033d3a2
|
7
|
+
data.tar.gz: 146851f758575668f128519360a7876e7bc8d767fc703e2af2e318fd6a6f45d42a1f9c175fa6d8a2e929b4eb6ff3e7e66ddd3bf7ae2e401eb5d84326fe9f800e
|
data/Gemfile.lock
CHANGED
data/lib/aprs_is/client.rb
CHANGED
@@ -12,8 +12,8 @@ module AprsIs
|
|
12
12
|
@version = version
|
13
13
|
end
|
14
14
|
|
15
|
-
def login(call_sign,
|
16
|
-
send_message(login_message(call_sign,
|
15
|
+
def login(call_sign, filters = [])
|
16
|
+
send_message(login_message(call_sign, filters))
|
17
17
|
return self
|
18
18
|
end
|
19
19
|
|
@@ -41,10 +41,11 @@ module AprsIs
|
|
41
41
|
|
42
42
|
private
|
43
43
|
|
44
|
-
def login_message(call_sign,
|
44
|
+
def login_message(call_sign, filters = [])
|
45
|
+
filters.unshift('filter') if filters.any
|
45
46
|
[
|
46
47
|
"user #{call_sign} pass #{passcode_for(call_sign)} vers #{version}",
|
47
|
-
|
48
|
+
filters.compact.collect(&:to_s)
|
48
49
|
].compact.join(" ")
|
49
50
|
end
|
50
51
|
|
data/lib/aprs_is/filter.rb
CHANGED
data/lib/aprs_is/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aprs_is
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Harrison
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11
|
11
|
+
date: 2020-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|