mock_search 0.5 → 0.6
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
|
+
YjAwZGFhYmIyOGIwYjE5ZTllNTJhZjU4ODkzNmI3NDllZmEyMzJmZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2ZlOGU2YWViNTlmYTZmZDNhOWM2OTFkODNiZmI2OTM4NGQ0ZWU3YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWY4ZjFjNGI2MjM3ZjU1OTM1Mjk1OGUzYTVhY2U2MjIzMTljNzk0ZGZkYmNk
|
10
|
+
NDRiYTFhNTM5MjI2YzE0NzliNjMxNmU3ZDc4YmEyZDg1MzliMzMwYTc4NDRj
|
11
|
+
MzhmNjExNmFkMTA0ODVjNTI1ZTQ3NjVhNzI0ZTQ4Y2VkYzM4ZDg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODc0Y2JiMmRiZmRiZjIyN2Y4YzFiZmNmZmVhNzA4ZGRkNTdkYmFmYzM2ZDll
|
14
|
+
YzUxZmMyODFiNzg1NTE4MjM4MjY1NDdjMDczNjUwMDRmYjVjNDBlZTNhYTMy
|
15
|
+
OWYyNGM2YTdlNGJlMjFlODQ4NDc0MTQ0ZGY0OWJjMmE0YmE0MmM=
|
@@ -2,7 +2,7 @@ class MockSearchMultipledestinations < MockSearch
|
|
2
2
|
|
3
3
|
attr_reader :city_from_1, :city_from_2, :city_from_3, :city_to_1, :city_to_2, :city_to_3, :date_from_1, :date_from_2, :date_from_3, :description, :path
|
4
4
|
|
5
|
-
def
|
5
|
+
def MockSearchMultipledestinations.create(site,env,cabotage)
|
6
6
|
super(site,env,cabotage)
|
7
7
|
@city_from_1 = MockCity.new(@site,"CCS")
|
8
8
|
@city_to_1 = MockCity.new(@site,"BUE")
|
@@ -2,7 +2,7 @@ class MockSearchOneway < MockSearch
|
|
2
2
|
|
3
3
|
attr_reader :city_from_1, :city_to_1, :date_from_1, :description, :path
|
4
4
|
|
5
|
-
def
|
5
|
+
def MockSearchOneway.create(site,env,cabotage)
|
6
6
|
super(site,env,cabotage)
|
7
7
|
@city_from_1 = MockCity.new(@site)
|
8
8
|
@city_to_1 = @city_from_1.generate_to_city(@cabotage)
|
@@ -2,7 +2,7 @@ class MockSearchRoundtrip < MockSearch
|
|
2
2
|
|
3
3
|
attr_reader :city_from_1, :city_to_1, :date_from_1, :date_to_1, :description, :path
|
4
4
|
|
5
|
-
def
|
5
|
+
def MockSearchRoundtrip.create(site,env,cabotage)
|
6
6
|
super(site,env,cabotage)
|
7
7
|
@city_from_1 = MockCity.new(@site)
|
8
8
|
@city_to_1 = @city_from_1.generate_to_city(@cabotage)
|
data/lib/mock_search.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
2
|
require_relative 'mock_city'
|
3
3
|
|
4
|
+
|
4
5
|
class MockSearch
|
5
6
|
|
6
7
|
attr_reader :adt, :cnn, :inf, :host, :cabotage
|
7
8
|
|
8
|
-
def
|
9
|
+
def create(site,env,cabotage)
|
9
10
|
@site = site
|
10
11
|
@host = generar_host(site,env)
|
11
12
|
@cabotage = (cabotage=='true')
|
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.6' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
|
19
19
|
|
20
20
|
gem.add_development_dependency('geminabox')
|
21
21
|
|