translit 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/translit.rb +5 -1
  2. metadata +3 -2
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  module Translit
4
- def self.convert(text, enforce_language = nil)
4
+ def self.convert!(text, enforce_language = nil)
5
5
  language = if enforce_language
6
6
  enforce_input_language(enforce_language)
7
7
  else
@@ -16,6 +16,10 @@ module Translit
16
16
  text
17
17
  end
18
18
 
19
+ def self.convert(text, enforce_language = nil)
20
+ convert!(text.dup, enforce_language)
21
+ end
22
+
19
23
  private
20
24
  def self.create_russian_map
21
25
  self.english.inject({}) do |acc, tuple|
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: translit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - tjbladez
8
+ - project_contibutors
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
@@ -48,3 +48,4 @@ specification_version: 3
48
48
  summary: Transliteration between cyrillic <-> latin from command-line or your program
49
49
  | Транслитерация между кириллицей и латиницей с коммандной строки или в твоей программе
50
50
  test_files: []
51
+ has_rdoc: false