title: Artifactory - How to push ruby gems?
body: <p>How do you push a ruby gem to an artifactory gem repository?</p>
  
  <p>when I try and do a push, I get this error <code>Method not allowed</code></p>
  
  <pre><code>gem push active_cube-0.0.9.gem --host https://gems.example.com/artifactory/api/gems/gems/  -k rubygems --verbose
  GET https://api.rubygems.org/latest_specs.4.8.gz
  200 OK
  Getting SRV record failed: DNS result has no information for _rubygems._tcp.gems.internal.mx
  GET https://gems.example.com/artifactory/api/gems/gems/latest_specs.4.8.gz
  200 OK
  Pushing gem to https://gems.example.com/artifactory/api/gems/gems/...
  POST https://gems.example.com/artifactory/api/gems/gems//api/v1/gems
  405 Method Not Allowed
  {
    "errors" : [ {
      "status" : 405,
      "message" : "Method Not Allowed"
    } ]
  }
  </code></pre>