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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32468ce8ee2ed8166f3b03250a0f0753faca6ba2
4
- data.tar.gz: de8d658b0024bf0fc52a77a3bab4afde8d401ea9
3
+ metadata.gz: 6069a146895cb02f84236c26cd1fe3e71924316e
4
+ data.tar.gz: 2d12ba40f9d23cd87608b07413d0087bad3b2785
5
5
  SHA512:
6
- metadata.gz: 9188fd64f0de5c10ee2b0bc03d44392e3d74ac8c72d2b11ced6e46ba541e578cd2fa2e7fa6cb2988ae18582c2f048a54e9536eca72c38b0c354e0383e8ff6107
7
- data.tar.gz: 5a5f31bfbc80128fe030c0c97370c2fcc726ba1e91b590b984b50bd698e0ed85ae8ed96a4c8511cf8afe2b34c22f1906a36999271a7136103a3f3ef52f7cc343
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.2' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
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
 
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: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez