Sha256: ebb5528738cc0e3583698af42ffc4fb08307638fe5cae5451c51e7d186f4d9ad
Contents?: true
Size: 376 Bytes
Versions: 7
Compression:
Stored size: 376 Bytes
Contents
require 'travis' # https://github.com/travis-ci/travis.rb/pull/644/files Travis::Client::Session.prepend(Module.new do private def fetch_one(entity, id = nil) path = "/#{entity.base_path}/#{id}" if entity == Travis::Client::Artifact load({'log' => {'id' => id, 'body' => get_raw(path)}})[entity.one] else get(path)[entity.one] end end end)
Version data entries
7 entries across 7 versions & 1 rubygems