Xu Cheng
78a7dea3a0
add brew command
...
Closes Homebrew/homebrew#41034 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2015-07-03 14:22:38 +08:00
Jack Nagel
ec1727a1be
Remove backports for Ruby 1.8.6
...
refs. Homebrew/linuxbrew#438 , mistydemeo/tigerbrew#327 ,
mistydemeo/tigerbrew#334
2015-06-19 22:20:47 -04:00
Jack Nagel
f4027cc9ac
"Mac OS X" -> "OS X" in copy
2015-06-16 20:02:10 -04:00
Jack Nagel
0397d68259
Extract runtime configuration from global.rb
...
This allows global.rb to be safely loaded in the test environment.
2015-04-29 19:15:11 -04:00
Jack Nagel
d4c8f83381
Inline error message
2015-04-21 20:46:02 -04:00
Mike McQuaid
858f7fb529
Document Formula attributes.
...
The beginnings of some decent API documentation.
Also, tweak `.yardopts` to better fix our internal style.
2014-12-08 12:41:50 +00:00
Jack Nagel
2b1b7ef0e4
Ruby 1.8 doesn't have the \h regexp metacharacter
2014-07-21 17:27:37 -05:00
Jack Nagel
26b8c5a27d
Improve pull request URL regexp
...
- 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-19 20:25:32 -05:00
Shaun Jackman
1fb1677532
Linuxbrew: Move ISSUES_URL to os from global
...
Closes Homebrew/linuxbrew#103
Closes Homebrew/homebrew#30830 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-07-12 15:39:59 -05:00
Jack Nagel
3952a4acc6
Give the cache the same permissions as the installer does
2014-07-06 22:06:09 -05:00
Jack Nagel
d5a01de8e3
Extend with a module instead of aliasing on the singleton class
2014-07-06 22:05:53 -05:00
Jack Nagel
dd3446ded1
Remove inaccurate comment
2014-07-06 21:59:58 -05:00
Jack Nagel
10a1952d2c
Only "extend self" once on the Homebrew module
2014-06-19 13:10:36 -05:00
Jack Nagel
83f2ee5aea
Use RbConfig.ruby if it's available
2014-06-09 21:36:36 -05:00
Jack Nagel
fcacb25cd5
Eliminate FORMULA_META_FILES constant
2014-06-07 21:15:56 -05:00
Tsukasa OMOTO
d1f15e967b
Taps: cleanup regexps around Taps
...
Closes Homebrew/homebrew#29139 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-05-14 11:12:51 -05:00
Jack Nagel
d8c15c8fbf
The \w character class already includes underscore
...
Newer versions of Ruby issue a warning for repeated character classes.
2014-05-03 15:03:22 -05:00
Tsukasa OMOTO
54004a4759
Make the on-disk representation of taps unambiguous
...
This commit supports "-" and "_" in names of user and repository.
Closes Homebrew/homebrew#28203 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-04-24 17:10:41 -05:00
Mike McQuaid
d7c13f84b6
Update string references to mxcl/homebrew.
2013-12-14 18:18:35 +00:00
Jack Nagel
c6c7b9b165
Extract HOMEBREW_TEMP constant
2013-12-14 09:35:58 -06:00
Mike McQuaid
d311fe666c
Allow configuring HOMEBREW_LOGS.
2013-10-31 17:02:20 -07:00
Mike McQuaid
d9d2443d5d
Cleanup use of some global constants.
2013-10-30 13:20:48 -07:00
Mike McQuaid
202c6ef826
global: add more tap regexes.
2013-10-30 11:19:46 -07:00
Jack Nagel
e67286369e
Stop coercing MACOS_VERSION to a float
2013-10-25 17:29:36 -05:00
Mike McQuaid
57e541f040
global: further limit tap formula regex.
2013-10-23 12:59:42 +01:00
Mike McQuaid
98b28f5ac3
Different regex for user/tap/formula and user/tap.
...
Closes Homebrew/homebrew#23430 .
2013-10-22 11:58:40 +01:00
Mike McQuaid
077f09e4ea
global: unify tap regex.
...
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-10-21 18:53:24 +01:00
Jack Nagel
c511d7d2f4
Add OS.mac? and OS.linux?
2013-10-18 12:56:51 -05:00
Mike McQuaid
a6e2245732
git_etc: update based on bottle etc/var changes.
2013-10-10 16:46:47 +01:00
Adam Vandenberg
bda0a3102f
Homebrew 0.9.5
...
Update version due to recent compiler selection fixes.
2013-09-19 23:10:09 -07:00
Mike McQuaid
ab20ed0bc2
Optionally use git to keep brew etc versioned.
...
Still in alpha state.
Handles defaults and merging changes with new versions.
Enable by setting the HOMEBREW_GIT_ETC environment variable.
Closes Homebrew/homebrew#15751 .
Closes Homebrew/homebrew#17713 .
2013-09-07 13:39:43 +01:00
Amos Wenger
52ace99f14
Use File::PATH_SEPARATOR globally instead of ':'
...
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 Homebrew/homebrew#21921 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-08-19 13:35:44 -05:00
Jack Nagel
325db99a3c
RbConfig::CONFIG['bindir'] is already a string
2013-07-28 16:43:22 -05:00
Jack Nagel
9e771b0e34
Simplify setting MACOS_VERSION
2013-06-14 19:19:25 -05:00
Adam Vandenberg
4c9ac19e87
Consolidate sudo checks.
...
Closes Homebrew/homebrew#20318 .
2013-06-08 20:44:56 -07:00
Jack Nagel
80745a97e2
Add Enumerable#group_by
2013-06-08 12:23:14 -05:00
Jack Nagel
b97b013fce
Extract attr_rw from Formula for reuse
...
Closes Homebrew/homebrew#20239 .
2013-06-04 11:06:18 -05:00
Mike McQuaid
bec7ff9807
Update pull request regex name to include commits.
2013-06-02 12:49:37 +01:00
Daniel Lee Harple
08388b149e
Added support for a GitHub Personal API Access token
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2013-05-22 19:53:05 -05:00
Jack Nagel
3be67f7252
Reorganize compat
2013-05-10 23:27:28 -05:00
Jack Nagel
9013b3a0c9
Define RUBY_PATH for tests
2013-04-07 20:59:52 -05:00
Jack Nagel
d4a8813e86
mxcl.github.com/homebrew => brew.sh
2013-04-06 15:51:03 -05:00
Jack Nagel
1b0f0824fe
Requirement: env DSL is evaluated in context of self, not ENV
...
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-04-01 16:17:35 -05:00
Misty De Meo
29af53d451
Replace remaining shelled-out which
es
2013-03-21 08:37:51 -05:00
Mike McQuaid
d39280bdf7
Add current Ruby globals.
...
Allows access to the Ruby path. Needed for Linux
porting.
2013-03-11 18:26:25 +00:00
Eashwar Ranganathan
a79721e59d
brew-pull: fix third-party taps
...
Closes Homebrew/homebrew#17588 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2013-02-05 20:14:10 -08:00
Adam Vandenberg
2ad5069bab
0.9.4: optional/recommended support
2013-01-29 11:57:07 -08:00
Jack Nagel
2503cedf2c
Object#instance_exec for Ruby 1.8.6
...
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-21 17:24:11 -06:00
Jack Nagel
0949d952dc
Define Symbol#to_proc for Ruby 1.8.6
...
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 Homebrew/homebrew#16046 .
2013-01-09 17:36:17 -06:00
Mike McQuaid
4c1b546d99
brew-test-bot: general cleanup.
2012-11-25 21:03:57 +00:00