vmc 0.4.0.beta.60 → 0.4.0.beta.61

Sign up to get free protection for your applications and to get access to all the features.
@@ -547,15 +547,13 @@ module VMC
547
547
  host, domain_name = simple.split(".", 2)
548
548
 
549
549
  domain =
550
- client.current_space.domains.find { |d|
551
- d.name == domain_name
552
- }
550
+ client.current_space.domains(0, :name => domain_name).first
553
551
 
554
552
  fail "Invalid domain '#{domain_name}'" unless domain
555
553
 
556
- route = client.routes.find { |r|
557
- r.host == host && r.domain == domain
558
- }
554
+ route = client.routes(0, :host => host).find do
555
+ r.domain == domain
556
+ end
559
557
 
560
558
  unless route
561
559
  route = client.route
@@ -873,7 +871,7 @@ module VMC
873
871
  if framework.name == "standalone"
874
872
  detected_runtimes = detector.detect_runtimes
875
873
  else
876
- detected_runtimes = detector.runtimes(framework) || []
874
+ detected_runtimes = detector.runtimes(framework)
877
875
  end
878
876
 
879
877
  if detected_runtimes.size == 1
@@ -44,6 +44,8 @@ module VMC
44
44
  def detect_runtimes
45
45
  if detected && lang = detected.language_name
46
46
  runtimes_for(lang)
47
+ else
48
+ []
47
49
  end
48
50
  end
49
51
 
@@ -52,6 +54,8 @@ module VMC
52
54
  def runtimes(framework)
53
55
  if detector = detectors[framework]
54
56
  runtimes_for(detector.language_name)
57
+ else
58
+ []
55
59
  end
56
60
  end
57
61
 
@@ -1,3 +1,3 @@
1
1
  module VMC
2
- VERSION = "0.4.0.beta.60"
2
+ VERSION = "0.4.0.beta.61"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vmc
3
3
  version: !ruby/object:Gem::Version
4
- hash: -2015713740
4
+ hash: -2407307342
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
9
  - 0
10
10
  - beta
11
- - 60
12
- version: 0.4.0.beta.60
11
+ - 61
12
+ version: 0.4.0.beta.61
13
13
  platform: ruby
14
14
  authors:
15
15
  - VMware
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-10-02 00:00:00 Z
20
+ date: 2012-10-03 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: json_pure
@@ -265,12 +265,12 @@ dependencies:
265
265
  requirements:
266
266
  - - ~>
267
267
  - !ruby/object:Gem::Version
268
- hash: 95
268
+ hash: 93
269
269
  segments:
270
270
  - 0
271
271
  - 3
272
- - 38
273
- version: 0.3.38
272
+ - 39
273
+ version: 0.3.39
274
274
  type: :runtime
275
275
  version_requirements: *id015
276
276
  - !ruby/object:Gem::Dependency