mock_search 0.27.9 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/lib/mock_search.rb +7 -1
- data/mock_search.gemspec +1 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
MTA3OGM1NjMyODk2Mjc4ZTBkZGI4MGZiMDg3ZjcwMjk1YjU5NTE2Yw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 6761143fa6ffa456dedac12a7fd9be574ecf94d1
|
4
|
+
data.tar.gz: 7c418fd8ce1451dc8682aa79d93192eceff15403
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ODM0OWYwMGI2MGIwZDdkZmI3ODIwOWEyYjI5NTViNmVhOTQ0OWFmNThjZjE3
|
11
|
-
ZjFmYjUzYTUwNjhmNTEwNmYwMWYyN2RlOWQxYWI5NmU1Mjk4MDE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
ZDI1MzlhYTcxYjBkNzc2Mjg5NWQzN2JmYzFiYzI1MDAxNWE0MWM5ZjkyZGFh
|
14
|
-
NmJlNDdmMTMzMzdhYzExOWMxYmNlOTI5ODE0YWM1NjM0NGFlNjYzZDVhYjE3
|
15
|
-
ZTgxMDA1NzdlOGY5MWYzMDgwMGNjYTZjMjU0ZjBjZTM4MGE1ZDI=
|
6
|
+
metadata.gz: e5c96100b9912b4f0a057ee36f7995e4ed4f0ca5df9ab11fb468a2a1b066a6160793e54b335f55ab8410eec2629c8e910f7f3a292704c2a313a32359d005151a
|
7
|
+
data.tar.gz: bb2a639cbefc8918e53f5bdf9d38369c1f52d8dbfdc69db8e9fc17ec177f7bb6be8d6bdf125ca14020c4cb0337e9e7defd9ed0c80d871ffe2cf49ac87b4389a2
|
data/lib/mock_search.rb
CHANGED
@@ -78,9 +78,15 @@ class MockSearch
|
|
78
78
|
@city_to_1 = MockCity.new(@site,code)
|
79
79
|
end
|
80
80
|
|
81
|
+
def set_header_json(header={})
|
82
|
+
@header ||= {}
|
83
|
+
@header.merge!(header)
|
84
|
+
end
|
85
|
+
|
81
86
|
def get_results_search_service(type="TOTALFARE")
|
87
|
+
set_header_json({"referer"=>self.generate_url_results_search})
|
82
88
|
unless @json
|
83
|
-
@json = HTTParty.get(self.generate_url_results_search_service(type),:headers =>
|
89
|
+
@json = HTTParty.get(self.generate_url_results_search_service(type),:headers => @header)
|
84
90
|
end
|
85
91
|
return @json
|
86
92
|
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 = '0.
|
18
|
+
gem.version = '0.28.0' #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,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mock_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.28.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: geminabox
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: generador de url de busqueda
|
@@ -45,13 +45,13 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- mock_search.gemspec
|
49
48
|
- Gemfile
|
49
|
+
- lib/mock_city.rb
|
50
|
+
- lib/mock_search.rb
|
50
51
|
- lib/mock_search/mock_search_multipledestinations.rb
|
51
52
|
- lib/mock_search/mock_search_oneway.rb
|
52
53
|
- lib/mock_search/mock_search_roundtrip.rb
|
53
|
-
-
|
54
|
-
- lib/mock_city.rb
|
54
|
+
- mock_search.gemspec
|
55
55
|
homepage:
|
56
56
|
licenses: []
|
57
57
|
metadata: {}
|
@@ -61,17 +61,17 @@ require_paths:
|
|
61
61
|
- lib
|
62
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
74
|
+
rubygems_version: 2.2.2
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: generador de paginas
|