Skip to content

Commit

Permalink
Fixes #4316. --disable: should accept gem as alias for gems.
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Nov 17, 2016
1 parent c49d1f4 commit e01d2b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions core/src/main/java/org/jruby/util/cli/ArgumentProcessor.java
Expand Up @@ -817,6 +817,12 @@ public Boolean apply(ArgumentProcessor processor, Boolean enable) {
return true;
}
});
features.put("gem", new Function2<Boolean, ArgumentProcessor, Boolean>() {
public Boolean apply(ArgumentProcessor processor, Boolean enable) {
processor.config.setDisableGems(!enable);
return true;
}
});
features.put("gems", new Function2<Boolean, ArgumentProcessor, Boolean>() {
public Boolean apply(ArgumentProcessor processor, Boolean enable) {
processor.config.setDisableGems(!enable);
Expand Down
6 changes: 2 additions & 4 deletions test/mri/excludes/TestSyntax.rb
Expand Up @@ -12,8 +12,6 @@
exclude :test_integer_suffix, "needs investigation"
exclude :test_invalid_next, "needs investigation"
exclude :test_null_range_cmdarg, "needs investigation"
exclude :test_syntax_ext, "needs investigation #4308"
exclude :test_syntax_lib, "needs investigation #4308"
exclude :test_syntax_sample, "needs investigation #4308"
exclude :test_syntax_test, "needs investigation #4308"



0 comments on commit e01d2b5

Please sign in to comment.