All Projects → DataWraith → ascii85gem

DataWraith / ascii85gem

Licence: MIT license
A simple gem that provides methods for encoding/decoding Adobe’s binary-to-text encoding of the same name.

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ascii85gem

drape
Drape – Reincarnation of Draper for Rails 5
Stars: ✭ 57 (+216.67%)
Mutual labels:  gem
perf check
PERRRFFF CHERRRRK!
Stars: ✭ 16 (-11.11%)
Mutual labels:  gem
zengin-rb
💎 The ruby implementation of ZenginCode.
Stars: ✭ 83 (+361.11%)
Mutual labels:  gem
als typograf
Ruby client for ArtLebedevStudio.RemoteTypograf Web Service.
Stars: ✭ 15 (-16.67%)
Mutual labels:  gem
carrierwave-cloudflare
🎑 This Rails gem integrates Carrierwave with Cloudflare Image Resizing
Stars: ✭ 24 (+33.33%)
Mutual labels:  gem
delayed job worker pool
Worker process pooling for Delayed Job
Stars: ✭ 32 (+77.78%)
Mutual labels:  gem
carender
📅 A monthly calendar for Rails application
Stars: ✭ 15 (-16.67%)
Mutual labels:  gem
jsonapi-serializer-formats
💎 Gem to enrich jsonapi-serializer with multiple formats
Stars: ✭ 20 (+11.11%)
Mutual labels:  gem
colorama
A Gem for extracting the most prevalent colors from an image
Stars: ✭ 20 (+11.11%)
Mutual labels:  gem
nanook
Ruby library for making and receiving payments and managing a nano currency node
Stars: ✭ 17 (-5.56%)
Mutual labels:  gem
bundle outdated formatter
Formatter for `bundle outdated` command
Stars: ✭ 16 (-11.11%)
Mutual labels:  gem
sinator
Sinatra application generator
Stars: ✭ 19 (+5.56%)
Mutual labels:  gem
rspec-json matchers
A collection of RSpec matchers for testing JSON data.
Stars: ✭ 23 (+27.78%)
Mutual labels:  gem
rsgem
Rootstrap way ® to generate gems
Stars: ✭ 26 (+44.44%)
Mutual labels:  gem
activerecord-shard for
Database Sharding Library for ActiveRecord
Stars: ✭ 16 (-11.11%)
Mutual labels:  gem
index shotgun
duplicate index checker 🔥 🔫 👮
Stars: ✭ 35 (+94.44%)
Mutual labels:  gem
google docs-ruby
A library which allows you to edit your spreadsheets with pleasure
Stars: ✭ 18 (+0%)
Mutual labels:  gem
capybara-json
No description or website provided.
Stars: ✭ 61 (+238.89%)
Mutual labels:  gem
modular routes
Dedicated controllers for each of your Rails route actions.
Stars: ✭ 45 (+150%)
Mutual labels:  gem
make model searchable
Adds simlpe search functionality to models
Stars: ✭ 27 (+50%)
Mutual labels:  gem

Status: This project is in maintenance mode. I will not develop new features, but I will address Issues and Pull Requests.

Ascii85

Description

Ascii85 is a simple gem that provides methods for encoding/decoding Adobe's binary-to-text encoding of the same name.

See http://www.adobe.com/products/postscript/pdfs/PLRM.pdf page 131 and http://en.wikipedia.org/wiki/Ascii85 for more information about the format.

Installation

sudo gem install Ascii85

Usage

require 'rubygems'
require 'ascii85'

Ascii85.encode("Ruby")
=> "<~;KZGo~>"

Ascii85.decode("<~;KZGo~>")
=> "Ruby"

In addition, Ascii85.encode can take a second parameter that specifies the length of the returned lines. The default is 80; use false for unlimited.

Ascii85.decode expects the input to be enclosed in <~ and ~> — it ignores everything outside of these. The output of Ascii85.decode will have the ASCII-8BIT encoding, so in Ruby 1.9 you may have to use String#force_encoding to correct the encoding.

Command-line utility

This gem includes ascii85, a command-line utility modeled after base64 from the GNU coreutils. It can be used to encode/decode Ascii85 directly from the command-line:

Usage: ascii85 [OPTIONS] [FILE]
Encodes or decodes FILE or STDIN using Ascii85 and writes to STDOUT.
    -w, --wrap COLUMN                Wrap lines at COLUMN. Default is 80, use 0 for no wrapping
    -d, --decode                     Decode the input
    -h, --help                       Display this help and exit
        --version                    Output version information

Contributors

Thank you for your contribution!

License

Ascii85 is distributed under the MIT License. See the accompanying LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].