Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/load_path.rb

8 lines
217 B
Ruby
Raw Normal View History

Add `$LOAD_PATH` for RuboCop cops.
2018-09-02 23:30:07 +02:00
require "pathname"
Fix mutable constants violations.
2019-04-19 21:46:20 +09:00
HOMEBREW_LIBRARY_PATH = Pathname(__dir__).realpath.freeze
Add `$LOAD_PATH` for RuboCop cops.
2018-09-02 23:30:07 +02:00
rubocop: enable Style/IfUnlessModifier.
2019-02-19 13:11:32 +00:00
$LOAD_PATH.push(HOMEBREW_LIBRARY_PATH.to_s) unless $LOAD_PATH.include?(HOMEBREW_LIBRARY_PATH.to_s)
Use Bundler to manage vendor directory Rather than having to manually keep track of what version each thing in here is and copy files around by hand on update let's use Bundler's standalone mode and careful use of `.gitignore` to help us do it. This means a `bundle update --standalone` will allow us to update all gems in vendor. We could consider vendoring other gems this way in future but I'd suggest only doing this for gems with no dependencies or at least gems with no native extensions. The only gem this applies to that we currently use is `ruby-prof` and I'm not convinced it's widely used enough to warrant vendoring for everyone. Perhaps that's another criteria: it should be functionality that's used by non-developer commands and/or normal Homebrew usage.
2018-09-13 15:24:18 +01:00
Move all gems to vendor/bundle, remove vendor/bundle-standlone.
2019-02-21 15:41:42 +00:00
require "vendor/bundle/bundler/setup"
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 448ms Template: 14ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API