mock_search 0.20.2 → 0.20.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDg3N2M4ZjQ0YmYyNGFlNGZjNTZhMTZkMTI3ZWM4YWFmNTlkNjVlZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OGMxNDZhMmU2YzMwOTcxZTE0NGFlODBhNmY1YmVjNzEzM2E1ZDlmNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZjZiYzBiYzkxMTIxYWE3YzMzYTFkNWRlYTAzZTQ0ZjE3ZWNlYjEyMDNlNmQx
|
10
|
+
ZWRiYzkxODA3NTk1NDQxMGU2MWUyMTg4NGQ5M2YzYzc4ZGU0MWQ5OTJhZmU0
|
11
|
+
ZjgyNzU4NTA2N2QxZmFlMjJiMTg4YzY4MmQxMTAwYzJhMjU1OGQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWIzZmNlMDQ3Nzg4ZWI5MzkzOGVlNWM0NmZlMWY5YWQxYTFjOWRkYzYyN2Nl
|
14
|
+
YmRlOTUyNTRkOTRiYzljODE2NWZiYTAzZTJhY2JmNzA5NjE2ZGVlYWY0M2Uw
|
15
|
+
NzViNWQ0ZGM1MDA1YzJhZTJiNjRhOTk5ZjNlMzhkZmE5MmUwZTc=
|
data/lib/mock_search.rb
CHANGED
@@ -67,7 +67,7 @@ class MockSearch
|
|
67
67
|
|
68
68
|
def generate_url_checkout()
|
69
69
|
self.get_ticket_date()
|
70
|
-
return @host.gsub('http','https') + "/book/flights/checkout/#{@resultHash['
|
70
|
+
return @host.gsub('http','https') + "/book/flights/checkout/#{@resultHash['search_hash']}/#{@resultHash['search_version']}/#{@resultHash['itinerary_hash']}/"
|
71
71
|
end
|
72
72
|
|
73
73
|
def digest_md5()
|
@@ -40,7 +40,7 @@ class MockSearchOneway < MockSearch
|
|
40
40
|
|
41
41
|
def get_ticket_date()
|
42
42
|
super()
|
43
|
-
@result_hash['
|
43
|
+
@result_hash['itinerary_hash'] = @itinerary['itinerariesBox']['matchingInfoMap']['_0_0']['id']
|
44
44
|
end
|
45
45
|
|
46
46
|
def get_advanced_bussinnes()
|
@@ -53,7 +53,7 @@ class MockSearchRoundtrip < MockSearch
|
|
53
53
|
|
54
54
|
def get_ticket_date()
|
55
55
|
super()
|
56
|
-
@result_hash['
|
56
|
+
@result_hash['itinerary_hash'] = @itinerary['itinerariesBox']['matchingInfoMap']['_0_0']['id']
|
57
57
|
end
|
58
58
|
|
59
59
|
def get_advanced_bussinnes()
|
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 = '0.20.
|
18
|
+
gem.version = '0.20.3' #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
|
|