geminabox 3.0.0 → 3.1.0
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/README.md +8 -0
- data/lib/geminabox/server.rb +1 -0
- data/lib/geminabox/version.rb +1 -1
- data/lib/geminabox.rb +11 -0
- 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: 0cfce489e43841df96a314d9a85776328e77a48c3093fabbd9333f5ac0a83079
|
|
4
|
+
data.tar.gz: d3b23957c2ac25f41aab48528e49f85d24fb6701aabec0ae5d8ef622ea189521
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0985c4ba1960c2ef314f18a9a3a6209e76401ffd00ffed6ad79b5e75a3de169f47c315c87e25e930d8d72ecf3f41b94f2cd1d1d41f027ae0aa4c83796cd71cb8'
|
|
7
|
+
data.tar.gz: 9a28c37de926675893b4d620c037531e44894d084025ffbd6deb77d2f55be4e76fbc0f866e8547d29e6454f996dd9b1f5aea43c21ed44f9fd463c011d5e92c5b
|
data/README.md
CHANGED
|
@@ -43,6 +43,12 @@ Start your gem server with 'rackup' to run WEBrick or hook up the config.ru as y
|
|
|
43
43
|
|
|
44
44
|
## RubyGems Proxy
|
|
45
45
|
|
|
46
|
+
> **Deprecated.** The RubyGems proxy is unmaintained and **will be removed in
|
|
47
|
+
> Geminabox 4.0.** It depends on the RubyGems.org Dependency API
|
|
48
|
+
> (`/api/v1/dependencies`), which was [sunset on 2023-05-24](https://blog.rubygems.org/2023/02/22/dependency-api-deprecation.html)
|
|
49
|
+
> in favour of the Compact Index API, so proxy mode no longer functions.
|
|
50
|
+
> Enabling it now emits a deprecation warning. Do not rely on this feature.
|
|
51
|
+
|
|
46
52
|
Geminabox can be configured to pull gems, it does not currently have, from rubygems.org. To enable this mode you can either:
|
|
47
53
|
|
|
48
54
|
Set RUBYGEM_PROXY to true in the environment:
|
|
@@ -180,6 +186,8 @@ Your Gemfile only needs:
|
|
|
180
186
|
source 'https://rubygems.org'
|
|
181
187
|
|
|
182
188
|
gem 'geminabox'
|
|
189
|
+
gem 'rackup'
|
|
190
|
+
gem 'webrick' # or other server you prefer
|
|
183
191
|
```
|
|
184
192
|
|
|
185
193
|
From there
|
data/lib/geminabox/server.rb
CHANGED
data/lib/geminabox/version.rb
CHANGED
data/lib/geminabox.rb
CHANGED
|
@@ -68,6 +68,17 @@ module Geminabox
|
|
|
68
68
|
Server.settings
|
|
69
69
|
end
|
|
70
70
|
|
|
71
|
+
# Deprecated: the RubyGems proxy is unmaintained and will be removed in
|
|
72
|
+
# Geminabox 4.0. It depends on the RubyGems.org Dependency API
|
|
73
|
+
# (/api/v1/dependencies), which was sunset on 2023-05-24, so proxy mode no
|
|
74
|
+
# longer functions.
|
|
75
|
+
def warn_rubygems_proxy_deprecation
|
|
76
|
+
warn '[DEPRECATION] Geminabox RubyGems proxy is deprecated and will be ' \
|
|
77
|
+
'removed in Geminabox 4.0. It depends on the RubyGems.org ' \
|
|
78
|
+
'Dependency API (/api/v1/dependencies), which was sunset on ' \
|
|
79
|
+
'2023-05-24, so proxy mode no longer functions.'
|
|
80
|
+
end
|
|
81
|
+
|
|
71
82
|
def call(env)
|
|
72
83
|
Server.call env
|
|
73
84
|
end
|