Skip to content

Commit

Permalink
Merge pull request #337 from tedgarb/patch-1
Browse files Browse the repository at this point in the history
Make UpstreamSource intermediate specs from upstream
  • Loading branch information
indirect authored Jun 16, 2023
2 parents 6818841 + 523a7e6 commit 0bfb0dd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/gemstash/gem_source/upstream_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,21 @@ def serve_gem(id)
serve_cached(id, :gem)
end

def serve_latest_specs
http_client = http_client_for(upstream)
http_client.get("latest_specs.4.8.gz")
end

def serve_prerelease_specs
http_client = http_client_for(upstream)
http_client.get("prerelease_specs.4.8.gz")
end

def serve_specs
http_client = http_client_for(upstream)
http_client.get("specs.4.8.gz")
end

private

def serve_cached(id, resource_type)
Expand Down

0 comments on commit 0bfb0dd

Please sign in to comment.