From 187e207303d40ed8f5c6d6c50441ed0ad1d6b373 Mon Sep 17 00:00:00 2001 From: Lee Jarvis Date: Tue, 2 May 2017 14:04:09 +0100 Subject: Fix Ruby 2.0.0 broken `private def ...` and re-add to the CI --- lib/slop/parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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]] -- cgit v1.2.1 From 3d95e93bedd39011daf0785a8fc6b58f79e84b8b Mon Sep 17 00:00:00 2001 From: Lee Jarvis Date: Tue, 2 May 2017 14:10:16 +0100 Subject: Bump version to 4.4.3 --- lib/slop.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/slop.rb b/lib/slop.rb index 5d85670..01bc472 100644 --- a/lib/slop.rb +++ b/lib/slop.rb @@ -6,7 +6,7 @@ require 'slop/types' require 'slop/error' module Slop - VERSION = '4.4.2' + VERSION = '4.4.3' # Parse an array of options (defaults to ARGV). Accepts an # optional hash of configuration options and block. -- cgit v1.2.1