vx-builder 0.5.14 → 0.5.15

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: 8d8652040a31b47d662dba1e4a752de7564a10ed
4
- data.tar.gz: 9e164084f07cf6a55f40d3ecf84974ffb9746acc
3
+ metadata.gz: 4a275805db418f49736cfe836332b23cf6f68e62
4
+ data.tar.gz: 65f898414b6ad2c592bcea46726869c6e2b8e82f
5
5
  SHA512:
6
- metadata.gz: 9c51617994dba89109f95436dbf8acbd13e9325208411aef088d65dcc0a6269baed5ef92c5b5be3eeba8202e7f5c45aee9099314a8c98adb47e52ef4dadbffe9
7
- data.tar.gz: bcb3de8977670bdca2e2053abbe8b9d55c142d5dee7b5ae0a4f02ae64707ddbde5da032d9f72566f73cbe990ed5a323bc038bca00fcba86eed3f4710370640e8
6
+ metadata.gz: 8d5f7cd060576ff9c8003b1435d0bcf8078a5d88f4b785c626c83d74ff3c5867bb48101076d625c5636acddd91fa871544d857293afa236f1fce70342e0555a9
7
+ data.tar.gz: 6a26b1b9d81a22659598cd4c88d5ca4c519154130146c5a68cdc8710d3a8d3108322007a0ee30974477cb3c34e50ae4bff49b1c5282299ab8032ed050f80f009
@@ -34,7 +34,7 @@ module Vx
34
34
  "global" => Array(new_env['global'])
35
35
  }
36
36
  else
37
- env = Array(new_env).flatten.map(&:to_s)
37
+ env = Array(new_env).flatten.select{|i| i.is_a?(String) }
38
38
  if env.size == 1
39
39
  { "matrix" => [], "global" => env }
40
40
  else
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module Builder
3
- VERSION = "0.5.14"
3
+ VERSION = "0.5.15"
4
4
  end
5
5
  end
@@ -9,6 +9,7 @@ export CI_PROJECT_NAME=vexor/vx-test-repo
9
9
  export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
10
10
  export CI_BRANCH=test/pull-request
11
11
  export VX_ROOT=$(pwd)
12
+ test -d ${VX_ROOT}/code/vexor/vx-test-repo || exit 1
12
13
  cd ${VX_ROOT}/code/vexor/vx-test-repo
13
14
 
14
15
  # after script
@@ -9,6 +9,7 @@ export CI_PROJECT_NAME=vexor/vx-test-repo
9
9
  export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
10
10
  export CI_BRANCH=test/pull-request
11
11
  export VX_ROOT=$(pwd)
12
+ test -d ${VX_ROOT}/code/vexor/vx-test-repo || exit 1
12
13
  cd ${VX_ROOT}/code/vexor/vx-test-repo
13
14
 
14
15
  # after script
@@ -9,6 +9,7 @@ export CI_PROJECT_NAME=vexor/vx-test-repo
9
9
  export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
10
10
  export CI_BRANCH=test/pull-request
11
11
  export VX_ROOT=$(pwd)
12
+ test -d ${VX_ROOT}/code/vexor/vx-test-repo || exit 1
12
13
  cd ${VX_ROOT}/code/vexor/vx-test-repo
13
14
 
14
15
  # after script
@@ -9,6 +9,7 @@ export CI_PROJECT_NAME=vexor/vx-test-repo
9
9
  export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
10
10
  export CI_BRANCH=test/pull-request
11
11
  export VX_ROOT=$(pwd)
12
+ test -d ${VX_ROOT}/code/vexor/vx-test-repo || exit 1
12
13
  cd ${VX_ROOT}/code/vexor/vx-test-repo
13
14
 
14
15
  # after script
@@ -9,6 +9,7 @@ export CI_PROJECT_NAME=vexor/vx-test-repo
9
9
  export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
10
10
  export CI_BRANCH=test/pull-request
11
11
  export VX_ROOT=$(pwd)
12
+ test -d ${VX_ROOT}/code/vexor/vx-test-repo || exit 1
12
13
  cd ${VX_ROOT}/code/vexor/vx-test-repo
13
14
 
14
15
  # after script
@@ -9,6 +9,7 @@ export CI_PROJECT_NAME=vexor/vx-test-repo
9
9
  export CI_BUILD_SHA=8f53c077072674972e21c82a286acc07fada91f5
10
10
  export CI_BRANCH=test/pull-request
11
11
  export VX_ROOT=$(pwd)
12
+ test -d ${VX_ROOT}/code/vexor/vx-test-repo || exit 1
12
13
  cd ${VX_ROOT}/code/vexor/vx-test-repo
13
14
 
14
15
  # after script
@@ -16,13 +16,13 @@ describe Vx::Builder::BuildConfiguration::Env do
16
16
  end
17
17
 
18
18
  context "when env is array" do
19
- let(:params) { [:foo, :bar] }
19
+ let(:params) { %w{foo bar} }
20
20
  its(:matrix) { should eq ['foo', 'bar'] }
21
21
  its(:global) { should eq [] }
22
22
  end
23
23
 
24
24
  context "when env is array of one element" do
25
- let(:params) { [:foo] }
25
+ let(:params) { ["foo"] }
26
26
  its(:matrix) { should eq [] }
27
27
  its(:global) { should eq ['foo'] }
28
28
  end
@@ -39,5 +39,10 @@ describe Vx::Builder::BuildConfiguration::Env do
39
39
  its(:global) { should eq [] }
40
40
  end
41
41
 
42
+ context "hen env has secure keys" do
43
+ let(:params) { [{secure: "foo"}] }
44
+ its(:attributes) { should eq({"global" => [], "matrix" => []}) }
45
+ end
46
+
42
47
  end
43
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vx-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.14
4
+ version: 0.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-08 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vx-common