geminabox 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/geminabox.rb +3 -3
- data/lib/geminabox/server.rb +1 -1
- data/lib/geminabox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4cd157b68695f62078fdfe0852c583684149a3df1bf12fe49c77f52786cf814
|
|
4
|
+
data.tar.gz: 81190a65a9f11776e07569922f7284a72cece2f5a39fa3a950155276b95f0ad1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48c92617e64fd7abfbe55aee1223f2fa56ee5e6c6436e470b3b491182ccf5508ff259822204c53c32503ce9eb2be38f94e817e4cd0c6e6a3df27814006014f93
|
|
7
|
+
data.tar.gz: 4baad42fcfce75ff75411481cf118cde1e991471bb9f650f6869e9ccd68b8078448debcbbd5185b3d8cbe4a5b478e7485de6e8a8e7e615ea6420ed89a45fc34e
|
data/lib/geminabox.rb
CHANGED
|
@@ -67,7 +67,7 @@ module Geminabox
|
|
|
67
67
|
def settings
|
|
68
68
|
Server.settings
|
|
69
69
|
end
|
|
70
|
-
|
|
70
|
+
|
|
71
71
|
def call(env)
|
|
72
72
|
Server.call env
|
|
73
73
|
end
|
|
@@ -85,7 +85,7 @@ module Geminabox
|
|
|
85
85
|
rubygems_proxy_merge_strategy: ENV.fetch('RUBYGEMS_PROXY_MERGE_STRATEGY') { :local_gems_take_precedence_over_remote_gems }.to_sym,
|
|
86
86
|
allow_delete: true,
|
|
87
87
|
http_adapter: HttpClientAdapter.new,
|
|
88
|
-
lockfile: '/tmp
|
|
88
|
+
lockfile: File.join(ENV.fetch('TMPDIR', '/tmp'), 'geminabox.lockfile'),
|
|
89
89
|
retry_interval: 60,
|
|
90
90
|
allow_remote_failure: false,
|
|
91
91
|
ruby_gems_url: 'https://rubygems.org/',
|
|
@@ -93,5 +93,5 @@ module Geminabox
|
|
|
93
93
|
allow_upload: true,
|
|
94
94
|
on_gem_received: nil
|
|
95
95
|
)
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
end
|
data/lib/geminabox/server.rb
CHANGED
|
@@ -206,7 +206,7 @@ module Geminabox
|
|
|
206
206
|
def serialize_update(&block)
|
|
207
207
|
with_rlock(&block)
|
|
208
208
|
rescue ReentrantFlock::AlreadyLocked
|
|
209
|
-
halt 503, { 'Retry-After' => Geminabox.retry_interval }, 'Repository lock is held by another process'
|
|
209
|
+
halt 503, { 'Retry-After' => Geminabox.retry_interval.to_s }, 'Repository lock is held by another process'
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
def with_rlock(&block)
|
data/lib/geminabox/version.rb
CHANGED