ruby - Is there a .gemrc.local or equivalent? -


like many people created dotfiles repo , trying extract bits not private respective dotfiles. have .whatever.local file loaded if it's present might contain information don't want checked repository. rubygems use ~/.gemrc file, can't see way extract private information out of separate file. know how might done?

in particular i'd have list of sources external .gemrc file.

i not see equivalent .local per v2.4.6 (a recent, not last version).

the source code of rubygems states relevant want achieve, though. example, in src/ruby-2.3.0/lib/rubygems/config_file.rb:

## # gem::configfile rubygems options , gem command options gemrc. # # gemrc yaml file uses strings match gem command arguments , # symbols match rubygems options. # # gem command arguments use string key matches command name , # +:sources+:: sets gem::sources # +:verbose+:: see #verbose # # gemrc files may exist in various locations , read , merged in # following order: # # - system wide (/etc/gemrc) # - per user (~/.gemrc) # - per environment (gemrc files listed in gemrc environment variable) 

so use gemrc environment variable load extra, private files well.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -