bosh-workspace 0.8.4 → 0.8.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 509af72a3d60e92cdfc60b4e3f27d7ca4590b569
4
- data.tar.gz: a67937d21657958dcad54f43617df73e97cb2def
3
+ metadata.gz: 3dbff47b8f17bd6be608e2994e74bd9f22c509f3
4
+ data.tar.gz: 73dd2a4c5c3e90094a9b3967bda00c8460491c65
5
5
  SHA512:
6
- metadata.gz: 4261f81472671a031ebd91cfb7948730b0f9690ce8de410ea9f0b5f679d2c2fe6e83ce473580bd1b60d44dbfafe92fb470d500ce60eea709251b70aeb2a9ad98
7
- data.tar.gz: ea63269675c3184df76c34c08ca7d6e6777a231687674749c309431a972d6888b6b1074d36d6811e1798d73ff4e86ce909cc7f81ce0d24ff164b3a1cc3a0ab09
6
+ metadata.gz: 81a9e37ecfe5b7c7983b9ecd3934a94af6984759868c2fba97eff004e9817e9decc1f509db9337491021b6ad06e0d78b65090bf57e7b9f91deb9ec99ec4420af
7
+ data.tar.gz: 3d1911a2617d98c87506b11a762d786b6564057adc1aa6f1f1149ef2277d682516242e458afb8adc5250dd2db33aadb0eed0cc237206658c6345d82475fb3893
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
- # Bosh workspace [![Build Status](https://travis-ci.org/swisscom/bosh-workspace.svg?branch=master)](https://travis-ci.org/swisscom/bosh-workspace) [![Test Coverage](https://codeclimate.com/github/rkoster/bosh-workspace/coverage.png)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Code Climate](https://codeclimate.com/github/rkoster/bosh-workspace.png)](https://codeclimate.com/github/rkoster/bosh-workspace)
1
+ # Bosh workspace
2
+ [![Build Status](https://img.shields.io/travis/swisscom/bosh-workspace/master.svg?style=flat-square)](https://travis-ci.org/swisscom/bosh-workspace) [![Test Coverage](https://img.shields.io/codeclimate/coverage/github/rkoster/bosh-workspace.svg?style=flat-square)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Code Climate](https://img.shields.io/codeclimate/github/rkoster/bosh-workspace.svg?style=flat-square)](https://codeclimate.com/github/rkoster/bosh-workspace) [![Dependency Status](https://img.shields.io/gemnasium/swisscom/bosh-workspace.svg?style=flat-square)](https://gemnasium.com/swisscom/bosh-workspace)
3
+
2
4
 
3
5
  This is a `bosh` cli plugin for creating reproducible and upgradable deployments.
4
6
 
@@ -23,12 +23,12 @@ Gem::Specification.new do |spec|
23
23
  spec.add_runtime_dependency "bosh_cli", ">= 1.2682.0"
24
24
  spec.add_runtime_dependency "bosh_common", ">= 1.2682.0"
25
25
  spec.add_runtime_dependency "semi_semantic", "~> 1.1.0"
26
- spec.add_runtime_dependency "membrane", "~>0.0.2"
26
+ spec.add_runtime_dependency "membrane", "~> 1.1.0"
27
27
  spec.add_runtime_dependency "git", "~> 1.2.6"
28
28
 
29
29
  spec.add_development_dependency "bundler", "~> 1.6"
30
30
  spec.add_development_dependency "rspec", "~> 3.1.0"
31
- spec.add_development_dependency "rspec-its", '~> 1.0.1'
31
+ spec.add_development_dependency "rspec-its", '~> 1.1.0'
32
32
  spec.add_development_dependency "rake"
33
- spec.add_development_dependency "archive-zip", "~> 0.6.0"
33
+ spec.add_development_dependency "archive-zip", "~> 0.7.0"
34
34
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Manifests
3
- VERSION = "0.8.4"
3
+ VERSION = "0.8.5"
4
4
  end
5
5
  end
Binary file
data/spec/release_spec.rb CHANGED
@@ -5,17 +5,36 @@ describe Bosh::Workspace::Release do
5
5
  let(:release_data) { { "name" => name, "version" => version, "git" => repo } }
6
6
  let(:releases_dir) { File.join(asset_dir("manifests-repo"), ".releases") }
7
7
  let(:release) { Bosh::Workspace::Release.new release_data, releases_dir }
8
+ let(:templates) { Dir[File.join(releases_dir, name, "templates/*.yml")].to_s }
8
9
 
9
10
  describe "#update_repo" do
10
- subject { Dir[File.join(releases_dir, name, "releases", "foo*.yml")].to_s }
11
+ subject { Dir[File.join(releases_dir, name, "releases/foo*.yml")].to_s }
11
12
 
12
13
  context "latest version" do
14
+ before { release.update_repo }
15
+
13
16
  let(:version) { "latest" }
14
17
 
15
18
  it "checks out repo" do
16
- release.update_repo
17
19
  expect(subject).to match(/foo-11.yml/)
18
20
  end
21
+
22
+ it "does not include templates from master" do
23
+ expect(templates).to_not match(/deployment.yml/)
24
+ end
25
+ end
26
+
27
+ context "specific version" do
28
+ let(:version) { "11" }
29
+ before { release.update_repo }
30
+
31
+ it "checks out repo" do
32
+ expect(subject).to match(/foo-11.yml/)
33
+ end
34
+
35
+ it "does not include templates from master" do
36
+ expect(templates).to_not match(/deployment.yml/)
37
+ end
19
38
  end
20
39
 
21
40
  context "specific version" do
@@ -71,7 +90,7 @@ describe Bosh::Workspace::Release do
71
90
  end
72
91
 
73
92
  context "multiple releases" do
74
- let(:version) { "3" }
93
+ let(:version) { "11" }
75
94
 
76
95
  before do
77
96
  data = { "name" => "bar", "version" => 2, "git" => repo }
@@ -81,7 +100,8 @@ describe Bosh::Workspace::Release do
81
100
 
82
101
  it "version 3" do
83
102
  release.update_repo
84
- expect(subject).to match(/foo-3.yml/)
103
+ expect(subject).to match(/foo-11.yml/)
104
+ expect(templates).to_not match(/deployment.yml/)
85
105
  end
86
106
  end
87
107
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.4
4
+ version: 0.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruben Koster
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-19 00:00:00.000000000 Z
11
+ date: 2015-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bosh_cli
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.2
61
+ version: 1.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.0.2
68
+ version: 1.1.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: git
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - ~>
116
116
  - !ruby/object:Gem::Version
117
- version: 1.0.1
117
+ version: 1.1.0
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - ~>
123
123
  - !ruby/object:Gem::Version
124
- version: 1.0.1
124
+ version: 1.1.0
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ~>
144
144
  - !ruby/object:Gem::Version
145
- version: 0.6.0
145
+ version: 0.7.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ~>
151
151
  - !ruby/object:Gem::Version
152
- version: 0.6.0
152
+ version: 0.7.0
153
153
  description: Manage your bosh workspace
154
154
  email:
155
155
  - rkoster@starkandwayne.com