Skip to content

Commit bd286c4

Browse files
committed
Land rapid7#8590, fix activerecord warning
2 parents 24d9bec + ebfd920 commit bd286c4

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ PATH
3030
packetfu
3131
patch_finder
3232
pcaprub
33-
pg
33+
pg (= 0.20.0)
3434
railties
3535
rb-readline
3636
recog
@@ -233,7 +233,7 @@ GEM
233233
pcaprub
234234
patch_finder (1.0.2)
235235
pcaprub (0.12.4)
236-
pg (0.21.0)
236+
pg (0.20.0)
237237
pg_array_parser (0.0.9)
238238
postgres_ext (3.0.0)
239239
activerecord (>= 4.0.0)

metasploit-framework.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ Gem::Specification.new do |spec|
8383
spec.add_runtime_dependency 'packetfu'
8484
# For sniffer and raw socket modules
8585
spec.add_runtime_dependency 'pcaprub'
86-
# Needed for module caching in Mdm::ModuleDetails
87-
spec.add_runtime_dependency 'pg'
86+
# Used by the Metasploit data model, etc.
87+
# bound to 0.20 for Activerecord 4.2.8 deprecation warnings:
88+
# https://github.com/ged/ruby-pg/commit/c90ac644e861857ae75638eb6954b1cb49617090
89+
spec.add_runtime_dependency 'pg', '0.20.0'
8890
# Run initializers for metasploit-concern, metasploit-credential, metasploit_data_models Rails::Engines
8991
spec.add_runtime_dependency 'railties'
9092
# required for OS fingerprinting

0 commit comments

Comments
 (0)