开发者

Rubygems auto install from source code

开发者 https://www.devze.com 2022-12-19 19:46 出处:网络
I was wondering if there was a solution to automatically - from my ruby source code - ask Gem to install various librairies my code my require to work?

I was wondering if there was a solution to automatically - from my ruby source code - ask Gem to install various librairies my code my require to work?

From what i read on the internet, it seems we are obliged to either use an install script that directly runs "gem install ..." commands or do it manually or some people have posted a ruby script that simply iterate over a 开发者_如何学编程list of dependencies and use the system command to install them.

Any other better options?

Thanks for your time.


You could use internal RubyGems commands, but that's a pain and error-prone process, especially for dependencies.

I would setup a Gemfile and use Bundler instead. http://github.com/carlhuda/bundler

0

精彩评论

暂无评论...
验证码 换一张
取 消