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
- Host: GitHub
- URL: https://github.com/cyberlight/tratocyr
- Owner: CyberLight
- License: mit
- Created: 2014-10-12T14:51:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-12T16:13:40.000Z (over 11 years ago)
- Last Synced: 2024-04-15T02:46:06.045Z (about 2 years ago)
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Tratocyr [](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