flights_gui_tests 1.1.8 → 1.1.9

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: 2e1a56a638d769d79734b44fe23428ee09ceb5db
4
- data.tar.gz: 5e232b4ee2b1756371dc72c05af54f8347930968
3
+ metadata.gz: fb4033c0655c597b33656d861b569ae7fa1e5a75
4
+ data.tar.gz: 938cbd810303ab0c34c1ac8851e8881efe59aaae
5
5
  SHA512:
6
- metadata.gz: 5a89ca05e7fd2f64cc356f718aabc48f3921d97414dfe4287f24bde73c6a9a66b392a95d1a0689a964e05b18d37336dfacd6659b1ae730ec3364975d00e8ec69
7
- data.tar.gz: 9c7d70adb68fec87a72aa7d2d85c289723806f99fbcb07c0dfc71fd03448c1ddbd05b9b1187c06927a0ba0a9b83bfd7e815de20987626417c764ed5fc3ac9d08
6
+ metadata.gz: 3bd21bff3dfc18f9d3051e120e79c7c686eebf431ce86db910a3d4f216d78c5df5c2fd21bc245ab7644d11660841772999e13f9c932da0a4fb969e75c8462e6e
7
+ data.tar.gz: e15ea7997416d09c426cfe2f87d90fbba17f741d5bd7362b1e1c38b4f44aa5089118383dd41ef3f06e697bbb09ce64dede19849f51fdc2ae7059956837f18c48
@@ -52,12 +52,17 @@ module Results
52
52
  def cargar_precios(html)
53
53
  @tarifas = Hash.new
54
54
  @tarifas['tarifa_adulto_dolar'] = Price.new((html/"span.price-currency span.currency").first.inner_text.strip + " " + (html/"span.price-currency span.amount").first.inner_text.strip)
55
- if (html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first
56
- @tarifas['tarifa_adulto'] = Price.new((html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first.inner_text.strip + " " + (html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.amount").first.inner_text.strip)
57
- else
58
- @tarifas['tarifa_adulto'] = @tarifas['tarifa_adulto_dolar']
59
- end
60
-
55
+
56
+ if (html/"li.total-price-only span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first
57
+ @tarifas['tarifa_adulto'] = Price.new("$ 0",true)
58
+ else
59
+ if (html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first
60
+ @tarifas['tarifa_adulto'] = Price.new((html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.currency").first.inner_text.strip + " " + (html/"span[@class='price-currency #{Helpers.currency(AllPages.site)} '] span.amount").first.inner_text.strip)
61
+ else
62
+ @tarifas['tarifa_adulto'] = @tarifas['tarifa_adulto_dolar']
63
+ end
64
+ end
65
+
61
66
  adt = (html/"li").select{|li| li.inner_text.no_accents.downcase =~ /adulto/}.first
62
67
  @tarifas['adt'] = adt ? Price.new((adt/"span.currency").first.inner_text.strip + " " + (adt/"span.amount").first.inner_text.strip) : Price.new("$ 0",true)
63
68
 
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
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: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez