Sha256: 3f1c9ad8b4aa12be4d3ddee83727b119e0e1153612b1326c4a52fb692aa364ce

Contents?: true

Size: 1.25 KB

Versions: 9

Compression:

Stored size: 1.25 KB

Contents

# Hirb-unicode 
`hirb-unicode` fixes the problem that [full-width unicode characters](http://en.wikipedia.org/wiki/Fullwidth_form#Fullwidth_form) is aligned incorrectly.

In the original `hirb` unicode gem, the full-width character will be misaligned: 

![Original hirb screenshot](http://miaout17.github.com/hirb-unicode/hirb-original.png)

With `hirb-unicode`, the cells is correctly aligned: 

![Original hirb screenshot](http://miaout17.github.com/hirb-unicode/hirb-unicode.png)

## Installation

    gem install hirb-unicode

## Usage

This will load `hirb` and `hirb-unicode`, and fix the unicode problem automtically:

    gem 'hirb-unicode'
    require 'hirb-unicode'

If you are using `bundler` (ex. Rails 3), add `hirb-unicode` into your gemfile:

    gem 'hirb-unicode'

And run `require 'hirb-unicode'` in your irb console or `.irbrc`

## Dependency

`hirb-unicode` uses `unicode-display_width` gem to calculate width of unicode characters.

## Testing

* `rake test:hirb` loads `hirb` and `hirb-unicode`, run all test of original `hirb` gem. This ensures the original `hirb` functionality is not broken.
* `rake test:unicode` tests functions about unicode string processing.
* `rake test` run both two tests above.

## License

Read MIT-LICENSE file for details.

Version data entries

9 entries across 8 versions & 2 rubygems

Version Path
climine-0.0.7 vendor/bundle/ruby/2.1.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.7 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.6 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.5 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.4 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.3 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.2 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
climine-0.0.1 vendor/bundle/ruby/2.0.0/gems/hirb-unicode-0.0.5/README.md
hirb-unicode-0.0.5 README.md