vx-builder 0.0.13 → 0.0.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2337275d42297ff4b29ba6182f58b872f98eaa64
4
- data.tar.gz: 6064c28dc12fbf2f69f2e609b650c64bbd8bdea8
3
+ metadata.gz: 961d7383fc6f0ab28f0dc8de24d65c440aea8ad7
4
+ data.tar.gz: 821b34bf84b9541bb7e33d4351877f1d6f8ea584
5
5
  SHA512:
6
- metadata.gz: 71dc59d14727f7b33483d8e480a6e81764ecc19fe95cd6b815af0be0b05857d47d5f254e2bd9811b4b106d48aca2549ef477722e30438ca641b75967ed12e400
7
- data.tar.gz: a5a89fc805bb85257eaa20013e0462aeb3dbf7b67b4409fe56ae696df1437dac2a8c5fa6efc9e79d494b1175fab13418c22a658cd90d5fc70f22ccabfd317d32
6
+ metadata.gz: 26b46b06da670034e007454938388b52cf933dd0b2f05f0865e275d9756312e85ccd084dbbd3197e4c2691609e642c3021a5a1e234e10370e55ccbf9cbd841f4
7
+ data.tar.gz: 304328def3879ddb4fa0692be5c91e81bf0a867296a52012a0b7ebfb9723d1a9d63c4916184cc4210c67aaad385c033070e1fc079b29dc5bdefd49627fe866fc
@@ -26,7 +26,6 @@ module Vx
26
26
  private
27
27
 
28
28
  def enabled?(env)
29
- puts env.cached_directories.inspect
30
29
  !env.cached_directories.empty?
31
30
  end
32
31
 
@@ -3,7 +3,7 @@ module Vx
3
3
  class Source
4
4
 
5
5
  LANGS = %w{ rvm scala java go }.freeze
6
- KEYS = %w{ gemfile services before_script script before_install }.freeze
6
+ KEYS = %w{ gemfile services before_script script before_install image }.freeze
7
7
  AS_ARRAY = (KEYS + LANGS).freeze
8
8
 
9
9
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module Builder
3
- VERSION = "0.0.13"
3
+ VERSION = "0.0.14"
4
4
  end
5
5
  end
@@ -11,3 +11,7 @@ script: "RAILS_ENV=test ls -1 && echo DONE!"
11
11
  cache:
12
12
  directories:
13
13
  - ~/.cache
14
+
15
+ image:
16
+ - one
17
+ - two
@@ -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.13
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-07 00:00:00.000000000 Z
11
+ date: 2014-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: vx-common