New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ftp_liar

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftp_liar

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

FTPLiar

This is experimental gem to simulate Net::FTP object using temporary directory. You use it or your own risk.

Installation

Add this line to your application's Gemfile:

gem 'ftp_liar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ftp_liar

Usage

Use FTPLiar class with proxy pattern, override interesting class.

class MyFTP
  def initialize(*args)
    @ftp_liar = FTPLiar::FTPLiar.new(*args)
  end

  def method_missing(name, *args)
    @ftp_liar.send(name, *args)
  end
end

If some method raise NotImplementedError override create your own method like in the example

class MyFTP
  def initialize(*args)
    @ftp_liar = FTPLiar::FTPLiar.new(*args)
  end

  def mdtm(filename)
    # Do here what do you want.
  end

  def method_missing(name, *args)
    @ftp_liar.send(name, *args)
  end
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Draqun/ftp_liar.

FAQs

Package last updated on 31 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc