-
Notifications
You must be signed in to change notification settings - Fork 57
Expand file tree
/
Copy pathmetasploit_data_models.gemspec
More file actions
77 lines (61 loc) · 2.55 KB
/
Copy pathmetasploit_data_models.gemspec
File metadata and controls
77 lines (61 loc) · 2.55 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# -*- encoding: utf-8 -*-
$LOAD_PATH.push File.expand_path('../lib', __FILE__)
require 'metasploit_data_models/version'
Gem::Specification.new do |s|
s.name = 'metasploit_data_models'
s.version = MetasploitDataModels::VERSION
s.authors = ['Metasploit Hackers']
s.email = ['msfdev@metasploit.com']
s.homepage = ""
s.summary = %q{Database code for MSF and Metasploit Pro}
s.description = %q{Implements minimal ActiveRecord models and database helper code used in both the Metasploit Framework (MSF) and Metasploit commercial editions.}
s.files = `git ls-files`.split("\n").reject { |file|
file =~ /^bin/
}
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.require_paths = %w{app/models app/validators lib}
s.required_ruby_version = '>= 2.7'
# ---- Dependencies ----
# documentation
s.add_development_dependency 'metasploit-yard'
s.add_development_dependency 'yard-activerecord'
# embed ERDs on index, namespace Module and Class<ApplicationRecord> pages
s.add_development_dependency 'yard-metasploit-erd'
s.add_development_dependency 'rake'
s.add_development_dependency 'yard'
# debugging
s.add_development_dependency 'pry'
# Rails 8.0 upgrade: widened from '~> 7.0' (which means >= 7.0, < 8.0) to
# '>= 7.0', '< 8.1' so this gem resolves with both Rails 7.x and 8.0.
# The old pessimistic constraint hard-blocked Bundler from pulling Rails 8.
s.add_runtime_dependency 'activerecord', '>= 7.0', '< 8.1'
s.add_runtime_dependency 'activesupport', '>= 7.0', '< 8.1'
s.add_runtime_dependency 'metasploit-concern'
s.add_runtime_dependency 'metasploit-model', '>= 5.0.4'
s.add_runtime_dependency 'railties', '>= 7.0', '< 8.1'
s.add_runtime_dependency 'webrick'
# os fingerprinting
s.add_runtime_dependency 'recog'
# arel-helpers: Useful tools to help construct database queries with ActiveRecord and Arel.
s.add_runtime_dependency 'arel-helpers'
# Standard libraries: https://www.ruby-lang.org/en/news/2023/12/25/ruby-3-3-0-released/
%w[
bigdecimal
drb
mutex_m
].each do |library|
s.add_runtime_dependency library
end
if RUBY_PLATFORM =~ /java/
# markdown formatting for yard
s.add_development_dependency 'kramdown'
s.add_runtime_dependency 'jdbc-postgres'
s.add_runtime_dependency 'activerecord-jdbcpostgresql-adapter'
s.platform = Gem::Platform::JAVA
else
# markdown formatting for yard
s.add_development_dependency 'redcarpet'
s.add_runtime_dependency 'pg'
s.platform = Gem::Platform::RUBY
end
end