brew-vulns 0.2.2 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: def22990a8238cc399cb69619db068f1f21d556629fe25a3981d0982d61b01ef
4
- data.tar.gz: 3d312ead98bf8ead3107c96bb3ab5281a19c84149ceb36cc94b28ed7bb55959e
3
+ metadata.gz: be255fe2f38fdc4f92a35543e5164f3d4ebca6e8fdcbd18226d2f71b9fc630de
4
+ data.tar.gz: e0ee3ea8b1327ebff1fef3dbfc441fafe661d26482d59e37c1574c472d58b365
5
5
  SHA512:
6
- metadata.gz: b08361df563690652cfdf979a25b745330dd3eb3b4f907f3a801f3aaca4ddf59650cf715796bd1fb9327e88a1d06b18743ce694c1008c373e7dad5ce7108f818
7
- data.tar.gz: a44bb1deeeed685c2453a2a12eec32585c09d1351fedff501dd5b35e638e7416b71bdeea4a6b88ebb903309b4bc332ed403579032c2488e607b703cfe7eb6cb4
6
+ metadata.gz: 0e19f82e0b1b075245c696ddbf8ffb09c8beab175ec157214037182005b9af6fae8c942235b43694c4d7e54a5e79ba6735709d3e684d3441b9238e9d2d09d53d
7
+ data.tar.gz: 705abcdef8c8bb4b7795f7f5478751d0025397e5b64def2682cccce4bf63fa88d9d6bbfa55d7dd15a34826f3375ef6b6177f48a1ef384289a5d8fb917788f15d
data/.rubocop.yml ADDED
@@ -0,0 +1,234 @@
1
+ # This file is synced from `Homebrew/brew` by the `.github` repository, do not modify it directly.
2
+ ---
3
+ AllCops:
4
+ TargetRubyVersion: 3.4
5
+ NewCops: enable
6
+ Include:
7
+ - "**/*.rbi"
8
+ Exclude:
9
+ - Homebrew/sorbet/rbi/{annotations,dsl,gems}/**/*.rbi
10
+ - Homebrew/sorbet/rbi/parser*.rbi
11
+ - Homebrew/bin/*
12
+ - Homebrew/vendor/**/*
13
+ - Taps/*/*/vendor/**/*
14
+ - "**/.github/copilot-instructions.md"
15
+ - "**/vendor/**/*"
16
+ SuggestExtensions:
17
+ rubocop-minitest: false
18
+ Layout/ArgumentAlignment:
19
+ Exclude:
20
+ - Taps/*/*/*.rb
21
+ - "/**/Formula/**/*.rb"
22
+ - "**/Formula/**/*.rb"
23
+ Layout/CaseIndentation:
24
+ EnforcedStyle: end
25
+ Layout/FirstArrayElementIndentation:
26
+ EnforcedStyle: consistent
27
+ Layout/FirstHashElementIndentation:
28
+ EnforcedStyle: consistent
29
+ Layout/EndAlignment:
30
+ EnforcedStyleAlignWith: start_of_line
31
+ Layout/HashAlignment:
32
+ EnforcedHashRocketStyle: table
33
+ EnforcedColonStyle: table
34
+ Layout/IndentationWidth:
35
+ Enabled: false
36
+ Layout/LeadingCommentSpace:
37
+ Exclude:
38
+ - Taps/*/*/cmd/*.rb
39
+ Layout/LineLength:
40
+ Max: 118
41
+ AllowedPatterns:
42
+ - "#: "
43
+ - ' url "'
44
+ - ' mirror "'
45
+ - " plist_options "
46
+ - ' executable: "'
47
+ - ' font "'
48
+ - ' homepage "'
49
+ - ' name "'
50
+ - ' pkg "'
51
+ - ' pkgutil: "'
52
+ - " sha256 cellar: "
53
+ - " sha256 "
54
+ - "#{language}"
55
+ - "#{version."
56
+ - ' "/Library/Application Support/'
57
+ - "\"/Library/Caches/"
58
+ - "\"/Library/PreferencePanes/"
59
+ - ' "~/Library/Application Support/'
60
+ - "\"~/Library/Caches/"
61
+ - "\"~/Library/Containers"
62
+ - "\"~/Application Support"
63
+ - " was verified as official when first introduced to the cask"
64
+ Layout/SpaceAroundOperators:
65
+ Enabled: false
66
+ Layout/SpaceBeforeBrackets:
67
+ Exclude:
68
+ - "**/*_spec.rb"
69
+ - Taps/*/*/*.rb
70
+ - "/**/{Formula,Casks}/**/*.rb"
71
+ - "**/{Formula,Casks}/**/*.rb"
72
+ Lint/AmbiguousBlockAssociation:
73
+ Enabled: false
74
+ Lint/DuplicateBranch:
75
+ Exclude:
76
+ - Taps/*/*/*.rb
77
+ - "/**/{Formula,Casks}/**/*.rb"
78
+ - "**/{Formula,Casks}/**/*.rb"
79
+ Lint/ParenthesesAsGroupedExpression:
80
+ Exclude:
81
+ - Taps/*/*/*.rb
82
+ - "/**/Formula/**/*.rb"
83
+ - "**/Formula/**/*.rb"
84
+ Lint/UnusedMethodArgument:
85
+ AllowUnusedKeywordArguments: true
86
+ Metrics:
87
+ Enabled: false
88
+ Naming/BlockForwarding:
89
+ Enabled: false
90
+ Naming/FileName:
91
+ Regex: !ruby/regexp /^[\w\@\-\+\.]+(\.rb)?$/
92
+ Naming/HeredocDelimiterNaming:
93
+ ForbiddenDelimiters:
94
+ - END, EOD, EOF
95
+ Naming/InclusiveLanguage:
96
+ CheckStrings: true
97
+ FlaggedTerms:
98
+ slave:
99
+ AllowedRegex:
100
+ - gitslave
101
+ - log_slave
102
+ - ssdb_slave
103
+ - var_slave
104
+ - patches/13_fix_scope_for_show_slave_status_data.patch
105
+ Naming/MethodName:
106
+ AllowedPatterns:
107
+ - "\\A(fetch_)?HEAD\\?\\Z"
108
+ Naming/MethodParameterName:
109
+ inherit_mode:
110
+ merge:
111
+ - AllowedNames
112
+ Naming/PredicateMethod:
113
+ AllowBangMethods: true
114
+ Naming/VariableNumber:
115
+ Enabled: false
116
+ Style/AndOr:
117
+ EnforcedStyle: always
118
+ Style/ArgumentsForwarding:
119
+ Enabled: false
120
+ Style/AutoResourceCleanup:
121
+ Enabled: true
122
+ Style/BarePercentLiterals:
123
+ EnforcedStyle: percent_q
124
+ Style/BlockDelimiters:
125
+ BracesRequiredMethods:
126
+ - sig
127
+ Style/ClassAndModuleChildren:
128
+ Exclude:
129
+ - "**/*.rbi"
130
+ Style/CollectionMethods:
131
+ Enabled: true
132
+ Style/DisableCopsWithinSourceCodeDirective:
133
+ Enabled: true
134
+ Include:
135
+ - Taps/*/*/*.rb
136
+ - "/**/{Formula,Casks}/**/*.rb"
137
+ - "**/{Formula,Casks}/**/*.rb"
138
+ Style/Documentation:
139
+ Exclude:
140
+ - Taps/**/*
141
+ - "/**/{Formula,Casks}/**/*.rb"
142
+ - "**/{Formula,Casks}/**/*.rb"
143
+ - "**/*.rbi"
144
+ Style/EmptyMethod:
145
+ Exclude:
146
+ - "**/*.rbi"
147
+ Style/FetchEnvVar:
148
+ Exclude:
149
+ - Taps/*/*/*.rb
150
+ - "/**/Formula/**/*.rb"
151
+ - "**/Formula/**/*.rb"
152
+ Style/FrozenStringLiteralComment:
153
+ EnforcedStyle: always
154
+ Exclude:
155
+ - Taps/*/*/*.rb
156
+ - "/**/{Formula,Casks}/**/*.rb"
157
+ - "**/{Formula,Casks}/**/*.rb"
158
+ - Homebrew/test/**/Casks/**/*.rb
159
+ - "**/*.rbi"
160
+ - "**/Brewfile"
161
+ Style/GuardClause:
162
+ Exclude:
163
+ - Taps/*/*/*.rb
164
+ - "/**/{Formula,Casks}/**/*.rb"
165
+ - "**/{Formula,Casks}/**/*.rb"
166
+ Style/HashAsLastArrayItem:
167
+ Exclude:
168
+ - Taps/*/*/*.rb
169
+ - "/**/Formula/**/*.rb"
170
+ - "**/Formula/**/*.rb"
171
+ Style/InverseMethods:
172
+ InverseMethods:
173
+ :blank?: :present?
174
+ Style/InvertibleUnlessCondition:
175
+ Enabled: true
176
+ InverseMethods:
177
+ :==: :!=
178
+ :zero?:
179
+ :blank?: :present?
180
+ Style/ItBlockParameter:
181
+ EnforcedStyle: only_numbered_parameters
182
+ Style/MutableConstant:
183
+ EnforcedStyle: strict
184
+ Style/NumericLiteralPrefix:
185
+ EnforcedOctalStyle: zero_only
186
+ Style/NumericLiterals:
187
+ MinDigits: 11
188
+ Strict: true
189
+ Style/OpenStructUse:
190
+ Exclude:
191
+ - Taps/**/*
192
+ Style/OptionalBooleanParameter:
193
+ AllowedMethods:
194
+ - respond_to?
195
+ - respond_to_missing?
196
+ Style/RescueStandardError:
197
+ EnforcedStyle: implicit
198
+ Style/ReturnNil:
199
+ Enabled: true
200
+ Style/StderrPuts:
201
+ Enabled: false
202
+ Style/StringConcatenation:
203
+ Exclude:
204
+ - Taps/*/*/*.rb
205
+ - "/**/{Formula,Casks}/**/*.rb"
206
+ - "**/{Formula,Casks}/**/*.rb"
207
+ Style/StringLiterals:
208
+ EnforcedStyle: double_quotes
209
+ Style/StringLiteralsInInterpolation:
210
+ EnforcedStyle: double_quotes
211
+ Style/StringMethods:
212
+ Enabled: true
213
+ Style/SuperWithArgsParentheses:
214
+ Enabled: false
215
+ Style/SymbolArray:
216
+ EnforcedStyle: brackets
217
+ Style/TernaryParentheses:
218
+ EnforcedStyle: require_parentheses_when_complex
219
+ Style/TopLevelMethodDefinition:
220
+ Enabled: true
221
+ Exclude:
222
+ - Taps/**/*
223
+ Style/TrailingCommaInArguments:
224
+ EnforcedStyleForMultiline: comma
225
+ Style/TrailingCommaInArrayLiteral:
226
+ EnforcedStyleForMultiline: comma
227
+ Style/TrailingCommaInHashLiteral:
228
+ EnforcedStyleForMultiline: comma
229
+ Style/UnlessLogicalOperators:
230
+ Enabled: true
231
+ EnforcedStyle: forbid_logical_operators
232
+ Style/WordArray:
233
+ MinSize: 4
234
+
@@ -1,7 +1,7 @@
1
1
  class BrewVulns < Formula
