jeti-log 0.5.4 → 0.5.5

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: 1dfad65e0307fbb1318b404174c905a79664d988
4
- data.tar.gz: 6fd2bfbcd62dc4b0cf6600dcc475850dd5aca537
3
+ metadata.gz: 04da93b8a9eabaf8b587c469631301aae286f207
4
+ data.tar.gz: ca2a8bca18917c71bf88541e41812e3bbcbd7e55
5
5
  SHA512:
6
- metadata.gz: ba7fc270b1a9c168c8a302ea50503765f263d831016c2aea382bd700fb0749059fa20c91b36d83cdc016348360ef24c5cf92858b74736696e84ef75ebf48d14a
7
- data.tar.gz: 3d8574cd5d985663799de5ebd6f3c05cd494460cfe51fb634aba1242fbe50e71b10430225ebf472e76810e78a5c9672599427fe8123a3ae69f67bdefd7d44b50
6
+ metadata.gz: 25a3bcee62b232c6eec9e18a52e4a90d79d123986df5a953dda412a6f402175f2255606c75bd866cde5ffd8a9fd07a563225b0cf8cdb87302a2b6544a3fb205a
7
+ data.tar.gz: 3a589b209b0f5733b4b18741477accdf875fe8d699ecee6a034cbf970fed0cd79de70dea70f5d8b3483d80c54da86d8183db882b9d2439aeaaa34ec662c148e8
@@ -23,7 +23,7 @@ module Jeti; module Log;
23
23
  def value(sensor_id)
24
24
  raw = detail(sensor_id)
25
25
  case raw[1]
26
- when '1','4','8'
26
+ when '0','1','4','8'
27
27
  raw[3].to_i
28
28
  when '5'
29
29
  min = (raw[3].to_i & 0xFF00) >> 8
@@ -1,5 +1,5 @@
1
1
  module Jeti
2
2
  module Log
3
- VERSION = '0.5.4'
3
+ VERSION = '0.5.5'
4
4
  end
5
5
  end
@@ -64,13 +64,14 @@ describe Jeti::Log::File do
64
64
 
65
65
  it { should have(539).mgps_data }
66
66
 
67
- it 'should have some select gps locations' do
67
+ it 'should have some select gps information' do
68
68
  loc = subject.mgps_data[0]
69
69
  expect(loc.time).to eql(219552)
70
70
  expect(loc.latitude).to be_within(0.0001).of(41.1856)
71
71
  expect(loc.longitude).to be_within(0.0001).of(-96.0103)
72
72
  expect(loc.altitude(:meters)).to eql(309)
73
73
  expect(loc.course).to eql(0)
74
+ expect(loc.satellite_count).to eql(8)
74
75
 
75
76
  loc = subject.mgps_data[250]
76
77
  expect(loc.time).to eql(347038)
@@ -78,6 +79,7 @@ describe Jeti::Log::File do
78
79
  expect(loc.longitude).to be_within(0.0001).of(-96.0094)
79
80
  expect(loc.altitude(:meters)).to eql(352)
80
81
  expect(loc.course).to eql(294)
82
+ expect(loc.satellite_count).to eql(9)
81
83
 
82
84
  loc = subject.mgps_data[450]
83
85
  expect(loc.time).to eql(456409)
@@ -85,6 +87,7 @@ describe Jeti::Log::File do
85
87
  expect(loc.longitude).to be_within(0.0001).of(-96.0091)
86
88
  expect(loc.altitude(:meters)).to eql(333)
87
89
  expect(loc.course).to eql(0)
90
+ expect(loc.satellite_count).to eql(9)
88
91
  end
89
92
 
90
93
  its(:mezon_data?) { should be_false }
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.4
4
+ version: 0.5.5
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-12-02 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print