aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/global.rb
AgeCommit message (Collapse)Author
2015-04-21Inline error messageJack Nagel
2014-12-08Document Formula attributes.Mike McQuaid
The beginnings of some decent API documentation. Also, tweak `.yardopts` to better fix our internal style.
2014-07-21Ruby 1.8 doesn't have the \h regexp metacharacterJack Nagel
2014-07-19Improve pull request URL regexpJack Nagel
- use a regexp literal and avoid escaping forward slashes - escape the period in "github.com" - match only hex characters in the commit part - allow hyphen in usernames and repo names, matching what we allow for tap names - avoid unnecessary capture
2014-07-12Linuxbrew: Move ISSUES_URL to os from globalShaun Jackman
Closes Homebrew/linuxbrew#103 Closes #30830. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-06Give the cache the same permissions as the installer doesJack Nagel
2014-07-06Extend with a module instead of aliasing on the singleton classJack Nagel
2014-07-06Remove inaccurate commentJack Nagel
2014-06-19Only "extend self" once on the Homebrew moduleJack Nagel
2014-06-09Use RbConfig.ruby if it's availableJack Nagel
2014-06-07Eliminate FORMULA_META_FILES constantJack Nagel
2014-05-14Taps: cleanup regexps around TapsTsukasa OMOTO
Closes #29139. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-03The \w character class already includes underscoreJack Nagel
Newer versions of Ruby issue a warning for repeated character classes.
2014-04-24Make the on-disk representation of taps unambiguousTsukasa OMOTO
This commit supports "-" and "_" in names of user and repository. Closes #28203. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-12-14Update string references to mxcl/homebrew.Mike McQuaid
2013-12-14Extract HOMEBREW_TEMP constantJack Nagel
2013-10-31Allow configuring HOMEBREW_LOGS.Mike McQuaid
2013-10-30Cleanup use of some global constants.Mike McQuaid
2013-10-30global: add more tap regexes.Mike McQuaid
2013-10-25Stop coercing MACOS_VERSION to a floatJack Nagel
2013-10-23global: further limit tap formula regex.Mike McQuaid
2013-10-22Different regex for user/tap/formula and user/tap.Mike McQuaid
Closes #23430.
2013-10-21global: unify tap regex.Mike McQuaid
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-18Add OS.mac? and OS.linux?Jack Nagel
2013-10-10git_etc: update based on bottle etc/var changes.Mike McQuaid
2013-09-19Homebrew 0.9.5Adam Vandenberg
Update version due to recent compiler selection fixes.
2013-09-07Optionally use git to keep brew etc versioned.Mike McQuaid
Still in alpha state. Handles defaults and merging changes with new versions. Enable by setting the HOMEBREW_GIT_ETC environment variable. Closes #15751. Closes #17713.
2013-08-19Use File::PATH_SEPARATOR globally instead of ':'Amos Wenger
On Unix, the path separator is ':', whereas on Windows, it is ';'. This is the first of a series of patch to bring macbrew's and winbrew's codebases closer together. The main places the magic constant ':' was being used were: - the $PATH environment variable - CMAKE-related environment variables - pkg-config related environment variables Closes #21921. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-07-28RbConfig::CONFIG['bindir'] is already a stringJack Nagel
2013-06-14Simplify setting MACOS_VERSIONJack Nagel
2013-06-08Consolidate sudo checks.Adam Vandenberg
Closes #20318.
2013-06-08Add Enumerable#group_byJack Nagel
2013-06-04Extract attr_rw from Formula for reuseJack Nagel
Closes #20239.
2013-06-02Update pull request regex name to include commits.Mike McQuaid
2013-05-22Added support for a GitHub Personal API Access tokenDaniel Lee Harple
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-10Reorganize compatJack Nagel
2013-04-07Define RUBY_PATH for testsJack Nagel
2013-04-06mxcl.github.com/homebrew => brew.shJack Nagel
2013-04-01Requirement: env DSL is evaluated in context of self, not ENVJack Nagel
This was meant to support: env do |req| append_path 'PATH', req.some_method ... end i.e., the block was evaluated in the context of ENV. But it turned out to be not so useful after all, so I'm ripping it out before something actually depends on it.
2013-03-21Replace remaining shelled-out `which`esMisty De Meo
2013-03-11Add current Ruby globals.Mike McQuaid
Allows access to the Ruby path. Needed for Linux porting.
2013-02-05brew-pull: fix third-party tapsEashwar Ranganathan
Closes #17588. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-01-290.9.4: optional/recommended supportAdam Vandenberg
2013-01-21Object#instance_exec for Ruby 1.8.6Jack Nagel
Not thread safe! But I don't think we care. We want to evaluate the env DSL block in the context of ENV for asthetic reasons, but we also want access to methods on the requirement instance. We can use #instance_exec to pass the requirement itself into the block: class Foo < Requirement env do |req| append 'PATH', req.some_path end def some_path which 'something' end end Also add a simplified version of Object#instance_exec for Ruby 1.8.6.
2013-01-09Define Symbol#to_proc for Ruby 1.8.6Jack Nagel
Ruby 1.8.6 doesn't have Symbol#to_proc, which allows things like map(&:to_s) rather than map { |o| o.to_s }. 1.8.7 does, though, and since it is used in a bunch of the superenv code we should attempt to keep it compatible with 1.8.6. Closes #16046.
2012-11-25brew-test-bot: general cleanup.Mike McQuaid
2012-11-11Use a class for FORMULA_META_FILESAdam Vandenberg
* lets more text types get picked up * better filter for `brew list`
2012-10-28Homebrew should not ignore curlrcStephen Nelson
Added doctor check for .curlrc rather than silently ignoring it (#13836). Closes #15419. Signed-off-by: Max Howell <mxcl@me.com> Removed test in doctor where it actually curl'd a file. It's enough to warn if the curlrc exists. I understand people want to remove the warnings, but the point in the doctor is to help diagnose and not to be some ramification of your UNIX system.
2012-10-03Fix use of ISSUES_URL.Mike McQuaid
2012-09-27Make FileUtils extension available globallyJack Nagel
Now that we are monkeypatching copy_metadata, we should load our extension up front for consistency. Signed-off-by: Jack Nagel <jacknagel@gmail.com>