目前,我在我的所有项目中多次使用klout gem。在gem中,有:
Hash.send :include, Hashie::HashExtensions哈希扩展名包含,但我想将其更改为:
Hash.send :include, Hashie::Extensions如何覆盖此行?
PS:我建议你去检查一下gem的源代码,尤其是klout.rb
发布于 2014-06-18 17:30:19
您可以派生klout github存储库,通过对派生的更改来推送提交,然后使用它的How to install gem from GitHub source?
例如,如果您使用bundler,则可以在Gemfile中编写
gem 'klout', :git => 'git://github.com/tyrbo/klout.git', :branch => 'hashie_fix'使用带有修复程序的alredy现有klout fork
https://stackoverflow.com/questions/24280348
复制相似问题