-
Notifications
You must be signed in to change notification settings - Fork 732
/
brakeman.gemspec
45 lines (40 loc) · 1.87 KB
/
brakeman.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require './lib/brakeman/version'
require './gem_common'
Gem::Specification.new do |s|
s.name = %q{brakeman}
s.version = Brakeman::Version
s.authors = ["Justin Collins"]
s.email = "[email protected]"
s.summary = "Security vulnerability scanner for Ruby on Rails."
s.description = "Brakeman detects security vulnerabilities in Ruby on Rails applications via static analysis."
s.homepage = "https://brakemanscanner.org"
s.files = ["bin/brakeman", "CHANGES.md", "FEATURES", "README.md"] + Dir["lib/**/*"]
s.executables = ["brakeman"]
s.license = "Brakeman Public Use License"
s.required_ruby_version = '>= 3.0.0'
s.metadata = {
"bug_tracker_uri" => "https://github.com/presidentbeef/brakeman/issues",
"changelog_uri" => "https://github.com/presidentbeef/brakeman/releases",
"documentation_uri" => "https://brakemanscanner.org/docs/",
"homepage_uri" => "https://brakemanscanner.org/",
"mailing_list_uri" => "https://gitter.im/presidentbeef/brakeman",
"source_code_uri" => "https://github.com/presidentbeef/brakeman",
"wiki_uri" => "https://github.com/presidentbeef/brakeman/wiki"
}
if File.exist? 'bundle/load.rb'
# Pull in vendored dependencies
s.files << 'bundle/load.rb'
s.files += Dir['bundle/ruby/*/gems/**/*'].reject do |path|
# Skip unnecessary files in dependencies
path =~ %r{^bundle/ruby/\d\.\d\.\d/gems/[^\/]+/(Rakefile|benchmark|bin|doc|example|man|site|spec|test)} or
path =~ %r{/gems/(io-console|racc|strscan)/}
end
# racc is not only a built-in gem, but also has native code which we cannot
# bundle with Brakeman, so leaving it as a regular dependency
s.add_dependency "racc"
else
Brakeman::GemDependencies.dev_dependencies(s) unless ENV['BM_PACKAGE']
Brakeman::GemDependencies.base_dependencies(s)
Brakeman::GemDependencies.extended_dependencies(s)
end
end