flights_gui_tests 2.2.6 → 2.2.7

This diff has not been reviewed by any users.
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: 8a99b2f5fd56dcc807651a864e71c0d61b5b948f
4
- data.tar.gz: 4d5d765942339eb84d184f20e7cef8acc3357803
3
+ metadata.gz: 7d1e0a4b8f20030c004c26b31ea907861b941832
4
+ data.tar.gz: 2386f79ab5dab259cb912702637ae8c83f5acc86
5
5
  SHA512:
6
- metadata.gz: acc48bd99df31fdeadec4861dcde0776d2727754e6b8d1a1e60ef3346e3fd72b46ab7f309deea31a4dd2fc8c3baf42cc68188ec38cdef75b057605df64359192
7
- data.tar.gz: 16ebc5ed153ee588fa78945112f055b4c0af21dc264665ea04b44d4b12bf4484a24e17f4695b2694cb92654f3031ebcb629ec2b22c8c10f2da0e10d6fbc2b8f6
6
+ metadata.gz: 93cd2886038b404e0df6049564e5b6585b031343adf75dda645cf005ed644e20e4a11907064673202b65c36624ba9fcfc15d7217828df8bfccc8c75d12bab560
7
+ data.tar.gz: fe471a5b716dddf7666ad6c74a5be1e693a147982ca1415d0c68f08d17ef6a384c5bbc823e76bfef953c67bd58020de39f03939a7d011e7f4f8bfdb5683a1ca0
@@ -11,23 +11,23 @@ module NewCheckout
11
11
 
12
12
  def roundtrip(html)
13
13
  tramos = cargar_tramos((html/"div.outbound-route div.segment"))
14
- @ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
14
+ @ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
15
15
  tramos = cargar_tramos((html/"div.inbound-route div.segment"))
16
- @vuelta = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
16
+ @vuelta = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
17
17
  end
18
18
 
19
19
  def oneway(html)
20
20
  tramos = cargar_tramos((html/"div.outbound-route div.segment"))
21
- @ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
21
+ @ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
22
22
  end
23
23
 
24
24
  def multipledestinations(html)
25
25
  data = (html/"div.outbound-route div.segments")
26
26
  data_final = data.delete(data.last)
27
27
  tramos = cargar_tramos([data.first])
28
- @ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
28
+ @ida = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
29
29
  tramos = cargar_tramos([data_final])
30
- @vuelta = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
30
+ @vuelta = DataCluster.new(tramos.first['salida']['nombre'], tramos.last['llegada']['nombre'], tramos.first['salida']['fecha'], tramos.collect{|tramo| tramo['aerolinea']}, escala_to_i((html/"div.outbound-route span.stops").first.inner_text.strip), tramos.first['salida']['iata'], tramos.last['llegada']['iata'], tramos.first['salida']['horario'], tramos.last['llegada']['horario'])
31
31
  end
32
32
 
33
33
  def cargar_tramos(lista_tramos)
@@ -10,7 +10,7 @@ require 'httparty'
10
10
  require 'henry/environment'
11
11
  require 'sanitize'
12
12
  require 'uri'
13
- require 'byebug'
13
+ #require 'byebug'
14
14
  require 'henry/config'
15
15
  require 'mock_search'
16
16
  require 'auto_uy_utils'
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.2.6"
2
+ VERSION = "2.2.7"
3
3
  end
@@ -30,7 +30,7 @@ Gem::Specification.new do |gem|
30
30
  gem.add_dependency('mock_search', '>= 1.0.0')
31
31
  gem.add_dependency('mysql2')
32
32
  gem.add_dependency('dater')
33
- gem.add_dependency('byebug')
33
+ #gem.add_dependency('byebug')
34
34
  gem.add_dependency('auto_uy_utils')
35
35
  gem.add_dependency('roma_automation')
36
36
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
@@ -178,20 +178,6 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: byebug
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :runtime
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
181
  - !ruby/object:Gem::Dependency
196
182
  name: auto_uy_utils
197
183
  requirement: !ruby/object:Gem::Requirement