Comments (5)
Is understandable the confusion, on ruby there's 3 different Standard Libraries:
- Standard Libraries (upstreamed on the ruby core repo - as you can have
Integer
orString
) - Default gems - upstreamed on their own repo
- Bundled gems - has their own release cycle and are independent from ruby itself, but are needed by ruby.
WEBrick
is a default gem, they are still part of the Standard Library, has own release cycle independent of the ruby version released by the ruby team. Being a gem by itself means you are able to use an updated version of those libraries or even an previous versions, it depends on your needs and a point on security context.
This talk by Shibata Hiroshi has more information about it:
https://www.youtube.com/watch?v=93nGROEgyEc
More info:
https://rubyreferences.github.io/rubyref/stdlib.html
https://stdgems.org/
Hope this helps.
from webrick.
Interesting point! My best guess would be if you just want that gem, without anything else. But really, I don't know, that's just a guess. I didn't think about it. I hope this helps!
from webrick.
So if I understand correctly, you can change the version of a default gem on a Ruby version. Let's say Ruby version X comes with version Y of a default gem but you don't have to use that version. You can use a different version of that default gem still with the same version X of Ruby. That's when you might need gem install some-default-gem
.
from webrick.
WEBrick is no longer in the standard library starting with Ruby 3.0, unless that change is reverted before the 3.0 release. So we should definitely keep the installation section in the README.
from webrick.
You do learn something new every day.
from webrick.
Related Issues (20)
- Is there any way to perform a connection upgrade (e.g. WebSockets) without monkey-patching `HTTPServer`? HOT 1
- WEBrick has an unsafe shutdown process it tries to concurrently write and close the @shutdown_pipe HOT 4
- Webrick `1.8.0` is incompatible with Rack `2.2.6.2` HOT 1
- Unicode handling in header location HOT 11
- test_httpresponse.rb test failures HOT 2
- MAX_URI_LENGTH exceeded results in nonsensical error HOT 2
- digest auth bug: wrong calculation for A1 HOT 1
- TypeError: no implicit conversion of Array into String HOT 5
- WEBrick RCE Vulnerability HOT 3
- Request Smuggling in WEBrick Due to Incorrect Parsing of Empty `Content-Length` Values HOT 2
- license helpful resource
- Request Smuggling in WEBrick via bad chunk-size parsing HOT 5
- Stripping NUL from the ends of header values HOT 1
- Link to documentation in README HOT 1
- Improper handling of chunks with incorrect lengths
- CR incorrectly permitted within header values HOT 1
- Improper stripping of whitespace from header values
- Improper message termination on half-closed socket
- Ruby version is showing up in Webrick Headers, and we need to edit that for security reason HOT 4
- WEBRick::HTTPServer creates ipv6only socket for host `::` HOT 1
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 webrick.