eagletree-log 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eagletree/log/session.rb +2 -2
- data/lib/eagletree/log/version.rb +1 -1
- data/spec/session_spec.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09f24125242cd8cb79a7eaceb2132195135583eb
|
4
|
+
data.tar.gz: f86149ece57a737e655f75fef77fdb2ea3c2f7ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 524147f89960ecd2b5954f6d85bf48ea345d7ccc35a12cdce07894b80ee9b2a70968990109249e1e7f431c7bd253812b7992a37cf9b214eb7dc5f90ddcac6ea7
|
7
|
+
data.tar.gz: e1ec42a32bf0a110e5e2d20b5390909fe6ecfb9341034137c4b5eb71b51205a4e2820b7ffc7040279249465436f1169fca6132827ee8fbb0a4acb6729dca1055
|
@@ -184,11 +184,11 @@ module EagleTree
|
|
184
184
|
end
|
185
185
|
|
186
186
|
def coords
|
187
|
-
@coords ||= longitudes.zip(latitudes, gps_altitudes)
|
187
|
+
@coords ||= longitudes.zip(latitudes, gps_altitudes, gps_courses)
|
188
188
|
end
|
189
189
|
|
190
190
|
def coords?
|
191
|
-
longitudes? || latitudes? || gps_altitudes?
|
191
|
+
longitudes? || latitudes? || gps_altitudes? || gps_courses?
|
192
192
|
end
|
193
193
|
|
194
194
|
# Determines if KML methods can be called for this session.
|
data/spec/session_spec.rb
CHANGED
@@ -60,15 +60,19 @@ describe EagleTree::Log::Session do
|
|
60
60
|
subject.coords[0][0].should be_within(0.0001).of(2.1545)
|
61
61
|
subject.coords[0][1].should be_within(0.0001).of(49.0775)
|
62
62
|
subject.coords[0][2].should be_within(0.1).of(102.0)
|
63
|
+
subject.coords[0][3].should be_within(0.1).of(0.0)
|
63
64
|
subject.coords[500][0].should be_within(0.0001).of(2.1545)
|
64
65
|
subject.coords[500][1].should be_within(0.0001).of(49.0775)
|
65
66
|
subject.coords[500][2].should be_within(0.1).of(75.0)
|
67
|
+
subject.coords[500][3].should be_within(0.1).of(175.7)
|
66
68
|
subject.coords[1500][0].should be_within(0.0001).of(2.1531)
|
67
69
|
subject.coords[1500][1].should be_within(0.0001).of(49.0780)
|
68
70
|
subject.coords[1500][2].should be_within(0.1).of(121.0)
|
71
|
+
subject.coords[1500][3].should be_within(0.1).of(35.1)
|
69
72
|
subject.coords[2500][0].should be_within(0.0001).of(2.1542)
|
70
73
|
subject.coords[2500][1].should be_within(0.0001).of(49.0778)
|
71
74
|
subject.coords[2500][2].should be_within(0.1).of(89.0)
|
75
|
+
subject.coords[2500][3].should be_within(0.1).of(8.6)
|
72
76
|
end
|
73
77
|
|
74
78
|
its(:gps_speeds?) { should be_true }
|