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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74498f60332272878f33394b9fc378979552e2b0
4
- data.tar.gz: c3b843ae87e601295424bd547b7f008828a70ebd
3
+ metadata.gz: 09f24125242cd8cb79a7eaceb2132195135583eb
4
+ data.tar.gz: f86149ece57a737e655f75fef77fdb2ea3c2f7ee
5
5
  SHA512:
6
- metadata.gz: 41fd1649dd36cd0828e49355774c15f33c613e4b4c06e28df9256d7f35ae613374bb1974edbd6ef5447ea592099f8f6a3b7af565f8156aa47a4610816d51543b
7
- data.tar.gz: 1bc71dab5353788df41fe6a9871d7d8fae35ddc1c3b30efc25e493ca6f7eb37214a586972771730fdd470a8b7f6016c888f4b33c1d072b69f9aa31c3fa69bcfe
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.
@@ -1,5 +1,5 @@
1
1
  module EagleTree
2
2
  module Log
3
- VERSION = '0.0.13'
3
+ VERSION = '0.0.14'
4
4
  end
5
5
  end
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 }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eagletree-log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Veys