apiaryio / apiary-client

Apiary CLI client
https://help.apiary.io/tools/apiary-cli/
MIT License
204 stars 70 forks source link

apiary fails to install in macOS Monterey #213

Open guruparan18 opened 2 years ago

guruparan18 commented 2 years ago

I used to have a working version of apiary. However, after a recent upgrade of macOS to monterey and Ruby upgrade, it appears the apiary installation steps is now corrupted.

Whenever I run: apiary help I get the following error:

apiary help                                                                                                                                    
/Users/sree/bin/apiary:5:in `<main>': uninitialized constant Apiary::CLI (NameError)

Apiary::CLI.start
      ^^^^^
Did you mean?  CGI

I tried uninstalling and reinstalling apiaryio gems. Building the apiaryio from github branch.

System details:

ruby -v                                                                                                        
ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x86_64-darwin21]

Let me know if any more information is needed.

abtris commented 1 year ago

I build a new version on the latest Ventura 13.0.1 (22A400), and it doesn't have an issue.

./bin/apiary help
Commands:
  apiary archive                      # Archive All Your API Description Documents from apiary.io to local files named following [api-project-subdomain.apib] pattern.
  apiary fetch --api-name=API_NAME    # Fetch API Description Document from API_NAME.docs.apiary.io
  apiary help [COMMAND]               # Describe available commands or one specific command
  apiary preview                      # Show API documentation in browser or write it to file
  apiary publish --api-name=API_NAME  # Publish API Description Document on API_NAME.docs.apiary.io (API Description must exist on apiary.io)
  apiary styleguide                   # Check API Description Document against styleguide rules (Apiary.io pro plan is required - https://apiary.io/plans )
  apiary version                      # Show version
ruby -v
ruby 2.7.2p137 (2020-10-01 revision 5445e04352) [arm64-darwin20]

Do you still have this issue?

guruparan18 commented 1 year ago

Sorry @abtris. Just saw the response. And yes, the issue still persists in "Ventura 13.2.1". I will retry with ruby 2.7 when I get sometime.

However, as a workaround I am using docker image. And I am happy with that option. Thanks.