lib/travis/client/has_uuid.rb in travis-1.11.1 vs lib/travis/client/has_uuid.rb in travis-1.12.0

- old
+ new

@@ -1,9 +1,11 @@ +# frozen_string_literal: true + module Travis module Client module HasUuid def id?(object) - object =~ /\A(?:\w+-){4}\w+\Z/ if object.is_a? String + object =~ /\A(?:\w+-){4}\w+\Z/ if object.is_a? String end def cast_id(object) object.to_str end