-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-organize gemspecs and add brakeman-lib
- Loading branch information
1 parent
eb2e9a1
commit fa310a9
Showing
4 changed files
with
52 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
require './lib/brakeman/version' | ||
require './gem_common' | ||
gem_priv_key = File.expand_path("~/.ssh/gem-private_key.pem") | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{brakeman-lib} | ||
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. This package declares gem dependencies instead of bundling them." | ||
s.homepage = "http://brakemanscanner.org" | ||
s.files = ["bin/brakeman", "CHANGES", "WARNING_TYPES", "FEATURES", "README.md"] + Dir["lib/**/*"] | ||
s.executables = ["brakeman"] | ||
s.license = "MIT" | ||
s.cert_chain = ['brakeman-public_cert.pem'] | ||
s.signing_key = gem_priv_key if File.exist? gem_priv_key and $0 =~ /gem\z/ | ||
|
||
Brakeman::GemDependencies.dev_dependencies(s) | ||
Brakeman::GemDependencies.base_dependencies(s) | ||
Brakeman::GemDependencies.extended_dependencies(s) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module Brakeman | ||
module GemDependencies | ||
def self.dev_dependencies spec | ||
spec.add_development_dependency "test-unit" | ||
end | ||
|
||
def self.base_dependencies spec | ||
spec.add_dependency "ruby_parser", "~>3.8.1" | ||
spec.add_dependency "ruby2ruby", "~>2.3.0" | ||
spec.add_dependency "safe_yaml", ">= 1.0" | ||
end | ||
|
||
def self.extended_dependencies spec | ||
spec.add_dependency "terminal-table", "~>1.4" | ||
spec.add_dependency "highline", ">=1.6.20", "<2.0" | ||
spec.add_dependency "erubis", "~>2.6" | ||
spec.add_dependency "haml", ">=3.0", "<5.0" | ||
spec.add_dependency "sass", "~>3.0" | ||
spec.add_dependency "slim", ">=1.3.6", "<4.0" | ||
end | ||
end | ||
end |