Skip to content

Commit 22828fc

Browse files
author
Brent Cook
committed
Land rapid7#8406, add compatibility shims for older Ruby versions
2 parents 4def7ce + c59371d commit 22828fc

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

Gemfile.lock

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ PATH
2828
actionpack (~> 4.2.6)
2929
activerecord (~> 4.2.6)
3030
activesupport (~> 4.2.6)
31+
backports
3132
bcrypt
3233
bit-struct
3334
filesize
@@ -126,6 +127,7 @@ GEM
126127
ffi (~> 1.9.10)
127128
rspec-expectations (>= 2.99)
128129
thor (~> 0.19)
130+
backports (3.8.0)
129131
bcrypt (3.1.11)
130132
bindata (2.4.0)
131133
builder (3.2.3)

lib/msf/core.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
# Sanity check this version of ruby
1414
require 'msf/sanity'
15+
require 'backports'
1516

1617
# The framework-core depends on Rex
1718
require 'rex'

metasploit-framework.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Gem::Specification.new do |spec|
4747
spec.add_runtime_dependency 'activesupport', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
4848
# Needed for config.action_view for view plugin compatibility for Pro
4949
spec.add_runtime_dependency 'actionpack', *Metasploit::Framework::RailsVersionConstraint::RAILS_VERSION
50+
# Backports Ruby features across language versions
51+
spec.add_runtime_dependency 'backports'
5052
# Needed for some admin modules (cfme_manageiq_evm_pass_reset.rb)
5153
spec.add_runtime_dependency 'bcrypt'
5254
# Needed for Javascript obfuscation

0 commit comments

Comments
 (0)