commit
e985986835
@ -13,7 +13,15 @@ class FormulaInfo
|
|||||||
# Looks up formula on disk and reads its info.
|
# Looks up formula on disk and reads its info.
|
||||||
# Returns nil if formula is absent or if there was an error reading it.
|
# Returns nil if formula is absent or if there was an error reading it.
|
||||||
def self.lookup(name)
|
def self.lookup(name)
|
||||||
json = Utils.popen_read(HOMEBREW_BREW_FILE, "info", "--json=v1", name)
|
json = Utils.popen_read(
|
||||||
|
RUBY_PATH,
|
||||||
|
"-W0",
|
||||||
|
"-I", $LOAD_PATH.join(File::PATH_SEPARATOR),
|
||||||
|
HOMEBREW_LIBRARY_PATH/"brew.rb",
|
||||||
|
"info",
|
||||||
|
"--json=v1",
|
||||||
|
name
|
||||||
|
)
|
||||||
|
|
||||||
return unless $CHILD_STATUS.success?
|
return unless $CHILD_STATUS.success?
|
||||||
|
|
||||||
|
|||||||
@ -21,6 +21,7 @@ describe Hardware::CPU do
|
|||||||
describe "::family" do
|
describe "::family" do
|
||||||
let(:cpu_families) {
|
let(:cpu_families) {
|
||||||
[
|
[
|
||||||
|
:arm,
|
||||||
:arrandale,
|
:arrandale,
|
||||||
:atom,
|
:atom,
|
||||||
:broadwell,
|
:broadwell,
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
testball_bottle-0.1.yosemite.bottle.tar.gz
|
||||||
@ -0,0 +1 @@
|
|||||||
|
testball_bottle-0.1.yosemite.bottle.tar.gz
|
||||||
@ -0,0 +1 @@
|
|||||||
|
testball_bottle-0.1.yosemite.bottle.tar.gz
|
||||||
@ -1 +1 @@
|
|||||||
/usr/local/Homebrew/Library/Homebrew/test/support/fixtures/bottles/testball_bottle-0.1.yosemite.bottle.tar.gz
|
testball_bottle-0.1.yosemite.bottle.tar.gz
|
||||||
Loading…
x
Reference in New Issue
Block a user