Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
d39280bd
Commit
d39280bd
authored
12 years ago
by
Mike McQuaid
Browse files
Options
Downloads
Patches
Plain Diff
Add current Ruby globals.
Allows access to the Ruby path. Needed for Linux porting.
parent
cac86a4f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/extend/fileutils.rb
+2
-4
2 additions, 4 deletions
Library/Homebrew/extend/fileutils.rb
Library/Homebrew/formula_installer.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/formula_installer.rb
Library/Homebrew/global.rb
+5
-0
5 additions, 0 deletions
Library/Homebrew/global.rb
with
8 additions
and
5 deletions
Library/Homebrew/extend/fileutils.rb
+
2
−
4
View file @
d39280bd
...
...
@@ -81,13 +81,11 @@ module FileUtils extend self
end
end
RUBY_BIN
=
'/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin'
def
rake
*
args
system
"
#{
RUBY_BIN
}
/rake
"
,
*
args
system
RUBY_BIN
/
'
rake
'
,
*
args
end
def
ruby
*
args
system
"
#{
RUBY_
BIN
}
/ruby"
,
*
args
system
RUBY_
PATH
,
*
args
end
end
This diff is collapsed.
Click to expand it.
Library/Homebrew/formula_installer.rb
+
1
−
1
View file @
d39280bd
...
...
@@ -285,7 +285,7 @@ class FormulaInstaller
begin
read
.
close
exec
'/usr/bin/nice'
,
'/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby'
,
RUBY_PATH
,
'-W0'
,
'-I'
,
Pathname
.
new
(
__FILE__
).
dirname
,
'-rbuild'
,
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/global.rb
+
5
−
0
View file @
d39280bd
...
...
@@ -7,6 +7,7 @@ require 'extend/object'
require
'utils'
require
'exceptions'
require
'set'
require
'rbconfig'
ARGV
.
extend
(
HomebrewArgvExtension
)
...
...
@@ -63,6 +64,10 @@ end
HOMEBREW_LOGS
=
Pathname
.
new
(
'~/Library/Logs/Homebrew/'
).
expand_path
RUBY_CONFIG
=
RbConfig
::
CONFIG
RUBY_BIN
=
Pathname
.
new
(
"
#{
RUBY_CONFIG
[
'bindir'
]
}
"
)
RUBY_PATH
=
RUBY_BIN
/
RUBY_CONFIG
[
'ruby_install_name'
]
+
RUBY_CONFIG
[
'EXEEXT'
]
if
RUBY_PLATFORM
=~
/darwin/
MACOS_FULL_VERSION
=
`/usr/bin/sw_vers -productVersion`
.
chomp
MACOS_VERSION
=
/(10\.\d+)(\.\d+)?/
.
match
(
MACOS_FULL_VERSION
).
captures
.
first
.
to_f
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment