Jack Nagel
83f2ee5aea
Use RbConfig.ruby if it's available
2014-06-09 21:36:36 -05:00
Jack Nagel
fdcbc5e4db
Only do formula class sanity checks once
2014-06-09 19:55:31 -05:00
Jack Nagel
14aa1de33c
Fix warning under Ruby 2.2
2014-06-09 15:04:15 -05:00
Jack Nagel
e3f082c294
Stop joining symbols to pathnames
...
Ruby 2.2's native Pathname#/ accepts only string-like objects.
2014-06-09 14:57:21 -05:00
Jack Nagel
974b7e71ef
Use opt shortcut methods
2014-06-09 14:57:21 -05:00
Jack Nagel
13355c76ac
Fix formula test helper parameters
2014-06-09 14:46:30 -05:00
Jack Nagel
fb3f95923b
Just access the ivar directly
2014-06-08 20:04:16 -05:00
Jack Nagel
d27dc1d02f
Work around encoding issue in Pathname#inspect on Ruby 2.0
...
Pathname#inspect on Ruby 2.0 throws away the encoding of the object's
underlying string and returns a string tagged as ASCII-8BIT.
If you simply write
puts Pathname.new("some string with non-ascii bytes").inspect
no error will be raised, because the implementation of Pathname#inspect
does not call into Object#inspect.
However, if you wrap that pathname object in an array first, then
puts [Pathname.new("some string with non-ascii bytes")].inspect
will raise Encoding::CompatibilityError: "inspected result must be ASCII
only or use the same encoding with default external".
Raising an error in this codepath is new in Ruby 2.0, and this specific
bug is fixed in Ruby 2.1. I've opened a bug upstream:
https://bugs.ruby-lang.org/issues/9915
Fixes Homebrew/homebrew#29947 .
2014-06-08 20:00:52 -05:00
Jack Nagel
6d0f0cb195
metafiles: simplify #copy? further
2014-06-07 23:40:28 -05:00
Jack Nagel
07257f2f48
Simplify Pathname#install_metafiles
2014-06-07 21:15:56 -05:00
Jack Nagel
fcacb25cd5
Eliminate FORMULA_META_FILES constant
2014-06-07 21:15:56 -05:00
Jack Nagel
fef866aae4
metafiles: combine #should_copy? and #include?
2014-06-07 21:15:55 -05:00
Jack Nagel
3aa75f5e18
metafiles: remove unused method
2014-06-07 21:15:55 -05:00
Jack Nagel
e2c79aaea4
metafiles: extract constant arrays
2014-06-07 21:15:54 -05:00
Jack Nagel
6524dfc17b
metafiles: reduce pathname conversions in #include?
2014-06-07 21:15:24 -05:00
Jack Nagel
cad5704fc7
Update build error config dump for Ruby 2.0
2014-06-07 15:57:17 -05:00
Geoffrey Oxberry
1d120c3f29
gromacs: move to homebrew-science
...
Closes Homebrew/homebrew#29880 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-07 08:47:35 +01:00
Geoffrey Oxberry
1e4a7a43f7
cantera: move to homebrew-science
2014-06-07 08:47:35 +01:00
Geoffrey Oxberry
740d6f67cd
sundials: move to homebrew-science
2014-06-07 08:47:35 +01:00
Shaun Jackman
94a0b26fec
Linuxbrew: Read CPU flags from /proc/cpuinfo
...
Closes Homebrew/homebrew#29895 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-06 19:47:16 +01:00
James Wald
98e5bd8198
Find vim on the path
...
If vim is on the path, it will be used instead of `/usr/bin/vim`.
Closes Homebrew/homebrew#29885 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-05 23:56:52 -05:00
Jack Nagel
a87fe8cd36
Remove tmap
...
Closes Homebrew/homebrew#29744 .
2014-06-04 22:36:59 -05:00
Jack Nagel
3c9523516b
Clean up some test assertions
2014-06-04 16:31:57 -05:00
Jack Nagel
d0be32f60b
Rescue Minitest::Assertion under Ruby 2.0
2014-06-04 15:38:33 -05:00
Jack Nagel
62e79c8d09
audit: read formula text in binmode
2014-06-04 15:37:36 -05:00
Shaun Jackman
12b5de391e
hardware: Add Intel CPUs to OPTIMIZATION_FLAGS
...
Closes Homebrew/homebrew#29866 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-06-04 07:26:18 -07:00
Trent Ogren
790657f61f
Update latest XQuartz version
...
See https://xquartz.macosforge.org/landing/
Closes Homebrew/homebrew#29826 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-06-04 10:01:04 +01:00
Jack Nagel
d29d5d7e92
Fix some places where encoding issues manifest on ruby 2.0
2014-06-04 01:37:56 -05:00
Misty De Meo
8cb980f7be
doctor: Add check for install_name_tool
...
Closes Homebrew/homebrew#29593 .
2014-06-03 22:50:37 -07:00
Dave Cottlehuber
bd05334487
test: improve docs for when using HEAD or similar flags
...
Closes Homebrew/homebrew#29791 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-06-03 20:17:45 -07:00
dgwakeman
68f27922bc
add homebrew to Tex requirement
...
Closes Homebrew/homebrew#29834 .
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-06-03 20:01:35 -07:00
Andy Blyler
6bbe82062e
Add yosemite to mac versions
...
Closes Homebrew/homebrew#29823 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03 15:06:46 -05:00
Jack Nagel
d3e19b1504
Simplify MacOS.version.to_sym
2014-06-03 11:32:26 -05:00
Jack Nagel
f1808cd66d
Don't coerce value to string unnecessarily
2014-06-03 11:32:26 -05:00
Jack Nagel
0e0bee9c50
Update ruby version doctor check
2014-06-03 11:04:07 -05:00
Jack Nagel
6e616b29c5
Use a || b
2014-06-03 09:43:27 -05:00
Shaun Jackman
bd682d5519
Treat HOMEBREW_CC the same as --cc
...
Closes Homebrew/homebrew#29762 .
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03 09:43:27 -05:00
Shaun Jackman
6e56009217
HOMEBREW_CC: Remove COMPILER_ALIASES
...
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2014-06-03 09:43:21 -05:00
Jack Nagel
0133afe6f8
Remove unnecessary use of Dir[]
2014-06-01 15:27:40 -05:00
Jack Nagel
0445318494
Remove no-op directory traversal
2014-06-01 15:27:40 -05:00
Jack Nagel
90526f92eb
Remove jstalk
...
Closes Homebrew/homebrew#29720 .
2014-06-01 00:17:44 -05:00
Jack Nagel
a023f10310
Use Pathname.glob when we want pathname objects
2014-05-31 23:53:51 -05:00
Jack Nagel
bf365fc23b
Prefer Dir.glob when iterating over the result
2014-05-31 23:53:36 -05:00
Jack Nagel
099c8c15ae
Deprecate implicit build-time requirements
2014-05-30 18:16:56 -05:00
Jack Nagel
4c6defbcf6
Remove build attribute from Xcode dep
2014-05-30 17:23:15 -05:00
Jack Nagel
355361fa3f
Remove build flag from ant dep
2014-05-30 15:33:57 -05:00
Jack Nagel
c6c7623591
Prefer Dir[] to Dir.glob when not passing a block
2014-05-30 12:41:12 -05:00
Jack Nagel
6c3c5b0a84
Loosen GCC version regexp to allow for custom version strings
2014-05-28 22:46:05 -05:00
Jack Nagel
375c073cec
Remove unused attribute
2014-05-28 19:02:30 -05:00
Jack Nagel
9821316ec1
Remove unused method and associated test fixtures
2014-05-28 18:48:38 -05:00