spektrum-log 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
  SHA1:
3
- metadata.gz: d216965c2d23d88df6669b7de13a900a69279e24
4
- data.tar.gz: dc646b75ba6918f2689643c76a20fcad203b558c
3
+ metadata.gz: 9b27ea4e4e0b71ec0ba1395c8d05ce04af0baaad
4
+ data.tar.gz: 784d8e0e1f26c9d3555e702d3a2d226d65847c1f
5
5
  SHA512:
6
- metadata.gz: a740b3dbf71d65b839f7716800e7a52766b317ddda3ecc035d8b25eed93d122be0e310b4784ddcccfad981859b292398456bbf31fcb36c8adfc0edcd2d0730ee
7
- data.tar.gz: 8f8954170ca37d65dad06923c7e7ab463527d59ec5d3e786c58102e1aa0a656ef4bd4f59f77309a744b91ab8404108f1123402d3920f79b1e0c58e36a0c01ad3
6
+ metadata.gz: 7c3dd04459dc87fe770a8384304c68e693a9d59522d17fe3032edda33b1bc91ade4dd3f6899c71e03df82a7d06fc2b1c68b14b063e7d35740d0c5517505f21da
7
+ data.tar.gz: 3a38cb895d757d3bd04ca82f64d1f5e32c02b260e07f5ecb4ba4490fd58b53b131de5dcd0b8d4325545da6d8c2cc5abe33a15fbe10a500835adca74af55ca7fe
@@ -7,9 +7,7 @@ module Spektrum
7
7
 
8
8
  attr_reader :records, :flights
9
9
 
10
- # Determines if the file at the given URI is a Spektrum telemetry log file. If one intends
11
- # to read the file, simply using #new should be preferred in favor of this, catching any
12
- # errors that may be raised.
10
+ # Determines if the file at the given URI is a Spektrum telemetry log file.
13
11
  #
14
12
  # @param uri URI to file to read
15
13
  # @return [Spektrum::Log::File] loaded file if the file is a Spektrum log file, nil otherwise
@@ -1,5 +1,5 @@
1
1
  module Spektrum
2
2
  module Log
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
@@ -143,6 +143,14 @@ describe Spektrum::Log::File do
143
143
  end
144
144
  end
145
145
 
146
+ it 'should return a file object when valid' do
147
+ expect(Spektrum::Log::File.spektrum?(data_files[0])).to be_a(Spektrum::Log::File)
148
+ end
149
+
150
+ it 'should return nil when invalid' do
151
+ expect(Spektrum::Log::File.spektrum?(invalid_data_files[0])).to be_nil
152
+ end
153
+
146
154
  end
147
155
 
148
156
  describe '#to_kml' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spektrum-log
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
  - Nick Veys