how to require different gems with the same name?

前端 未结 2 1843
自闭症患者
自闭症患者 2021-01-13 08:23

I am interested in making an application that requires me to require a gmail gem for ruby. Right now there are 2 gems:

https://github.com/dcparker/ruby-gmail

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-13 08:49

    You could add the following to your Gemfile:

    gem 'gmail', :git => "git://github.com/dcparker/ruby-gmail", :branch => "master"
    gem 'gmail', :git => "git://github.com/nu7hatch/gmail", :branch => "master"
    

提交回复
热议问题