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
991f5408
Commit
991f5408
authored
10 years ago
by
Jack Nagel
Browse files
Options
Downloads
Patches
Plain Diff
Doc most DSL methods as write-only
The public readers for these attributes are on the instance, not the class.
parent
85dfece1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Library/Homebrew/formula.rb
+6
-6
6 additions, 6 deletions
Library/Homebrew/formula.rb
with
6 additions
and
6 deletions
Library/Homebrew/formula.rb
+
6
−
6
View file @
991f5408
...
...
@@ -777,7 +777,7 @@ class Formula
# @private
attr_reader
:keg_only_reason
# @!attribute [
r
w]
# @!attribute [w]
# The homepage for the software. Used by users to get more information
# about the software and Homebrew maintainers as a point of contact for
# e.g. submitting patches.
...
...
@@ -792,7 +792,7 @@ class Formula
# @private
attr_reader
:plist_manual
# @!attribute [
r
w]
# @!attribute [w]
# Used for creating new Homebrew versions of software without new upstream
# versions. For example, if we bump the major version of a library this
# {Formula} {.depends_on} then we may need to update the `revision` of this
...
...
@@ -806,7 +806,7 @@ class Formula
@specs
||=
[
stable
,
devel
,
head
].
freeze
end
# @!attribute [
r
w] url
# @!attribute [w] url
# The URL used to download the source for the {#stable} version of the formula.
# We prefer `https` for security and proxy reasons.
def
url
val
,
specs
=
{}
...
...
@@ -821,7 +821,7 @@ class Formula
stable
.
version
(
val
)
end
# @!attribute [
r
w] mirror
# @!attribute [w] mirror
# Additional URLs for the {#stable} version of the formula.
# These are only used if the {.url} fails to download. It's optional and
# there can be more than one. Generally we add them when the main {.url}
...
...
@@ -831,14 +831,14 @@ class Formula
stable
.
mirror
(
val
)
end
# @!attribute [
r
w] sha1
# @!attribute [w] sha1
# @scope class
# To verify the {#cached_download}'s integrity and security we verify the
# SHA-1 hash matches what we've declared in the {Formula}. To quickly fill
# this value you can leave it blank and run `brew fetch --force` and it'll
# tell you the currently valid value.
# @!attribute [
r
w] sha256
# @!attribute [w] sha256
# @scope class
# Similar to {.sha1} but using a SHA-256 hash instead.
...
...
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