Comments (20)
435 wasn't 100% complete, #547 works somewhat, with the minor caveat of there being high potential for out of memory situations due to the sheer size of the versions file that's returned by rubygems.org. One solution of course would lie in being able to stream the response and write the file chunk by chunk. Currently the rubygems.org apis don't support streaming requests as far as i can tell though. It does however build and run fine as far as i can tell provided you give it like 4 gigs of memory to work with...
from geminabox.
Still in dev
from geminabox.
Is there any way fixing this? A workaround?
May 10th is approaching...
from geminabox.
This PR uses the modern ruby gems API - #435
from geminabox.
Could you update this issue?
from geminabox.
Any news on this or #435 ?
from geminabox.
It seems that the workaround that the jfrog guys describe also works for geminabox:
https://jfrog.com/help/r/artifactory-rubygems-org-dependency-api-deprecation/possible-workaround
If you are not using a reverse-proxy and want a quick-and-dirty fix, just find server.rb
and edit the two routes:
get '/api/v1/dependencies' do
halt 404, "https://github.com/geminabox/geminabox/issues/536"
#query_gems.any? ? Marshal.dump(gem_list) : 200
end
get '/api/v1/dependencies.json' do
halt 404, "https://github.com/geminabox/geminabox/issues/536"
#query_gems.any? ? gem_list.to_json : {}
end
from geminabox.
The issue with that solution is that it's wildly slow, the real solution here is to get that PR listed above merged. We've been testing a solution based off of it for a couple of weeks now and haven't found any issues, i plan to merge it upstream.
from geminabox.
That is why I wrote "workaround", "quick-and-dirty fix", and not "solution".
Of course merging the pull request would be better, but that is outside of my power. So I thought others might be interested in a workaround as well.
from geminabox.
Another work around is to simply pull either mine or @skaes changes and execute from source or package and distribute it as a gem.
from geminabox.
This works with Geminabox.allow_remote_failure = true
also.
from geminabox.
Not sure if #435 resolves the issue of API dependency deprecation. I have built an image based on it, but I am still encountering the same problem as with the master branch. Has anyone else attempted to test it as well?
from geminabox.
Could you update this issue?
from geminabox.
Could you update this issue?
from geminabox.
Related Issues (20)
- Drop support for RubyGems before 2.5.0
- Drop support for RubyGems before 2.4.0 HOT 2
- Drop Ruby 2.2 support
- Drop Ruby 2.3 support HOT 5
- Drop Ruby 2.4 support HOT 5
- Drop Ruby 2.5 support HOT 3
- Drop Ruby 2.6 support HOT 3
- rake c warns loading "ubygems"
- Add Code of Conduct HOT 3
- Add CONTRIBUTING
- Add logo to README HOT 1
- Join good first issue platform HOT 5
- Improve bundled Dockerfile HOT 6
- How to auth per gem? HOT 1
- NameError - uninitialized constant Geminabox::VERSION HOT 12
- Support Ruby 3.2 HOT 2
- Docker error on start: handler.rb:45:in `pick': Couldn't find handler for: puma, thin, falcon, webrick. (LoadError) HOT 1
- Update Sinatra Dependency HOT 9
- Security: Rebuild to fix multiple vulnerabilities? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from geminabox.