Logo
Explore Help
Sign In
mirrors/brew
1
0
Fork 0
You've already forked brew
mirror of https://github.com/Homebrew/brew.git synced 2025-07-14 16:09:03 +08:00
Code Issues Packages Projects Releases Wiki Activity
brew/Library/Homebrew/head_software_spec.rb

18 lines
366 B
Ruby
Raw Normal View History

Bump some files to Sorbet `typed: strict`
2025-04-19 22:22:42 +01:00
# typed: strict
Split up SoftwareSpec This came up in the AGM and has bothered me for years: let's actually split out `software_spec.rb` into one file per class, as is more typical in Ruby. This will make these classes easier to find.
2025-02-04 16:27:39 +00:00
# frozen_string_literal: true
require "software_spec"
class HeadSoftwareSpec < SoftwareSpec
Bump some files to Sorbet `typed: strict`
2025-04-19 22:22:42 +01:00
sig { params(flags: T::Array[String]).void }
Split up SoftwareSpec This came up in the AGM and has bothered me for years: let's actually split out `software_spec.rb` into one file per class, as is more typical in Ruby. This will make these classes easier to find.
2025-02-04 16:27:39 +00:00
def initialize(flags: [])
super
@resource.version(Version.new("HEAD"))
end
Bump some files to Sorbet `typed: strict`
2025-04-19 22:22:42 +01:00
sig { params(_filename: Pathname).returns(NilClass) }
Split up SoftwareSpec This came up in the AGM and has bothered me for years: let's actually split out `software_spec.rb` into one file per class, as is more typical in Ruby. This will make these classes easier to find.
2025-02-04 16:27:39 +00:00
def verify_download_integrity(_filename)
# no-op
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 247ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API