mock_search 1.0.7 → 1.0.8

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: b2741393b24d8760ddefc405393912a3fdeea963
4
- data.tar.gz: 8f494cd8d5d380c7f330a6ae1b1ff33272e5824b
3
+ metadata.gz: e5c8d19ea0cea25c387667d1c9f97ce94b7a5284
4
+ data.tar.gz: 232eff05b5c958f0ce3400841beb4faf62ef9c95
5
5
  SHA512:
6
- metadata.gz: 27ba582a970412698dc901521bb8cc0adb98e33c6b8d89ad3e1c53cd1d3867f2bc3bc095f8d7213d5e1fc5b8b651dbcbf249c1bd66124d868b220da2a33b9cc1
7
- data.tar.gz: b326f4de58dbb4545a29c35d6dae78fe0ac0262023280f7b52f2a3baf47f882691e245250d883f78779af7f917b47eafa96fa670419f712af515d352ee56418e
6
+ metadata.gz: 1f7926dce845d437dbc3c40df87e639b4fa258196667f75c044898970bb31ce0fdf5b92015602cadecbffb5d879ea3e630a394a3dd3bb9184a2e8331d08d94c7
7
+ data.tar.gz: 2a607d7123685117b16380f044853eb7da59b3a1d8baf782808fead9febe1d92b2417728aa912d5f0e54f90ecadd9e74afb6b99cbabdb71636d04794aa30c107
@@ -50,13 +50,27 @@ class MockSearchOneway < MockSearch
50
50
 
51
51
  #genero la url de resultados de landing a partir de una ciudad de salida y una ciudad de destino
52
52
  def generate_url_landing_search(dep,ret)
53
- landing = (@site == "BR" ? "/passagens-aereas" : "/vuelos")
53
+ landing = case @site
54
+ when "BR" then "/passagens-aereas"
55
+ when "US" then "/flights"
56
+ when "CN" then "/flights"
57
+ when "IN" then "/flights"
58
+ when "PT" then "/passagens-aereas"
59
+ else "/vuelos"
60
+ end
54
61
  return @host + landing + "/#{dep}/#{ret}"
55
62
  end
56
63
 
57
64
  #genero la url para ingresar a la home de vuelos
58
65
  def generate_url_landing_home()
59
- landing = (@site == "BR" ? "/passagens-aereas" : "/vuelos")
66
+ landing = case @site
67
+ when "BR" then "/passagens-aereas"
68
+ when "US" then "/flights"
69
+ when "CN" then "/flights"
70
+ when "IN" then "/flights"
71
+ when "PT" then "/passagens-aereas"
72
+ else "/vuelos"
73
+ end
60
74
  return @host + landing
61
75
  end
62
76
 
@@ -41,13 +41,27 @@ class MockSearchRoundtrip < MockSearch
41
41
 
42
42
  #genero la url de resultados de landing a partir de una ciudad de salida y una ciudad de destino
43
43
  def generate_url_landing_search(dep,ret)
44
- landing = (@site == "BR" ? "/passagens-aereas" : "/vuelos")
44
+ landing = case @site
45
+ when "BR" then "/passagens-aereas"
46
+ when "US" then "/flights"
47
+ when "CN" then "/flights"
48
+ when "IN" then "/flights"
49
+ when "PT" then "/passagens-aereas"
50
+ else "/vuelos"
51
+ end
45
52
  return @host + landing + "/#{dep}/#{ret}"
46
53
  end
47
54
 
48
55
  #genero la url para ingresar a la home de vuelos
49
56
  def generate_url_landing_home()
50
- landing = (@site == "BR" ? "/passagens-aereas" : "/vuelos")
57
+ landing = case @site
58
+ when "BR" then "/passagens-aereas"
59
+ when "US" then "/flights"
60
+ when "CN" then "/flights"
61
+ when "IN" then "/flights"
62
+ when "PT" then "/passagens-aereas"
63
+ else "/vuelos"
64
+ end
51
65
  return @host + landing
52
66
  end
53
67
 
data/mock_search.gemspec CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  gem.require_paths = ["lib"] #Usualmente es solo lib -> ["lib"]
17
17
 
18
- gem.version = '1.0.7' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
+ gem.version = '1.0.8' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
19
19
 
20
20
  gem.add_dependency('httparty')
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-31 00:00:00.000000000 Z
11
+ date: 2015-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty