How to use a modified third-party library in a Rails project?

Some background:

I am currently using Coderay gem (v 0.9.7) in a Rails project I'm working on.

I downloaded the source code for this version and applied the patch for the functionality that the Coderay team plans to release in a later version.

Questions:

  • How to use this modified code in my project?

  • I use Heroku for a live site. How to use the modified code on the site in real time, since now I do not use the official gem?

+3
source share
1 answer

You have several options.

1. Custom stone

github, Bundler, .

Gemfile:

gem 'coderay', :git => 'git://github.com/ryanprayogo/coderay.git'

( , .)

2.

- Evil Twin . - , .

http://errtheblog.com/posts/67-evil-twin-plugin

+5

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


All Articles