开发者

Creating my own PaperClip GEM? for Heroku?

based on the needs of my app, I need to make a modification to paperclip, it's only one line but it makes all t开发者_运维百科he difference for my apps needs.

In my Rails 3 GEM FILE I have the following:

gem 'paperclip', '2.3.5'

With github, how does one go about making there own paperclip GEM? So I can use it on Heroku?

Something like

gem 'paperclip', '2.3.5' -> my version?

Would love to hear how this is done. How this is maintained as paperclip is updated. and how I use this locally and on Heroku.

Thanks


Here's the github page on 'Forking'. http://help.github.com/forking/


You must fork the repo on github. Then, instead of passing a version in the Gemfile, pass the following: gem 'paperclip', :git=>'git://github.com/username/repo.git'


Why are you creating a gem for this? You can monkey patch the gem. This will allow you to use the standard version. What is the change you need? What is the link to your gem, may be there is an easier solution.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