Skip to content

Commit

Permalink
Merge pull request #346 from jubishop/master
Browse files Browse the repository at this point in the history
Use environmental TMPDIR for lockfile, and add 'rss' as dependency.
  • Loading branch information
sonots committed May 29, 2021
2 parents cc76c69 + 3e4d11d commit 01d7456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/geminabox.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def set_defaults(defaults)
def settings
Server.settings
end

def call(env)
Server.call env
end
Expand All @@ -85,13 +85,13 @@ def call(env)
rubygems_proxy_merge_strategy: ENV.fetch('RUBYGEMS_PROXY_MERGE_STRATEGY') { :local_gems_take_precedence_over_remote_gems }.to_sym,
allow_delete: true,
http_adapter: HttpClientAdapter.new,
lockfile: '/tmp/geminabox.lockfile',
lockfile: File.join(ENV.fetch('TMPDIR', '/tmp'), 'geminabox.lockfile'),
retry_interval: 60,
allow_remote_failure: false,
ruby_gems_url: 'https://rubygems.org/',
bundler_ruby_gems_url: 'https://bundler.rubygems.org/',
allow_upload: true,
on_gem_received: nil
)

end

0 comments on commit 01d7456

Please sign in to comment.