bowler 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/lib/bowler/dependency_tree.rb +4 -0
- data/lib/bowler/version.rb +1 -1
- data/spec/dependency_tree_spec.rb +8 -0
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b6b46e9da92973a0319b830e1a85f361ddc2526
|
4
|
+
data.tar.gz: 1235b04132133465d26231204f684ebe0fcc9975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c77d3b781b6bd47c9c51cdc4479e9130b20fe0a249a15dc26cb965ae34e917ea794bd4e1518d6380948848a3d6f0cc5a7462ebf680b38bc44254e91b0098e3f0
|
7
|
+
data.tar.gz: afbdb2552715d17a8b9aa6361b069b7212422fbda6b327590823c7dcc654bfc1ab4e78e9669fbe747637e05864f35ba3463926c219e5c579652c823642f6afcc
|
data/README.md
CHANGED
@@ -42,6 +42,12 @@ You can run multiple processes at once:
|
|
42
42
|
bowl app api
|
43
43
|
```
|
44
44
|
|
45
|
+
## Releasing the gem
|
46
|
+
|
47
|
+
- Update the version in `lib/bowler/version.rb`
|
48
|
+
- `gem build bowler.gemspec`
|
49
|
+
- `gem push <artefact>.gem`
|
50
|
+
|
45
51
|
## License
|
46
52
|
|
47
|
-
MIT License
|
53
|
+
MIT License
|
@@ -16,6 +16,10 @@ module Bowler
|
|
16
16
|
def dependencies_for(processes, visited = [])
|
17
17
|
return [] unless processes
|
18
18
|
(processes - visited).map { |p|
|
19
|
+
unless @definition.processes.include?(p)
|
20
|
+
raise PinfileError, "process #{p} not found"
|
21
|
+
end
|
22
|
+
|
19
23
|
[dependencies_for(@definition.tree[p], visited + [p]), p]
|
20
24
|
}.flatten.compact.uniq
|
21
25
|
end
|
data/lib/bowler/version.rb
CHANGED
@@ -16,6 +16,14 @@ module Bowler
|
|
16
16
|
tree.dependencies_for([:nyan]).should =~ [:bar, :foo, :nyan, :required]
|
17
17
|
end
|
18
18
|
|
19
|
+
it "should raise when encountering unknown dependencies" do
|
20
|
+
tree = DependencyTree.load File.join( File.dirname(__FILE__), 'fixtures', 'dependency_tree_pinfile' )
|
21
|
+
|
22
|
+
expect {
|
23
|
+
tree.dependencies_for([:not_a_dependency])
|
24
|
+
}.to raise_error(PinfileError)
|
25
|
+
end
|
26
|
+
|
19
27
|
it "should find the dependencies of dependencies" do
|
20
28
|
tree = DependencyTree.load File.join( File.dirname(__FILE__), 'fixtures', 'dependency_tree_pinfile' )
|
21
29
|
|
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bowler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hatch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.35.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.35.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.9.2.2
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.9.2.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec-core
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 2.14.7
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.14.7
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec-expectations
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 2.14.4
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 2.14.4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: mocha
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.14.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.14.0
|
83
83
|
description:
|
@@ -114,17 +114,17 @@ require_paths:
|
|
114
114
|
- lib
|
115
115
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
|
-
- -
|
117
|
+
- - ">="
|
118
118
|
- !ruby/object:Gem::Version
|
119
119
|
version: '0'
|
120
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
requirements: []
|
126
126
|
rubyforge_project:
|
127
|
-
rubygems_version: 2.
|
127
|
+
rubygems_version: 2.4.5
|
128
128
|
signing_key:
|
129
129
|
specification_version: 4
|
130
130
|
summary: A wrapper for large Foreman-managed apps with dependent processes
|