Project

trim_blobs

0.01
No commit activity in last 3 years
No release in over 3 years
Trims all database logging of BLOBS
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.4
>= 0

Runtime

>= 3.2.0
 Project Readme

TrimBlobs

This gem is intended to trim database logging of BLOBs. The implementation is originally made from this blog by Karol Bucek.

The gem has been updated and some bugs have been fixed along the way.

Requirements

Currently it is working with Rails >= 3.2 and ruby version >= 1.9.

If you need this gem for another combination of versions, please create an issue specifying which version combination you are intereested in.

Installation

Add this line to your application's Gemfile:

gem 'trim_blobs'

And then execute:

$ bundle

Or install it yourself as:

$ gem install trim_blobs

Usage

There is basically no usage. The result of using this gem can be seen in the log files where long lines of hexadecimal number have been replaced with a text like

\x89504e470d0a1a0a0000000d49484452... (TRIMMED 34924 hexadecimal digits)

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