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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 216b093f43d1e8dd5cec7d94f29322982eedc551
4
- data.tar.gz: 2a5f7e9041767f508c540b30b269855ddad9776b
3
+ metadata.gz: bb2575e7d6d34ac44d0986c2d6d26b0827823adc
4
+ data.tar.gz: 136f688b892dadb733d28bf7a00c16c7238c6cb1
5
5
  SHA512:
6
- metadata.gz: ccda5cd939863342839363fdfd908fe4da45cf0595ff5dab6a1aaca255c3f31d0513b8e7e7339a8f8777722527df40d9859e74aeee8216e16a9731c133d7bf44
7
- data.tar.gz: 0dd898a43a59a01177d81427002e2c84704e8dd143961cacb121d7dee8b96e169d6c8eb770fcec57e52046c7ce12cf4687324e93b7fb8722524ec3d0fe0874fe
6
+ metadata.gz: 6e1b220bfb700ac809ee919ad6753bc3b0efc0496f48c063bad8d02908eb8e46c9baf5207bcf278f3b16ce384ae5fffa8d2457b83ed6c54ea2b5ecddd8ad18c0
7
+ data.tar.gz: 72883eaf21930e099f083dcfc73ff9c9cb8d60b5c9aa0ff2287daf75bc77b18b5db3361558805091eab9c3a6890494e07150edd3903c3717c46ae380dea21f92
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- ignored.each { |k| config.delete(k) }
23
- [matrix(config), ignored]
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)
@@ -1,3 +1,3 @@
1
1
  module WWTD
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wwtd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
metadata.gz.sig CHANGED
Binary file