Skip to content
This repository has been archived by the owner on Jun 26, 2018. It is now read-only.

webapp which hosts rubygems or a proxy to rubygems. delivers gem maven artifacts as well

License

Notifications You must be signed in to change notification settings

moofish32/rubygems-servlets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rubygems-servlets

webapp which hosts rubygems or a proxy to rubygems. delivers gem maven artifacts as well

build

the regular webapp with hosted and proxy can be built with

 mvn package

or just run it in place with

 mvn jetty:run

where the hosted rubygems are located under http://localhost:8989/hosted and the proxy with https://rubygems.org as source is reachable under http://localhost:8989/hosted.

usage

add them to your gem command

  • gem sources add <http://localhost:8989/hosted>
  • gem sources add <http://localhost:8989/proxy>

or use the proxy with bundler

  • bundler config mirror.http://rubygems.org http://localhost:8989/proxy
  • bundler config mirror.https://rubygems.org http://localhost:8989/proxy

the Gem-Artifacts are non accessible via

as mirror to http://rubygems-proxy.torquebox.org/releases and http://rubygems-proxy.torquebox.org/prereleases add to your settings.xml

<settings>
  <mirrors>
    <mirror>
      <id>gems</id>
      <name>Rubygems</name>
      <url>http://localhost:8989/proxy/maven/releases</url>
      <mirrorOf>rubygems-releases</mirrorOf>
    </mirror>
    <mirror>
      <id>pregems</id>
      <name>Rubygems Prereleases</name>
      <url>http://localhost:8989/proxy/maven/prereleases</url>
      <mirrorOf>rubygems-prereleases</mirrorOf>
    </mirror>

for more details about Gem-Artifacts see https://github.com/sonatype/nexus-ruby-support/wiki/Gem-Artifacts. for a solution with access control, more advanced proxy features and merging (group) to repositories see https://github.com/sonatype/nexus-ruby-support.

rubygems-proxy.torquebox.org

the webapp for this rubygems-proxy is under the profile legacy

 mvn clean package -Plegacy

which is just a proxy (mvn jetty:run -Plegacy)

tests

some integration tests for proxy feature can be executed with

mvn -P run-its

mvn -P run-its -Plegacy

About

webapp which hosts rubygems or a proxy to rubygems. delivers gem maven artifacts as well

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published