LyjiasMultipartSplitter

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'lyjias_multipart_splitter'

And then execute:

$ bundle

Or install it yourself as:

$ gem install lyjias_multipart_splitter

Usage

TODO: Write usage instructions here

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Updating included MIME types database

LyjiasMimeTypesReference is generated by running dat/mime_types.csv through an included CSV-to-hash script at etc/csv_to_keyed_hash.rb. It can be regenerated from the following command, run from the gem root:

./csv_to_keyed_hash.rb --file ../dat/mime_types.csv --key mime_type -m LyjiasMimeTypesReference -c TYPES > ../lib/lyjias_mime_types_reference.rb

MIME Type data is sourced from Mozilla's "Incomplete List of MIME Types"

Changelog

  • 0.1.1
    • Added MIME Types database
    • Made Splitter aware of MIME Types for setting file extension
    • Added CSV-to-keyed-hash converter in etc/
  • 0.1.0
    • Initial commit

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lyjias_multipart_splitter.

License

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