lib/zold/remotes.rb in zold-0.18.8 vs lib/zold/remotes.rb in zold-0.18.9

- old
+ new

@@ -86,9 +86,13 @@ def http(path = '/') Http.new(uri: "http://#{@host}:#{@port}#{path}", score: @score, network: @network) end + def default? + !DEFS.find { |r| r[0] == @host && r[1].to_i == @port }.nil? + end + def to_s "#{@host}:#{@port}/#{@idx}" end def assert_code(code, response)