Project

corrupted

0.0
No commit activity in last 3 years
No release in over 3 years
Gem to generated corrupted files, ideal for homeworks 🙊.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 4.2
~> 10.0
 Project Readme

Corrupted

![Gitter](https://badges.gitter.im/Join Chat.svg)

A lightwight library to generate files with bytes inside, so they look like 'corrupted' files if they are open with a text editor.

Hopefully you'll find this gem useful for something.

Installation

Install in the command line with:

gem install corrupted

Usage

Then your can generate a file in the current directory with:

corrupted generate FILE_NAME EXTENSION SIZE
  • File name can be a in an absolute path.

  • Size is the desired size of the file in kilobytes.

To generate homework.docx of 15MB can be done with:

corrupted generate homework docx 15000

Any feedback or new features are greatly appreciated at the issue tracker

Contributing

  1. Fork it ( https://github.com/webones/corrupted/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request