spektrum-log 0.0.18 → 0.0.19
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 +4 -4
- data/lib/spektrum/log/file.rb +3 -2
- data/lib/spektrum/log/flight.rb +2 -2
- data/lib/spektrum/log/version.rb +1 -1
- data/spec/flight_spec.rb +0 -6
- 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: c52d0345d2a7d9f48430b3a68cee624fcaacd8c2
|
4
|
+
data.tar.gz: fbf6b7ebec0feb0a04320cc02537145f6334be51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddf724bdbd0bb8129cc90edae12fb393a853f75172f2002484905ffa342010cceeac239173baba2a9f7f2def987a4167a1d2813a21088b6f60ee462f3688d4ca
|
7
|
+
data.tar.gz: 7808def78f5ddee8bf6a0782dbf75703047800a69b030fc2c157819c35a8d96de715d3fe71879ba931b61ef66420d0cafb03b046b261508ed282a6161874cd3f
|
data/lib/spektrum/log/file.rb
CHANGED
@@ -87,7 +87,7 @@ module Spektrum
|
|
87
87
|
end
|
88
88
|
|
89
89
|
# Converts the file into a KML document containing placemarks for each
|
90
|
-
# flight containing GPS data
|
90
|
+
# flight containing GPS data.
|
91
91
|
#
|
92
92
|
# @param options [Hash] hash containing options for file
|
93
93
|
# @return [String] KML document for all applicable flights in the file
|
@@ -97,7 +97,8 @@ module Spektrum
|
|
97
97
|
to_kml_file(options).render
|
98
98
|
end
|
99
99
|
|
100
|
-
# Converts the
|
100
|
+
# Converts the file into a KMLFile containing placemarks for each flight containing
|
101
|
+
# GPS data.
|
101
102
|
#
|
102
103
|
# @param options [Hash] hash containing options for file
|
103
104
|
# @option options [String] :name name option of KML::Document
|
data/lib/spektrum/log/flight.rb
CHANGED
@@ -153,7 +153,7 @@ module Spektrum
|
|
153
153
|
gps1_records?
|
154
154
|
end
|
155
155
|
|
156
|
-
# Converts the flight into a KML document containing a placemark
|
156
|
+
# Converts the flight into a KML document containing a placemark.
|
157
157
|
#
|
158
158
|
# @param file_options [Hash] hash containing options for file
|
159
159
|
# @param placemark_options [Hash] hash containing options for placemark
|
@@ -165,7 +165,7 @@ module Spektrum
|
|
165
165
|
to_kml_file(file_options, placemark_options).render
|
166
166
|
end
|
167
167
|
|
168
|
-
# Converts the flight into a KMLFile containing a placemark
|
168
|
+
# Converts the flight into a KMLFile containing a placemark.
|
169
169
|
#
|
170
170
|
# @param file_options [Hash] hash containing options for file
|
171
171
|
# @option file_options [String] :name name option of KML::Document
|
data/lib/spektrum/log/version.rb
CHANGED
data/spec/flight_spec.rb
CHANGED
@@ -594,12 +594,6 @@ describe Spektrum::Log::Flight do
|
|
594
594
|
|
595
595
|
its(:to_kml) { should be_a(String) }
|
596
596
|
|
597
|
-
it 'should take options for file and placemark' do
|
598
|
-
kml = subject.to_kml_file({ :name => 'File Name' }, { :name => 'Placemark Name' })
|
599
|
-
kml.objects[0].name.should eql('File Name')
|
600
|
-
kml.objects[0].features[0].name.should eql('Placemark Name')
|
601
|
-
end
|
602
|
-
|
603
597
|
end
|
604
598
|
|
605
599
|
context 'with flight 2' do
|