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
- ZjlkNGM3YTE3NDY0ZjE4MjRjM2JkNDc0MGVjZGRhZTQ0MjJkMzQxYQ==
4
+ MDg3N2M4ZjQ0YmYyNGFlNGZjNTZhMTZkMTI3ZWM4YWFmNTlkNjVlZA==
5
5
  data.tar.gz: !binary |-
6
- MWMxMTNiZWJmYTIwYTU3MmNkOGNhODFlOTFjNTMyZWQ2YTg1MzcyOQ==
6
+ OGMxNDZhMmU2YzMwOTcxZTE0NGFlODBhNmY1YmVjNzEzM2E1ZDlmNw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjdmMTYwMDYyZTk0NTcxNWU5YThmNjU3NjljNmE1Y2JhMjYwNmE3MDgyODY1
10
- YTEyZDg5MTg4M2FlMTljNTM0MDdkM2MwMDZkNjAxMTQ5MzJlMzBhN2YwMTE5
11
- ZTcxYzljOGE4OGM4ZmM5MTFkNWE2YjYxMmVjMTMxZDJhNzU0NGM=
9
+ ZjZiYzBiYzkxMTIxYWE3YzMzYTFkNWRlYTAzZTQ0ZjE3ZWNlYjEyMDNlNmQx
10
+ ZWRiYzkxODA3NTk1NDQxMGU2MWUyMTg4NGQ5M2YzYzc4ZGU0MWQ5OTJhZmU0
11
+ ZjgyNzU4NTA2N2QxZmFlMjJiMTg4YzY4MmQxMTAwYzJhMjU1OGQ=
12
12
  data.tar.gz: !binary |-
13
- ZGNmNGUxM2U2N2Q5NzBkMDdiYjZjOWNiNjAxNGI5MGFhMzEzMzQyODVlYmVl
14
- MzNhNjZjOWI1MjBhYmIzZmZmZTBlYjg5ZjY0NTlkNTM1NGExZThmYWEyYTA1
15
- Y2EzMzAwZWZkYWZhNGEzNGY2NjhlN2ExMTZmYzg4YzllZGY4MWM=
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['searchId']}/#{@resultHash['searchVersion']}/#{@resultHash['itineraryHash']}/"
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()
@@ -46,7 +46,7 @@ class MockSearchMultipledestinations < MockSearch
46
46
 
47
47
  def get_ticket_date()
48
48
  super()
49
- @result_hash['itineraryHash'] = @itinerary['id']
49
+ @result_hash['itinerary_hash'] = @itinerary['id']
50
50
  end
51
51
 
52
52
  def get_advanced_bussinnes
@@ -40,7 +40,7 @@ class MockSearchOneway < MockSearch
40
40
 
41
41
  def get_ticket_date()
42
42
  super()
43
- @result_hash['itineraryHash'] = @itinerary['itinerariesBox']['matchingInfoMap']['_0_0']['id']
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['itineraryHash'] = @itinerary['itinerariesBox']['matchingInfoMap']['_0_0']['id']
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.2' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mock_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.2
4
+ version: 0.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez