manifests-cf-plugin 0.7.0.rc3 → 0.7.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
|
|
1
1
|
module CFManifests
|
2
|
-
class InvalidManifest <
|
2
|
+
class InvalidManifest < CF::UserFriendlyError
|
3
3
|
attr_reader :file
|
4
4
|
|
5
5
|
def initialize(file)
|
@@ -11,7 +11,7 @@ module CFManifests
|
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
|
-
class CircularDependency <
|
14
|
+
class CircularDependency < CF::UserFriendlyError
|
15
15
|
def initialize(app)
|
16
16
|
@app = app
|
17
17
|
end
|
@@ -21,7 +21,7 @@ module CFManifests
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
-
class UnknownSymbol <
|
24
|
+
class UnknownSymbol < CF::UserFriendlyError
|
25
25
|
def initialize(sym)
|
26
26
|
@sym = sym
|
27
27
|
end
|
@@ -1,9 +1,11 @@
|
|
1
|
+
require "manifests-cf-plugin/errors"
|
2
|
+
|
1
3
|
module CFManifests
|
2
4
|
module Builder
|
3
5
|
# parse a manifest and merge with its inherited manifests
|
4
6
|
def build(file)
|
5
7
|
manifest = YAML.load_file file
|
6
|
-
raise InvalidManifest.new(file) unless manifest
|
8
|
+
raise CFManifests::InvalidManifest.new(file) unless manifest
|
7
9
|
|
8
10
|
Array(manifest["inherit"]).each do |path|
|
9
11
|
manifest = merge_parent(path, manifest)
|
@@ -1,13 +1,13 @@
|
|
1
1
|
require "spec_helper"
|
2
|
-
|
3
2
|
require "manifests-cf-plugin/errors"
|
4
3
|
|
5
|
-
|
6
4
|
describe CFManifests::InvalidManifest do
|
7
5
|
let(:file) { "/path/to/file" }
|
8
6
|
|
9
7
|
subject { described_class.new(file) }
|
10
8
|
|
9
|
+
it { should be_kind_of CF::UserFriendlyError }
|
10
|
+
|
11
11
|
describe "#initialize" do
|
12
12
|
it "is initialized with a file" do
|
13
13
|
described_class.new(file)
|
@@ -27,3 +27,18 @@ describe CFManifests::InvalidManifest do
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
30
|
+
|
31
|
+
describe CFManifests::CircularDependency do
|
32
|
+
let(:app) { "app" }
|
33
|
+
subject { described_class.new(app) }
|
34
|
+
|
35
|
+
it { should be_kind_of CF::UserFriendlyError }
|
36
|
+
end
|
37
|
+
|
38
|
+
describe CFManifests::UnknownSymbol do
|
39
|
+
let(:symbol) { "symbol" }
|
40
|
+
subject { described_class.new(symbol) }
|
41
|
+
|
42
|
+
it { should be_kind_of CF::UserFriendlyError }
|
43
|
+
end
|
44
|
+
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifests-cf-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: -1210467692
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
9
|
- 0
|
10
10
|
- rc
|
11
|
-
-
|
12
|
-
version: 0.7.0.
|
11
|
+
- 4
|
12
|
+
version: 0.7.0.rc4
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Alex Suraci
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2013-03-
|
20
|
+
date: 2013-03-25 00:00:00 Z
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: cfoundry
|
@@ -27,21 +27,21 @@ dependencies:
|
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: -1210467706
|
31
31
|
segments:
|
32
32
|
- 0
|
33
|
-
-
|
34
|
-
-
|
33
|
+
- 6
|
34
|
+
- 0
|
35
35
|
- rc
|
36
36
|
- 5
|
37
|
-
version: 0.
|
37
|
+
version: 0.6.0.rc5
|
38
38
|
- - <
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
hash:
|
40
|
+
hash: 5
|
41
41
|
segments:
|
42
42
|
- 0
|
43
|
-
-
|
44
|
-
version: "0.
|
43
|
+
- 7
|
44
|
+
version: "0.7"
|
45
45
|
type: :runtime
|
46
46
|
version_requirements: *id001
|
47
47
|
- !ruby/object:Gem::Dependency
|