Rails: provider / gems or supplier / plugins?

I have to track dependencies with git -submodules in my rails application. So far I have added submodules for things like haml, shoulda and authlogic for "providers / plugins". I saw signs that I should use "vendor / gems" instead.

Question: which directory is the appropriate place to host dependencies tracked as submodules? Is the choice arbitrary?

thank

+3
source share
2 answers

- /, , / . , gem . Rails . , : use config.gem gem git - , /.

+2

, config.gems , , .

, :

  • /, ,

    environment.rb

    config.gem "plugin_name", :version => ">=1.0.0"
    

    rake gems:unpack:dependencies
    
  • , (Github ..), :

    script/plugin install github_url
    

    .

  • , / , , , HEAD, commit .

+3

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


All Articles