The project is in a healthy, maintained state
Easily convert a File object to a Tempfile object.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

FileToTempfile

Easily convert a File object to a Tempfile object.

Installation

Add this line to your application's Gemfile:

gem 'file_to_tempfile'

And then execute:

$ bundle install

Usage

require 'file_to_tempfile'

file = File.open '.gitignore'

tempfile = FileToTempfile.convert(file)

Contributing

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

License

The gem is available as open source under the terms of the MIT License.