lib/protobuf/cli.rb in protobuf-3.5.0 vs lib/protobuf/cli.rb in protobuf-3.5.1

- old
+ new

@@ -116,12 +116,11 @@ self.mode = if multi_mode? say('WARNING: You have provided multiple mode options. Defaulting to socket mode.', :yellow) :socket elsif options.zmq? :zmq - else # rubocop:disable Style/ElseAlignment - # above: https://github.com/bbatsov/rubocop/pull/1470/files + else case server_type = ENV["PB_SERVER_TYPE"] when nil, /socket/i :socket when /zmq/i :zmq @@ -180,10 +179,10 @@ rescue LoadError => e say_and_exit("Failed to load application file #{app_file}", e) end def runner_options - opt = options.symbolize_keys + opt = options.to_hash.symbolize_keys opt[:workers_only] = (!!ENV['PB_WORKERS_ONLY']) || options.workers_only opt end