wwtd 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/wwtd.rb +16 -2
- data/lib/wwtd/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb2575e7d6d34ac44d0986c2d6d26b0827823adc
|
4
|
+
data.tar.gz: 136f688b892dadb733d28bf7a00c16c7238c6cb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e1b220bfb700ac809ee919ad6753bc3b0efc0496f48c063bad8d02908eb8e46c9baf5207bcf278f3b16ce384ae5fffa8d2457b83ed6c54ea2b5ecddd8ad18c0
|
7
|
+
data.tar.gz: 72883eaf21930e099f083dcfc73ff9c9cb8d60b5c9aa0ff2287daf75bc77b18b5db3361558805091eab9c3a6890494e07150edd3903c3717c46ae380dea21f92
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/wwtd.rb
CHANGED
@@ -19,8 +19,22 @@ module WWTD
|
|
19
19
|
config = (File.exist?(CONFIG) ? YAML.load_file(CONFIG) : {})
|
20
20
|
config.delete("source_key") # we don't need that we already have the source
|
21
21
|
ignored = (config.keys - UNDERSTOOD) + Array(options[:ignore])
|
22
|
-
|
23
|
-
|
22
|
+
|
23
|
+
calculate_local_ruby_matrix = (
|
24
|
+
ignored.include?("rvm") &&
|
25
|
+
Array(config["rvm"]).include?(RUBY_VERSION) &&
|
26
|
+
config["matrix"]
|
27
|
+
)
|
28
|
+
|
29
|
+
ignored.each { |i| config.delete(i) unless i == "rvm" && calculate_local_ruby_matrix }
|
30
|
+
matrix = matrix(config)
|
31
|
+
|
32
|
+
if calculate_local_ruby_matrix
|
33
|
+
matrix.delete_if { |m| m["rvm"] != RUBY_VERSION }
|
34
|
+
matrix.each { |m| m.delete("rvm") }
|
35
|
+
end
|
36
|
+
|
37
|
+
[matrix, ignored]
|
24
38
|
end
|
25
39
|
|
26
40
|
def run(matrix, options, &block)
|
data/lib/wwtd/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|