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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2628f0430c1aaaab4c4db1dc0e6b3501a3605e76b8cc8c9ebdb2a40529b0ae12
4
- data.tar.gz: e9d66295e712e9d32684701e69c5d53f7a5dfd9fca484674aecd68e374a710c0
3
+ metadata.gz: 26a238a0d264259d40b343b8820d4bff4aadf4454bb31ac7912667a96d4017c3
4
+ data.tar.gz: 23c7e3f48d1237b1b205099cf3b71c1e9f091352d5dc7aa48655919bc7747425
5
5
  SHA512:
6
- metadata.gz: dcd936e78c5b5a03ec8b7eb09b231c4d34f38932d86bd8c613d880dfc9c4b30c9cabb3045eef27673f45ea6e50c93012673c2c8f369b592115fdeb33b06167ba
7
- data.tar.gz: 88e0e29ea7793741a80a720939a9800f3936393121a4877702b3935dc962a94e8614bf0813a0d47f976a5972fa8e718eca6196d994c9333ab171f9865205e465
6
+ metadata.gz: 2c104262ec3acf37093da6bf047284bfb6d8bd065c1208b07158a3b76568925288b733b781d75bd86b37db4f60cc7509f2c95b14f751b2cc463919911033d3a2
7
+ data.tar.gz: 146851f758575668f128519360a7876e7bc8d767fc703e2af2e318fd6a6f45d42a1f9c175fa6d8a2e929b4eb6ff3e7e66ddd3bf7ae2e401eb5d84326fe9f800e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aprs_is (0.1.0)
4
+ aprs_is (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,8 +12,8 @@ module AprsIs
12
12
  @version = version
13
13
  end
14
14
 
15
- def login(call_sign, filter = nil)
16
- send_message(login_message(call_sign, filter))
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, filter = nil)
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
- filter&.to_s
48
+ filters.compact.collect(&:to_s)
48
49
  ].compact.join(" ")
49
50
  end
50
51
 
@@ -16,7 +16,7 @@ module AprsIs
16
16
  end
17
17
 
18
18
  def to_s
19
- values.unshift(prefix).compact.join("/")
19
+ values.dup.unshift(prefix).compact.join("/")
20
20
  end
21
21
 
22
22
  private
@@ -1,3 +1,3 @@
1
1
  module AprsIs
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-24 00:00:00.000000000 Z
11
+ date: 2020-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec