diff options
author | Ryan Davis <ryand@zenspider.com> | 2019-03-28 12:31:31 -0800 |
---|---|---|
committer | Ryan Davis <ryand@zenspider.com> | 2019-03-28 12:31:31 -0800 |
commit | a9200fcc0068cda77bfb870204d5d24fb27c87a2 (patch) | |
tree | ec77318cef15760235ef069ed6d752f3a5e65bf3 /lib | |
parent | aaf747052197c60a7b1616e74ec3fcb7f695270f (diff) | |
download | hoe-a9200fcc0068cda77bfb870204d5d24fb27c87a2.tar.gz |
+ Added 'multiruby_skip' config so it can be in global ~/.hoerc.
[git-p4: depot-paths = "//src/hoe/dev/": change = 11902]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hoe/test.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/hoe/test.rb b/lib/hoe/test.rb index 8d97964..86d7567 100644 --- a/lib/hoe/test.rb +++ b/lib/hoe/test.rb @@ -32,9 +32,14 @@ module Hoe::Test ENV.delete "N" if ENV["N"] ENV["N"] = ENV["C"] if ENV["C"] + Hoe::DEFAULT_CONFIG["multiruby_skip"] = [] + ## # Optional: Array of incompatible versions for multiruby filtering. # Used as a regex. + # + # Can be defined both in .hoerc and in your hoe spec. Both will be + # used. attr_accessor :multiruby_skip @@ -90,7 +95,11 @@ module Hoe::Test desc "Run the test suite using multiruby." task :multi do - ENV["EXCLUDED_VERSIONS"] = multiruby_skip.join(":") + skip = with_config do |config, _| + config["multiruby_skip"] + self.multiruby_skip + end + + ENV["EXCLUDED_VERSIONS"] = skip.join(":") system "multiruby -S rake" end |