Sha256: 21c5dfa8351bb6a822efcb0cf9201bc13a1efaf6bc7c5f4f5645fe0e40431136

Contents?: true

Size: 221 Bytes

Versions: 234

Compression:

Stored size: 221 Bytes

Contents

module Travis
  module Client
    module HasUuid
      def id?(object)
         object =~ /\A(?:\w+-){4}\w+\Z/ if object.is_a? String
      end

      def cast_id(object)
        object.to_str
      end
    end
  end
end

Version data entries

234 entries across 234 versions & 3 rubygems

Version Path
travis-1.8.9.travis.874.3 lib/travis/client/has_uuid.rb
travis-1.8.9.travis.867.4 lib/travis/client/has_uuid.rb
travis-1.8.9.travis.853.4 lib/travis/client/has_uuid.rb
travis-1.8.9.travis.844.4 lib/travis/client/has_uuid.rb
travis-1.8.9.travis.837.4 lib/travis/client/has_uuid.rb
travis-1.8.8 lib/travis/client/has_uuid.rb
travis-1.8.9.travis.826.4 lib/travis/client/has_uuid.rb
travis-1.8.7.travis.823.4 lib/travis/client/has_uuid.rb
travis-1.8.7.travis.818.4 lib/travis/client/has_uuid.rb
travis-1.8.7.travis.812.4 lib/travis/client/has_uuid.rb
travis-1.8.6 lib/travis/client/has_uuid.rb
travis-1.8.7.travis.809.4 lib/travis/client/has_uuid.rb
travis-1.8.7.travis.808.4 lib/travis/client/has_uuid.rb
travis-1.8.6.travis.807.4 lib/travis/client/has_uuid.rb
travis-1.8.5 lib/travis/client/has_uuid.rb
travis-1.8.6.travis.796.4 lib/travis/client/has_uuid.rb
travis-1.8.5.travis.793.4 lib/travis/client/has_uuid.rb
travis-1.8.5.travis.791.4 lib/travis/client/has_uuid.rb
travis-1.8.5.travis.784.4 lib/travis/client/has_uuid.rb
travis-1.8.5.travis.783.4 lib/travis/client/has_uuid.rb