diff --git a/Gemfile b/Gemfile index 5a38c04..59f86ce 100644 --- a/Gemfile +++ b/Gemfile @@ -14,5 +14,8 @@ gem "rspec", "~> 3.0" gem "standard", "~> 1.3" group :development do - gem "steep", require: false + # FIXME: Relax this version when the stardand gem can cope with empty collection annotations + # https://github.com/soutaro/steep/pull/1338 + # https://github.com/standardrb/standard/pull/656 + gem "steep", "< 1.9.0", require: false end diff --git a/lib/opensearch/cli.rb b/lib/opensearch/cli.rb index 07ad239..8a3b3e9 100644 --- a/lib/opensearch/cli.rb +++ b/lib/opensearch/cli.rb @@ -2,6 +2,7 @@ require "openssl" require "optparse" +require "uri" module OpenSearch class CLI < OptionParser @@ -12,7 +13,7 @@ def initialize(banner = nil, width = 32, indent = " " * 4, &block) host: "https://localhost:9200", transport_options: {ssl: {}} } - super(banner, width, indent) {} + super {} add_opensearch_options