bowler 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bowler/dependency_tree.rb +1 -4
- data/lib/bowler/version.rb +2 -2
- data/spec/dependency_tree_spec.rb +3 -3
- metadata +25 -16
@@ -21,10 +21,7 @@ module Bowler
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def process_list_for(processes)
|
24
|
-
|
25
|
-
off = @definition.processes - on
|
26
|
-
|
27
|
-
[ on.map {|x| "#{x}=1" }, off.map {|x| "#{x}=0" } ].flatten.sort.join(',')
|
24
|
+
dependencies_for(processes).map {|x| "#{x}=1" }.sort.join(',')
|
28
25
|
end
|
29
26
|
|
30
27
|
end
|
data/lib/bowler/version.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
module Bowler
|
2
|
-
VERSION = '0.0
|
3
|
-
end
|
2
|
+
VERSION = '1.0.0'
|
3
|
+
end
|
@@ -39,7 +39,7 @@ module Bowler
|
|
39
39
|
end
|
40
40
|
|
41
41
|
it "should give a correct process list" do
|
42
|
-
@tree.process_list_for([:app2]).should == "
|
42
|
+
@tree.process_list_for([:app2]).should == "app2=1,app3=1"
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -53,10 +53,10 @@ module Bowler
|
|
53
53
|
end
|
54
54
|
|
55
55
|
it "should give a correct process list" do
|
56
|
-
@tree.process_list_for([:app2, :other]).should == "a=1,
|
56
|
+
@tree.process_list_for([:app2, :other]).should == "a=1,app2=1,app3=1,b=1,c=1,other=1"
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
end
|
61
61
|
|
62
|
-
end
|
62
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,27 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: foreman
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 0.35.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.35.0
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rake
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: 0.9.2.2
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.9.2.2
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rspec
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: 2.8.0
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.8.0
|
47
62
|
description:
|
48
63
|
email:
|
49
64
|
- jordan@jordanh.net
|
@@ -78,21 +93,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
93
|
- - ! '>='
|
79
94
|
- !ruby/object:Gem::Version
|
80
95
|
version: '0'
|
81
|
-
segments:
|
82
|
-
- 0
|
83
|
-
hash: -4084858017591319005
|
84
96
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
97
|
none: false
|
86
98
|
requirements:
|
87
99
|
- - ! '>='
|
88
100
|
- !ruby/object:Gem::Version
|
89
101
|
version: '0'
|
90
|
-
segments:
|
91
|
-
- 0
|
92
|
-
hash: -4084858017591319005
|
93
102
|
requirements: []
|
94
103
|
rubyforge_project:
|
95
|
-
rubygems_version: 1.8.
|
104
|
+
rubygems_version: 1.8.23
|
96
105
|
signing_key:
|
97
106
|
specification_version: 3
|
98
107
|
summary: A wrapper for large Foreman-managed apps with dependent processes
|