johnfairh / RubyGateway

Embed Ruby in Swift: load Gems, run scripts, call APIs seamlessly in both directions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use the bundler and install a gem?

Whirlwind opened this issue · comments

I want to use the bundler to manage all gems, but I could not find the correct way.

First, If I have a bundler gem in the macos, how to use the bundler and gemfile?

Then, If there is not a bundler gem, I want to install a gem, How to run the command gem install bundler? It is a shell script, not a ruby script. Must I use the NSTask to invoke the bash command?

This framework is about using Ruby code from Swift programs.

I'm not sure how it can help with your questions.

See Process in Foundation to run child processes from Swift.