Add license to formula DSL
This commit is contained in:
		
							parent
							
								
									342b957824
								
							
						
					
					
						commit
						b07685291b
					
				@ -351,6 +351,9 @@ class Formula
 | 
				
			|||||||
  # @see .desc=
 | 
					  # @see .desc=
 | 
				
			||||||
  delegate desc: :"self.class"
 | 
					  delegate desc: :"self.class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # The SPDX ID of the software license.
 | 
				
			||||||
 | 
					  delegate license: :"self.class"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  # The homepage for the software.
 | 
					  # The homepage for the software.
 | 
				
			||||||
  # @method homepage
 | 
					  # @method homepage
 | 
				
			||||||
  # @see .homepage=
 | 
					  # @see .homepage=
 | 
				
			||||||
@ -1678,6 +1681,7 @@ class Formula
 | 
				
			|||||||
      "aliases"                  => aliases.sort,
 | 
					      "aliases"                  => aliases.sort,
 | 
				
			||||||
      "versioned_formulae"       => versioned_formulae.map(&:name),
 | 
					      "versioned_formulae"       => versioned_formulae.map(&:name),
 | 
				
			||||||
      "desc"                     => desc,
 | 
					      "desc"                     => desc,
 | 
				
			||||||
 | 
					      "license"                  => license,
 | 
				
			||||||
      "homepage"                 => homepage,
 | 
					      "homepage"                 => homepage,
 | 
				
			||||||
      "versions"                 => {
 | 
					      "versions"                 => {
 | 
				
			||||||
        "stable" => stable&.version&.to_s,
 | 
					        "stable" => stable&.version&.to_s,
 | 
				
			||||||
@ -2199,6 +2203,13 @@ class Formula
 | 
				
			|||||||
    # <pre>desc "Example formula"</pre>
 | 
					    # <pre>desc "Example formula"</pre>
 | 
				
			||||||
    attr_rw :desc
 | 
					    attr_rw :desc
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    # @!attribute [w]
 | 
				
			||||||
 | 
					    # The SPDX ID of the open-source license that the formula uses.
 | 
				
			||||||
 | 
					    # Shows when running `brew info`.
 | 
				
			||||||
 | 
					    #
 | 
				
			||||||
 | 
					    # <pre>license " BSD-2-Clause"</pre>
 | 
				
			||||||
 | 
					    attr_rw :license
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # @!attribute [w] homepage
 | 
					    # @!attribute [w] homepage
 | 
				
			||||||
    # The homepage for the software. Used by users to get more information
 | 
					    # The homepage for the software. Used by users to get more information
 | 
				
			||||||
    # about the software and Homebrew maintainers as a point of contact for
 | 
					    # about the software and Homebrew maintainers as a point of contact for
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user