diff options
-rw-r--r-- | .travis.yml | 1 | ||||
-rw-r--r-- | lib/slop/parser.rb | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index bbdbfd9..9ed6c7f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ cache: bundler before_install: - gem install bundler rvm: + - 2.0.0 - 2.1 - 2.2 - 2.3.4 diff --git a/lib/slop/parser.rb b/lib/slop/parser.rb index 2b20d36..7d8ad46 100644 --- a/lib/slop/parser.rb +++ b/lib/slop/parser.rb @@ -145,7 +145,7 @@ module Slop options.find { |o| o.flags.include?(flag) } end - private def partition(strings) + def partition(strings) if strings.include?("--") partition_idx = strings.index("--") [strings[0..partition_idx-1], strings[partition_idx+1..-1]] |