fallo_motor 0.1.0 → 1.0.0

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: 797404d75ecebc407002a679a517091ed360aa03
4
- data.tar.gz: 70cdaddcd16a63ffa9e04157b1fbed7da2715dba
3
+ metadata.gz: 44fbe1bda4a2cfafc26cf59eec3dbf22c96461b4
4
+ data.tar.gz: 41c833b154b5bd7ce9863e10cf69181616433fd8
5
5
  SHA512:
6
- metadata.gz: 539f954d7215635b3f4565833070cb16418ec2c1ac9e57e274eb68145324a02f5c04e2ebb68f2bb24d74b306449317ea6445b5532824411f3f29e0c81c85f49a
7
- data.tar.gz: 42d9b2742e557e9599e135e617c8f5b36e3fd4179b4f78224549f54aaee787ac4c1b271eb786249e9af4d7a76d2afd0658239bbec42e7c0eee2dcab84f07e5c3
6
+ metadata.gz: 6962b0a89736ef20ff75f4224c0489da36a93bffc71f950bd442b1a9792ec63235eb7d50feda0ac89a287315a96aa3c810abc870240080b3f7dbd3fe27e48efc
7
+ data.tar.gz: a78f46c311de2e80532f95f972ae7da0a1ac09c38cf8ebb6b0702b43911f2f4e7998fe2b21f8ac95daf6c6b927db6a5f0b972e365c7b35506bbd4fb82c7a1b24
data/exe/fallo_motor CHANGED
@@ -103,10 +103,10 @@ splay_coor[0..splay_coor.size / 2].each_with_index do |coor, i|
103
103
  end
104
104
 
105
105
  # Marcamos alturas absolutas para el splay
106
- kml_data.at('Folder Placemark Polygon').add_child '<altitudeMode>absolute</altitudeMode>'
106
+ kml_data.at('Folder Placemark Polygon').add_child('<altitudeMode>absolute</altitudeMode>')
107
107
 
108
- # Write to file
109
- filename = 'output.kml'
108
+ # Write to file (mismo nombre que el kml + el sufijo "_NET")
109
+ filename = File.basename(kml_file, File.extname(kml_file)) + '_NET.kml'
110
110
  flight_path_node.content = flight_path_coor.map { |el| el.join(',') }.join("\n")
111
111
  splay_node.content = splay_coor.map { |el| el.join(',') }.join("\n")
112
112
  File.write(filename, kml_data.to_xml)
@@ -1,3 +1,3 @@
1
1
  module FalloMotor
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fallo_motor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Marchante