vx-builder 0.5.16 → 0.5.17
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8136b579816b72f35a6830f449cb21510df4066e
|
|
4
|
+
data.tar.gz: 3ad1702af5b246d3dc7b19653fbaae218c56d205
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c7194a2bd55ff86c35e7cce44ba5c011334b0c8cbce4f30957177734868643ea3da25aaebd4f66fbc6a48ff5c2c76e80372219938264401462a248957ffb77e
|
|
7
|
+
data.tar.gz: 6277e86a3b67cc5e870d4890d54215675bef9fff130f36aac756ad01fbe5010c12c979facb67e4c50cd02558e82693cc60ad85cc505b023f775722202ebac38d
|
|
@@ -132,14 +132,18 @@ module Vx
|
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
def to_hash
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
if empty?
|
|
136
|
+
{}
|
|
137
|
+
else
|
|
138
|
+
attributes.merge(
|
|
139
|
+
"env" => env.attributes,
|
|
140
|
+
"cache" => cache.attributes,
|
|
141
|
+
"vexor" => vexor.attributes,
|
|
142
|
+
"matrix" => matrix.attributes,
|
|
143
|
+
"deploy" => deploy.attributes,
|
|
144
|
+
"deploy_modules" => deploy_modules.map(&:to_hash)
|
|
145
|
+
)
|
|
146
|
+
end
|
|
143
147
|
end
|
|
144
148
|
|
|
145
149
|
def to_yaml
|
data/lib/vx/builder/version.rb
CHANGED
|
@@ -113,5 +113,10 @@ describe Vx::Builder::BuildConfiguration do
|
|
|
113
113
|
it "should be false if not empty hash" do
|
|
114
114
|
expect(described_class.new({"script" => "value"})).to_not be_empty
|
|
115
115
|
end
|
|
116
|
+
|
|
117
|
+
it "should to_hash to be empty" do
|
|
118
|
+
expect(described_class.new(nil).to_hash).to eq({})
|
|
119
|
+
end
|
|
120
|
+
|
|
116
121
|
end
|
|
117
122
|
end
|