Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Cannot push ruby gem

    Scheduled Pinned Locked Moved Support
    rubyprogetfeeds
    3 Posts 3 Posters 21 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      a.m_8178
      last edited by

      I have created a rubygems feed and the feed list reports the endpoint
      https://REDACTED/nuget/private-ruby
      however, when I click on the feed, the endpoint is reported as https://REDACTED/rubygems/private-ruby/

      If I try to push to the latter (rubygems) URL, it says API endpoint not available.

      My account at the proget server has admin privilege

      Trying the former (nuget) URL, using my proget username and password I get this

      gem push pkg/mypackage-0.1.0.gem --host https://REDACTED/nuget/private-ruby -V
      Enter your https://REDACTED/nuget/private-ruby credentials.
      Don't have an account yet? Create one at https://REDACTED/nuget/private-ruby/sign_up
         Email:   REDACTED
      Password:
      
      GET https://REDACTED/nuget/private-ruby/api/v1/api_key
      404 OData method is not implemented.
      OData method is not implemented.
      

      If I try using the email address associated with my account, I get this

      gem push pkg/mypackage-0.1.0.gem --host https://REDACTED/nuget/private-ruby -V
      Enter your https://REDACTED/nuget/private-ruby credentials.
      Don't have an account yet? Create one at https://REDACTED/nuget/private-ruby/sign_up
         Email:   REDACTED
      Password:
      
      GET https://REDACTED/nuget/private-ruby/api/v1/api_key
      401 You are not authorized to view this feed because the user Anonymous does not have the Feeds_ViewFeed privilege.
      You are not authorized to view this feed because the user Anonymous does not have the Feeds_ViewFeed privilege.
      

      What am I missing? Documentation seems thin on the ground.

      Thanks.

      Product: ProGet
      Version: 4.7.1

      1 Reply Last reply Reply Quote 0
      • T Offline
        thoven
        last edited by

        nuget should not be anywhere in the URL; that's meant to be the endpoint for NuGet feeds. If it's displayed somewhere, that's a UI glitch that has since been fixed.

        The correct command is:

        gem push <gem file> --host http://{proget-host}/rubygems/{feedName}

        If that's the command that gave you endpoint not available, is there a way to add even more verbose logging to say which endpoint it's referring to? We've probably added it since v4.7.1 (search for ruby on this page: https://inedo.com/proget/versions for specific bugs fixed)

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Upgrading to v5 seems to have fixed this

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation