foreman 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/foreman.rb +1 -1
  2. data/lib/foreman/engine.rb +2 -2
  3. metadata +3 -3
@@ -1,6 +1,6 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.9.0"
3
+ VERSION = "0.9.1"
4
4
 
5
5
  class AppDoesNotExist < Exception; end
6
6
 
@@ -36,7 +36,7 @@ class Foreman::Engine
36
36
 
37
37
  def process_order
38
38
  processes
39
- @order
39
+ @order.uniq
40
40
  end
41
41
 
42
42
  def processes_in_order
@@ -69,7 +69,7 @@ class Foreman::Engine
69
69
 
70
70
  def port_for(process, num, base_port=nil)
71
71
  base_port ||= 5000
72
- offset = processes.keys.sort.index(process.name) * 100
72
+ offset = processes_in_order.map(&:first).index(process.name) * 100
73
73
  base_port.to_i + offset + num - 1
74
74
  end
75
75
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 1
10
+ version: 0.9.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - |