简体   繁体   English

Ruby On Rails:宝石和插件之间的区别?

[英]Ruby On Rails : Difference between Gem & Plugin?

Gem&Plugin和有什么不一样?

According to this guide there are two types of (Rails) plugins: 根据本指南,有(Rails)插件有两种类型:

  • specific to your application: vendored plugin 特定于您的应用程序: 供应商插件
  • useful across applications: gemified plugin (or gem ) 跨应用程序有用: gemified插件 (或gem

So, a gem is a plugin that is installed onto a system and is available in all (Ruby) applications. 因此, gem是安装在系统上的插件,并且在所有(Ruby)应用程序中都可用。 For example Ruby on Rails is a set of gems . 例如Ruby on Rails是一组宝石 And a (regular or vendored) plugin is directly installed into an application and only available locally. 并且(常规或供应商) 插件直接安装到应用程序中,并且仅在本地可用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM