vx-builder 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/builder/script/cache.rb +0 -1
- data/lib/vx/builder/source/constants.rb +1 -1
- data/lib/vx/builder/source/matrix.rb +1 -1
- data/lib/vx/builder/version.rb +1 -1
- data/spec/fixtures/travis.yml +4 -0
- data/spec/lib/builder/source_matrix_spec.rb +1 -1
- data/spec/lib/builder/source_spec.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 961d7383fc6f0ab28f0dc8de24d65c440aea8ad7
|
4
|
+
data.tar.gz: 821b34bf84b9541bb7e33d4351877f1d6f8ea584
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26b46b06da670034e007454938388b52cf933dd0b2f05f0865e275d9756312e85ccd084dbbd3197e4c2691609e642c3021a5a1e234e10370e55ccbf9cbd841f4
|
7
|
+
data.tar.gz: 304328def3879ddb4fa0692be5c91e81bf0a867296a52012a0b7ebfb9723d1a9d63c4916184cc4210c67aaad385c033070e1fc079b29dc5bdefd49627fe866fc
|
@@ -3,7 +3,7 @@ module Vx
|
|
3
3
|
class Source
|
4
4
|
class Matrix
|
5
5
|
|
6
|
-
KEYS = (Source::LANGS + %w{ gemfile matrix_env:env }).freeze
|
6
|
+
KEYS = (Source::LANGS + %w{ gemfile matrix_env:env image }).freeze
|
7
7
|
NOT_MATRIX_KEYS = %w{ script before_script services before_install }
|
8
8
|
|
9
9
|
attr_reader :source
|
data/lib/vx/builder/version.rb
CHANGED
data/spec/fixtures/travis.yml
CHANGED
@@ -8,7 +8,7 @@ describe Vx::Builder::Source::Matrix do
|
|
8
8
|
scala: %w{ 2.9.2 2.10.1 },
|
9
9
|
before_script: "echo before_script",
|
10
10
|
before_install: "echo before_install",
|
11
|
-
script: "echo script"
|
11
|
+
script: "echo script",
|
12
12
|
} }
|
13
13
|
let(:config) { Vx::Builder::Source.from_attributes attributes }
|
14
14
|
let(:matrix) { described_class.new config }
|
@@ -52,6 +52,7 @@ describe Vx::Builder::Source do
|
|
52
52
|
let(:expected) { {
|
53
53
|
"rvm" => ["2.0.0"],
|
54
54
|
"gemfile" => ["Gemfile"],
|
55
|
+
"image" => %w{ one two },
|
55
56
|
"before_script" => ["echo before_script"],
|
56
57
|
"cache" => {
|
57
58
|
"directories"=>["~/.cache"]
|
@@ -77,6 +78,7 @@ describe Vx::Builder::Source do
|
|
77
78
|
context "from_attributes" do
|
78
79
|
let(:attrs) {{
|
79
80
|
rvm: "2.0.0",
|
81
|
+
image: %w{ one two },
|
80
82
|
gemfile: "Gemfile",
|
81
83
|
before_script: "echo before_script",
|
82
84
|
before_install: "echo before_install",
|
@@ -98,27 +100,27 @@ describe Vx::Builder::Source do
|
|
98
100
|
|
99
101
|
context "to_matrix_s" do
|
100
102
|
subject { config.to_matrix_s }
|
101
|
-
it { should eq 'gemfile:Gemfile, rvm:2.0.0' }
|
103
|
+
it { should eq 'gemfile:Gemfile, image:one, rvm:2.0.0' }
|
102
104
|
|
103
105
|
context "when many items" do
|
104
106
|
before do
|
105
107
|
mock(config).rvm { %w{ 1.9.3 2.0.0 } }
|
106
108
|
mock(config).scala { %w{ 2.10.1 } }
|
107
109
|
end
|
108
|
-
it { should eq "gemfile:Gemfile, rvm:1.9.3, scala:2.10.1" }
|
110
|
+
it { should eq "gemfile:Gemfile, image:one, rvm:1.9.3, scala:2.10.1" }
|
109
111
|
end
|
110
112
|
end
|
111
113
|
|
112
114
|
context "matrix_keys" do
|
113
115
|
subject { config.matrix_keys }
|
114
|
-
it { should eq("rvm" => "2.0.0", "gemfile" => "Gemfile") }
|
116
|
+
it { should eq("rvm" => "2.0.0", "gemfile" => "Gemfile", "image" => "one") }
|
115
117
|
|
116
118
|
context "when many items" do
|
117
119
|
before do
|
118
120
|
mock(config).rvm { %w{ 1.9.3 2.0.0 } }
|
119
121
|
mock(config).scala { %w{ 2.10.1 } }
|
120
122
|
end
|
121
|
-
it { should eq({"rvm"=>"1.9.3", "scala"=>"2.10.1", "gemfile" => "Gemfile"}) }
|
123
|
+
it { should eq({"rvm"=>"1.9.3", "scala"=>"2.10.1", "gemfile" => "Gemfile", 'image' => "one"}) }
|
122
124
|
end
|
123
125
|
end
|
124
126
|
|
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.0.
|
4
|
+
version: 0.0.14
|
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-02-
|
11
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: vx-common
|