manifests-cf-plugin 0.7.0.rc3 → 0.7.0.rc4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  module CFManifests
2
- class InvalidManifest < RuntimeError
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 < RuntimeError
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 < RuntimeError
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,3 +1,3 @@
1
1
  module CFManifests
2
- VERSION = "0.7.0.rc3".freeze
2
+ VERSION = "0.7.0.rc4".freeze
3
3
  end
@@ -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: 3579415619
4
+ hash: -1210467692
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 0
8
8
  - 7
9
9
  - 0
10
10
  - rc
11
- - 3
12
- version: 0.7.0.rc3
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-23 00:00:00 Z
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: 3579415671
30
+ hash: -1210467706
31
31
  segments:
32
32
  - 0
33
- - 5
34
- - 3
33
+ - 6
34
+ - 0
35
35
  - rc
36
36
  - 5
37
- version: 0.5.3.rc5
37
+ version: 0.6.0.rc5
38
38
  - - <
39
39
  - !ruby/object:Gem::Version
40
- hash: 7
40
+ hash: 5
41
41
  segments:
42
42
  - 0
43
- - 6
44
- version: "0.6"
43
+ - 7
44
+ version: "0.7"
45
45
  type: :runtime
46
46
  version_requirements: *id001
47
47
  - !ruby/object:Gem::Dependency