| Age | Commit message (Collapse) | Author |
|
|
|
|
|
This requires updating to Rubocop 0.49.0 which will require some fixes
to rules, in Homebrew/brew and Homebrew/homebrew-core but opening this
for now so I remember.
|
|
|
|
|
|
|
|
indentation level is gsubbed, change test_undent to reflect change and add test_undent_nested to test new behavior
|
|
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
|
|
refs. Homebrew/linuxbrew#438, mistydemeo/tigerbrew#327,
mistydemeo/tigerbrew#334
|
|
Closes Homebrew/homebrew#32649.
Closes Homebrew/homebrew#32703.
|
|
|
|
- use literal syntax
- escape interpolated variables
- remove intermediate variables
- remove unnecessary capture
|
|
Without it, String#undent would fail on unindented strings, e.g.:
"foo".undent
NoMethodError: undefined method `length' for nil:NilClass`
Closes Homebrew/homebrew#28873.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|
|
I'm tired of not remembering if start_with?/end_with? are portable, so
just add them both if they're not defined.
|
|
It is supposed to accept a variable number of prefixes, and also to
check if they are convertible to strings. This matches behavior
documented in RubySpec.
|
|
|
|
|
|
|
|
This is coming up a lot at the moment, so here is an attempt to be more helpful.
|
|
|
|
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
|
|
This is needed for Ruby 1.9.x compatibility, but we still don't support
running Homebrew with anything other than a system provided 1.8.[67].
Fixes Homebrew/homebrew#6546
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
This allows its use in Leopard, which has Ruby 1.8.6.
|
|
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
|
|
|