GitXplorerGitXplorer
h

char_size

public
0 stars
1 forks
0 issues

Commits

List of commits on branch master.
Verified
9ec65c8ff0c513e57010bca2e28af9721c872911

Split return type and function name to match Ruby core style

hhaines committed 8 years ago
Verified
1a8f22de6cbbd856a5f5108c1dd2d9eded699f7b

Bump version

hhaines committed 8 years ago
Verified
b92ebf08bf3ad3b08d86461cccc19116580bbf99

Re-add module documentation

hhaines committed 8 years ago
Verified
31c914bf1b903354202dd989e017ced8ca793871

Bump version

hhaines committed 8 years ago
Unverified
639e76d5477ee568ae96397ff9a87cd71bdd1032

Merge pull request #5 from nobu/minmax

hhaines committed 8 years ago
Verified
dfd287dfbf5ed7fbe30166cbca1b454ab41bbb06

Merge branch 'master' into minmax

hhaines committed 8 years ago

README

The README file for this repository.

CharSize

Gem Version Build Status Code Climate

Find an encoding's minimum and maximum character size.

Installation

Add this line to your application's Gemfile:

gem "char_size"

And then execute:

$ bundle

Or install it yourself as:

$ gem install char_size

Usage

CharSize.min("UTF-8")    # => 1
CharSize.max("UTF-8")    # => 6
CharSize.minmax("UTF-8") # => [1, 6]

Like Encoding.find, methods take a string encoding name, or an instance of Encoding.

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake test 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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/haines/char_size. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

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