Gem: integrate change from download request

I had problems with the gem and it turned out that someone was able to fix it in this tensile request:

https://github.com/rheaton/carrierwave-video/pull/13

How can I integrate this change into my application locally since it has yet been merged?

+6
source share
1 answer

Assuming you are using the Bundler, you can specify the repository and branch for use in gem in your Gemfile (it also supports specifying a tag or link hash, but the branch should work for your case). In this case, it might look something like this:

gem 'carrierwave-video', :git => 'git://github.com/elja/carrierwave-video.git', :branch => 'patch-1' 

or, more briefly:

 gem 'carrierwave-video', :github => 'elja/carrierwave-video', :branch => 'patch-1' 

This is not a great long-term solution, as the branch is unlikely to continue to update properly and may disappear, so you should probably revert to the default once the pull request is resolved.

+14
source

Source: https://habr.com/ru/post/954807/


All Articles