An open API service indexing awesome lists of open source software.

https://github.com/cyberlight/tratocyr

Translit to cyrillic translation gem
https://github.com/cyberlight/tratocyr

Last synced: about 1 year ago
JSON representation

Translit to cyrillic translation gem

Awesome Lists containing this project

README

          

# Tratocyr [![Gem Version](https://badge.fury.io/rb/tratocyr.svg)](http://badge.fury.io/rb/tratocyr)

* Tratocyr - Translit To Cyrillic
* This gem provide functionality for translation string with translit symbols to string with cyrillic symbols

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'tratocyr', '~> 0.0.2'
```
* **Note**: Please use version **0.0.2** with fix of loading path.
* Version **0.0.1** don't work due to wrong loading path used in gem.

And then execute:

$ bundle

Or install it yourself as:

$ gem install tratocyr

## Usage

* Usage:
```ruby
translator = Tratocyr::CyrillicTranslator.new
translator.to_cyrillic("Mister Putin molodec!")
```
* Result:
``` Мистер Путин молодец!```

## Contributing

1. Fork it ( https://github.com/CyberLight/tratocyr/fork )
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 a new Pull Request

## Developing
* For running tests use ```rake spec``` command
* For generating yard documentation use ```rake yard``` command