ftpd is a pure Ruby FTP server library. It supports implicit and explicit TLS, IPV6, passive and active mode, and is unconditionally compliant per RFC-1123. It can be used as part of a test fixture or embedded in a program.
Gemfile gem 'ftpd', '~> 0.15.0'
install gem install ftpd -v 0.15.0