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
- Y2VjZDkxZDVjMzk2YzM2YzdkZThiZjgwNTQ0M2Q1YzYxZjc1NGQxYw==
4
+ YjAwZGFhYmIyOGIwYjE5ZTllNTJhZjU4ODkzNmI3NDllZmEyMzJmZg==
5
5
  data.tar.gz: !binary |-
6
- ZDkxNzE1MGQxZTc0YmI3OWNmYTc1M2M2ZDNjZWRhMmUyMjdlMThmMQ==
6
+ Y2ZlOGU2YWViNTlmYTZmZDNhOWM2OTFkODNiZmI2OTM4NGQ0ZWU3YQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODEzNTYzZmM5M2FlNWZiYTVhOWYyNWFlYjg1ZWE1Y2M1Njc4YjY5MDgxOGI4
10
- YTY0NjU2OTMxMzEwNzkwOTQ3NWE0MWUxNTMxNTVmN2ZjNzg1ZWI5MTViNGEy
11
- YzQ5NjBmOWVkNjVlZTdkNzNiYzliMDVlOWY5NTQ5ZTc1MGUxMDM=
9
+ YWY4ZjFjNGI2MjM3ZjU1OTM1Mjk1OGUzYTVhY2U2MjIzMTljNzk0ZGZkYmNk
10
+ NDRiYTFhNTM5MjI2YzE0NzliNjMxNmU3ZDc4YmEyZDg1MzliMzMwYTc4NDRj
11
+ MzhmNjExNmFkMTA0ODVjNTI1ZTQ3NjVhNzI0ZTQ4Y2VkYzM4ZDg=
12
12
  data.tar.gz: !binary |-
13
- OTg0NWQwYzg0OWNkMjViNTRiNmZmYWRiYzZlNjRiNWJkZmYzY2M3ZjJjYWMz
14
- YjU3NjJlMDliYWYwM2RlNTY5YWQ1NmJlMTljYjc5NDY5MjU4ZTFkNWU2OTYx
15
- ZTRmZWJiNmM0ZGFhOWI5ZGRjNGMwYTY0YmY1ZTk1MzEwYjMyZWE=
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 initialize(site,env,cabotage)
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 initialize(site,env,cabotage)
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 initialize(site,env,cabotage)
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 initialize(site,env,cabotage)
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.5' #La version se debe incrementar cada vez que se desea publicar una nueva version del test.
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
 
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.5'
4
+ version: '0.6'
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez