mock_search 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mock_city.rb +3 -0
- data/mock_search.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2741393b24d8760ddefc405393912a3fdeea963
|
4
|
+
data.tar.gz: 8f494cd8d5d380c7f330a6ae1b1ff33272e5824b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27ba582a970412698dc901521bb8cc0adb98e33c6b8d89ad3e1c53cd1d3867f2bc3bc095f8d7213d5e1fc5b8b651dbcbf249c1bd66124d868b220da2a33b9cc1
|
7
|
+
data.tar.gz: b326f4de58dbb4545a29c35d6dae78fe0ac0262023280f7b52f2a3baf47f882691e245250d883f78779af7f917b47eafa96fa670419f712af515d352ee56418e
|
data/lib/mock_city.rb
CHANGED
@@ -4,12 +4,15 @@ class MockCity
|
|
4
4
|
|
5
5
|
CITIES = YAML.load(File.open("features/data/sites.yml"))
|
6
6
|
|
7
|
+
attr_reader :name_lang
|
8
|
+
|
7
9
|
def initialize(*args)#site,code=nil)
|
8
10
|
@site = args[0]
|
9
11
|
city = args[1] ? self.find_city(args[1]) : CITIES[@site][0]
|
10
12
|
@code = city["code"]
|
11
13
|
@airports = city["airports"]
|
12
14
|
@name = city["name"]
|
15
|
+
@name_lang = city["name_lang"]
|
13
16
|
end
|
14
17
|
|
15
18
|
def code()
|
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.7' #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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mock_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lgonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|