2
2
  desc "Check Homebrew packages for known vulnerabilities via osv.dev"
3
- homepage "https://github.com/andrew/brew-vulns"
4
- url "https://github.com/andrew/brew-vulns/archive/refs/tags/v0.2.2.tar.gz"
3
+ homepage "https://github.com/Homebrew/homebrew-brew-vulns"
4
+ url "https://github.com/Homebrew/homebrew-brew-vulns/archive/refs/tags/v0.2.2.tar.gz"
5
5
  sha256 "64abf7791eb7d04312c1fda9dc49a73f3702f5716ce18506324ed9f401fe2514"
6
6
  license "MIT"
7
7
 
data/README.md CHANGED
@@ -7,8 +7,7 @@ A Homebrew subcommand that checks installed packages for known vulnerabilities u
7
7
  Via Homebrew:
8
8
 
9
9
  ```bash
10
- brew tap andrew/brew-vulns https://github.com/andrew/brew-vulns
11
- brew install brew-vulns
10
+ brew install homebrew/brew-vulns/brew-vulns
12
11
  ```
13
12
 
14
13
  Or via RubyGems:
@@ -182,7 +181,7 @@ This adds your Homebrew packages to the repository's dependency graph, enabling
182
181
  ## Development
183
182
 
184
183
  ```bash
185
- git clone https://github.com/andrewnesbitt/brew-vulns
184
+ git clone https://github.com/Homebrew/homebrew-brew-vulns
186
185
  cd brew-vulns
187
186
  bin/setup
188
187
  rake test
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ task :update_formula do
14
14
  require_relative "lib/brew/vulns/version"
15
15
 
16
16
  version = Brew::Vulns::VERSION
17
- url = "https://github.com/andrew/brew-vulns/archive/refs/tags/v#{version}.tar.gz"
17
+ url = "https://github.com/Homebrew/homebrew-brew-vulns/archive/refs/tags/v#{version}.tar.gz"
18
18
  formula_path = File.expand_path("Formula/brew-vulns.rb", __dir__)
19
19
 
20
20
  puts "Downloading #{url}..."
@@ -23,7 +23,7 @@ task :update_formula do
23
23
  puts "SHA256: #{sha256}"
24
24
 
25
25
  formula = File.read(formula_path)
26
- formula.gsub!(%r{url "https://github.com/andrew/brew-vulns/archive/refs/tags/v[^"]+\.tar\.gz"},
26
+ formula.gsub!(%r{url "https://github.com/Homebrew/homebrew-brew-vulns/archive/refs/tags/v[^"]+\.tar\.gz"},
27
27
  "url \"#{url}\"")
28
28
  formula.gsub!(/sha256 "[^"]+"/, "sha256 \"#{sha256}\"")
29
29
  File.write(formula_path, formula)
@@ -251,7 +251,7 @@ module Brew
251
251
  driver: Sarif::ToolComponent.new(
252
252
  name: "brew-vulns",
253
253
  version: VERSION,
254
- information_uri: "https://github.com/andrew/brew-vulns",
254
+ information_uri: "https://github.com/Homebrew/homebrew-brew-vulns",
255
255
  rules: rules.uniq { |r| r.id }
256
256
  )
257
257
  ),
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Brew
4
4
  module Vulns
5
- VERSION = "0.2.2"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brew-vulns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
@@ -74,6 +74,7 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - ".rubocop.yml"
77
78
  - ".ruby-version"
78
79
  - CHANGELOG.md
79
80
  - CODE_OF_CONDUCT.md
@@ -89,13 +90,13 @@ files:
89
90
  - lib/brew/vulns/version.rb
90
91
  - lib/brew/vulns/vulnerability.rb
91
92
  - sig/brew/vulns.rbs
92
- homepage: https://github.com/andrewnesbitt/brew-vulns
93
+ homepage: https://github.com/Homebrew/homebrew-brew-vulns
93
94
  licenses:
94
95
  - MIT
95
96
  metadata:
96
- homepage_uri: https://github.com/andrewnesbitt/brew-vulns
97
- source_code_uri: https://github.com/andrewnesbitt/brew-vulns
98
- changelog_uri: https://github.com/andrewnesbitt/brew-vulns/blob/main/CHANGELOG.md
97
+ homepage_uri: https://github.com/Homebrew/homebrew-brew-vulns
98
+ source_code_uri: https://github.com/Homebrew/homebrew-brew-vulns
99
+ changelog_uri: https://github.com/Homebrew/homebrew-brew-vulns/blob/main/CHANGELOG.md
99
100
  rdoc_options: []
100
101
  require_paths:
101
102
  - lib