Skip to content

Commit 71a96f2

Browse files
committed
Land rapid7#4149, readline adjustments
* Windows guard, DRYing
2 parents 7b25e3b + f494a9f commit 71a96f2

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ source 'https://rubygems.org'
33
# spec.add_runtime_dependency '<name>', [<version requirements>]
44
gemspec
55

6-
gem 'rb-readline', require: false
7-
86
group :db do
97
# Needed for Msf::DbManager
108
gem 'activerecord', '>= 3.0.0', '< 4.0.0'

Gemfile.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ DEPENDENCIES
232232
pg (>= 0.11)
233233
pry
234234
rake (>= 10.0.0)
235-
rb-readline
236235
redcarpet
237236
rspec (>= 2.12, < 3.0.0)
238237
rspec-rails (>= 2.12, < 3.0.0)

metasploit-framework.gemspec

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,14 @@ Gem::Specification.new do |spec|
7676
spec.add_runtime_dependency 'railties'
7777
# required for OS fingerprinting
7878
spec.add_runtime_dependency 'recog', '~> 1.0'
79-
# read... lines...
80-
spec.add_runtime_dependency 'rb-readline'
79+
80+
# rb-readline doesn't work with Ruby Installer due to error with Fiddle:
81+
# NoMethodError undefined method `dlopen' for Fiddle:Module
82+
unless Gem.win_platform?
83+
# Command line editing, history, and tab completion in msfconsole
84+
spec.add_runtime_dependency 'rb-readline'
85+
end
86+
8187
# Needed by anemone crawler
8288
spec.add_runtime_dependency 'robots'
8389
# Needed by some modules

0 commit comments

Comments
 (0)