0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Sample files for testing purposes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

>= 3.6.0
 Project Readme

SampleFile

Gem Version Code Climate Build Status Coverage Status

The SampleFile gem provides an easy way to generate files while testing.
Currently you can generate images and videos.

Installation

Add this line to your application's Gemfile:

gem 'sample_file'

And then execute:

$ bundle

Or install it yourself as:

$ gem install sample_file
Requirements

If you are going to use custom image sizes, you must have ImageMagick or GraphicsMagick installed.

Usage

# returns an image file
SampleFile.image 
SampleFile.image :jpg
SampleFile.image :gif
SampleFile.image :png
SampleFile.image :jpg, width: 300, height: 50

# absolute path to image
SampleFile.image_path 
SampleFile.image_path :jpg
SampleFile.image_path :gif
SampleFile.image_path :png
SampleFile.image_path :jpg, width: 300, height: 50

# returns a video file
SampleFile.video

# absolute path to video file
SampleFile.video_path 

Contributing

  1. Fork it
  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 new Pull Request