eagletree-log 0.0.10 → 0.0.11

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: 4a036c3511a4b3e414d436650b82f76f05a852b7
4
- data.tar.gz: 3a201b1e5e70fedc2cd7ce5f1ffb355e81bf95de
3
+ metadata.gz: ae9e4646310996da5c60ce15a1b1c07b1f7e8c5e
4
+ data.tar.gz: a278d5fbd5344399a17829b63199737698776561
5
5
  SHA512:
6
- metadata.gz: cee67b7f0b9c2b0d6793b5a0e9e2ae455d69bf8a24c53a16676c0755e27d84ef5a952f5135a4ca6b941aeef283ff9e9faf047a85068bcdfd3c74ec4959bee30f
7
- data.tar.gz: de845f34f3d0f0c9844eb77b0a2aaa5fd7adb7e6ad2b23e402912096934bfc2b80c20e0f4f6a8670678f9b321cec4b2fdd0e17acf56c8747d96159dd6ea1f9c1
6
+ metadata.gz: 9363f282950cf3869ab46246c6da76b33ceff800ad8ef1ac877f1edc4944b03139ec324637bdb4362a7fe76be40ab2578ca3a1d6dfba151a3cd8b67c7041b559
7
+ data.tar.gz: c1396df36515dcdd86605437ebe7a5f95a8cefad56213054cf7a55ca9b3756e99fe84deab64a74b27c3a23ac83b584c58da23fba2cce85f87ef5bcf3c555fa17
@@ -31,6 +31,14 @@ module EagleTree
31
31
  @duration ||= (range[1] - range[0]) / 1000.0
32
32
  end
33
33
 
34
+ def milliseconds
35
+ @altitudes ||= int_fields('Milliseconds')
36
+ end
37
+
38
+ def milliseconds?
39
+ nonzero?(self.milliseconds)
40
+ end
41
+
34
42
  def altitudes
35
43
  @altitudes ||= int_fields('Altitude')
36
44
  end
@@ -1,5 +1,5 @@
1
1
  module EagleTree
2
2
  module Log
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.11'
4
4
  end
5
5
  end
@@ -18,6 +18,15 @@ describe EagleTree::Log::Session do
18
18
 
19
19
  its(:duration) { should be_within(0.1).of(732.3) }
20
20
 
21
+ its(:milliseconds?) { should be_true }
22
+
23
+ it 'should have a few select milliseconds' do
24
+ subject.milliseconds[0].should eql(0)
25
+ subject.milliseconds[125].should eql(31250)
26
+ subject.milliseconds[250].should eql(62500)
27
+ subject.milliseconds[2230].should eql(557500)
28
+ end
29
+
21
30
  its(:latitudes?) { should be_true }
22
31
 
23
32
  it 'should have a few select latitudes' do
@@ -86,6 +95,15 @@ describe EagleTree::Log::Session do
86
95
 
87
96
  its(:duration) { should be_within(0.1).of(355.5) }
88
97
 
98
+ its(:milliseconds?) { should be_true }
99
+
100
+ it 'should have a few select milliseconds' do
101
+ subject.milliseconds[0].should eql(0)
102
+ subject.milliseconds[125].should eql(12500)
103
+ subject.milliseconds[250].should eql(25000)
104
+ subject.milliseconds[2230].should eql(223000)
105
+ end
106
+
89
107
  its(:latitudes?) { should be_false }
90
108
 
91
109
  its(:longitudes?) { should be_false }
@@ -104,6 +122,15 @@ describe EagleTree::Log::Session do
104
122
 
105
123
  its(:duration) { should be_within(0.1).of(369.9) }
106
124
 
125
+ its(:milliseconds?) { should be_true }
126
+
127
+ it 'should have a few select milliseconds' do
128
+ subject.milliseconds[0].should eql(355500)
129
+ subject.milliseconds[125].should eql(368000)
130
+ subject.milliseconds[250].should eql(380500)
131
+ subject.milliseconds[2230].should eql(578500)
132
+ end
133
+
107
134
  end
108
135
 
109
136
  context 'session 3' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eagletree-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
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-07-14 00:00:00.000000000 Z
11
+ date: 2013-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print