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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4286ff9507b08e7212e2fc72813336bf169e4c86e082802bc600648ecc8a0e99
4
- data.tar.gz: ffdd59e137b59252c6a9f526652ee5e99c092cd55e6e13ef191a9e004bbeb47d
3
+ metadata.gz: 0cfce489e43841df96a314d9a85776328e77a48c3093fabbd9333f5ac0a83079
4
+ data.tar.gz: d3b23957c2ac25f41aab48528e49f85d24fb6701aabec0ae5d8ef622ea189521
5
5
  SHA512:
6
- metadata.gz: 215aef46c5ecfe77d391368be8a119230f4b2afe11e65a31b468e67a24c3030aa427801fff384080e75bd8942ac2b9006adf917e8dda5c6857bb9888ad6838ba
7
- data.tar.gz: e29de3a2b4eedc3f603c41af8b449bb90a7f6f6ef2a75184d2febe416a86bc1680d0e2d6525591f585571f5749359b2d7c6c130eed940327f6109d9f397f1493
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
@@ -12,6 +12,7 @@ module Geminabox
12
12
  set :host_authorization, { permitted_hosts: [] }
13
13
 
14
14
  if Geminabox.rubygems_proxy
15
+ Geminabox.warn_rubygems_proxy_deprecation
15
16
  use Proxy::Hostess
16
17
  else
17
18
  use Hostess
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geminabox
4
- VERSION = '3.0.0' unless defined? VERSION
4
+ VERSION = '3.1.0' unless defined? VERSION
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geminabox
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Lea