jeti-log 0.5.3 → 0.5.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec0e730ba22eea346a84d593d4d4a4b60458904b
4
- data.tar.gz: 065ed6481f36ecd1d0b3ef83f0e53d0b1c31deaf
3
+ metadata.gz: 1dfad65e0307fbb1318b404174c905a79664d988
4
+ data.tar.gz: 6fd2bfbcd62dc4b0cf6600dcc475850dd5aca537
5
5
  SHA512:
6
- metadata.gz: 81b05e15fc3d6d12b4dde25462753666f56a1ff6a39ef84f094193379ce40c875e3d0bce128a14c22f0aa7b86a325874734efde834c993f88cff722286130dcf
7
- data.tar.gz: cf386bca21cb0b9b92757ae8664fda3545b7338b4c48734be0501ab5d8839632827c0247cd47818e65b9a64068b2243d23092db1bb1d047fa0a28db7a132fece
6
+ metadata.gz: ba7fc270b1a9c168c8a302ea50503765f263d831016c2aea382bd700fb0749059fa20c91b36d83cdc016348360ef24c5cf92858b74736696e84ef75ebf48d14a
7
+ data.tar.gz: 3d8574cd5d985663799de5ebd6f3c05cd494460cfe51fb634aba1242fbe50e71b10430225ebf472e76810e78a5c9672599427fe8123a3ae69f67bdefd7d44b50
@@ -18,8 +18,7 @@ module Jeti; module Log; module Data;
18
18
  end
19
19
 
20
20
  primaries.map do |raw|
21
- time = raw[0]
22
- f0 = raw[1]
21
+ time, f0 = raw
23
22
  fn = other_data.map { |d| d.min_by { |dp| (dp[0] - time).abs }[1] }
24
23
  clazz.new(time, fn.unshift(f0))
25
24
  end
@@ -2,6 +2,7 @@ module Jeti; module Log; module Data;
2
2
 
3
3
  class RxData
4
4
 
5
+ attr_reader :time
5
6
  attr_reader :voltage
6
7
  attr_reader :antenna1
7
8
  attr_reader :antenna2
@@ -1,5 +1,5 @@
1
1
  module Jeti
2
2
  module Log
3
- VERSION = '0.5.3'
3
+ VERSION = '0.5.4'
4
4
  end
5
5
  end
@@ -0,0 +1,17 @@
1
+ require 'spec_helper'
2
+
3
+ describe Jeti::Log::Data::RxData do
4
+
5
+ subject { described_class.new(150, [7.89, 9, 8, 89]) }
6
+
7
+ its(:time) { should eql(150) }
8
+
9
+ its(:voltage) { should be_within(0.1).of(7.89) }
10
+
11
+ its(:antenna1) { should eql(9) }
12
+
13
+ its(:antenna2) { should eql(8) }
14
+
15
+ its(:quality) { should eql(89) }
16
+
17
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeti-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Veys
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
11
+ date: 2013-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -165,6 +165,7 @@ files:
165
165
  - spec/data/mezon_data_spec.rb
166
166
  - spec/data/mgps_data_spec.rb
167
167
  - spec/data/mui_data_spec.rb
168
+ - spec/data/rx_data_spec.rb
168
169
  - spec/data/tx_data_spec.rb
169
170
  - spec/file_spec.rb
170
171
  - spec/sample-data/1min-tx-rx.log
@@ -212,6 +213,7 @@ test_files:
212
213
  - spec/data/mezon_data_spec.rb
213
214
  - spec/data/mgps_data_spec.rb
214
215
  - spec/data/mui_data_spec.rb
216
+ - spec/data/rx_data_spec.rb
215
217
  - spec/data/tx_data_spec.rb
216
218
  - spec/file_spec.rb
217
219
  - spec/sample-data/1min-tx-rx.log