mock_search 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mock_search.rb +1 -0
- data/mock_search.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6069a146895cb02f84236c26cd1fe3e71924316e
|
4
|
+
data.tar.gz: 2d12ba40f9d23cd87608b07413d0087bad3b2785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 06b69d5e3a4207761c713b5c80556c424ccd5c345973690fdc611540189e8a60933b120dfd7e2916dfd9a5a65b7ae047a6db2fe674e1fedf6c13bb6226eda62c
|
7
|
+
data.tar.gz: 8ae6ec27ec53c94c5c22d496edcf5d9baea7d9e9a5f9bb1303984679a6fc69db0073cb77e5e63697a64ae169321b5fc539bcbb3aed6f69c3e64a9f92b1cbc58e
|
data/lib/mock_search.rb
CHANGED
@@ -92,6 +92,7 @@ class MockSearch
|
|
92
92
|
|
93
93
|
def get_results_search_service(type="TOTALFARE")
|
94
94
|
set_header_json({"referer"=>self.generate_url_results_search})
|
95
|
+
set_header_json({"User-Agent"=>"Mozilla\/5.0"})
|
95
96
|
unless @json
|
96
97
|
@json = HTTParty.get(self.generate_url_results_search_service(type),:headers => @header)
|
97
98
|
end
|
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.
|
18
|
+
gem.version = '1.0.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
|
|