{"push_id":1460315890,"size":1,"distinct_size":1,"ref":"refs/heads/singleton-configuration","head":"74b6f14ae28d113d735e957f4616af47236ac1ea","before":"5d9e17f27311a38291217f2dd7f2dde8b1792cda","commits":[{"sha":"74b6f14ae28d113d735e957f4616af47236ac1ea","author":{"name":"Jack Bracewell","email":"901a313dd405d55c17e429b530ecaa96be3dced3@unboxedconsulting.com"},"message":"Disable codeclimate similar code checks\n\nCode climate was failing a build because:\n\n```\ndef assert_valid_url!(url)\n  begin\n    uri = URI.parse(url)\n    unless uri.is_a? URI::HTTPS\n      raise InvalidArgumentError, \"url '#{url}' is invalid, must be an https url\"\n    end\n  rescue URI::InvalidURIError\n    raise InvalidArgumentError, \"url '#{url}' is invalid, must be an https url\"\n  end\nend\n```\n\nand\n\n```\ndef assert_valid_url!(url)\n  begin\n    uri = URI.parse(url)\n    unless uri.is_a? URI::HTTPS\n      raise InvalidAttributeError, \"url '#{url}' is invalid, must be an https url\"\n    end\n  rescue URI::InvalidURIError\n    raise InvalidAttributeError, \"url '#{url}' is invalid, must be an https url\"\n  end\nend\n```\n\nwere too similar. The alternative is to create a module to share this\nmethod, and change it to allow you to pass the type or exception raised\ninto it, which is just overkill.","distinct":true,"url":"https://api.github.com/repos/deliveroo/routemaster-client/commits/74b6f14ae28d113d735e957f4616af47236ac1ea"}]}
{"actor":{"display_login":"FriedSock"}}