babosa 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,15 +6,16 @@ module Babosa
6
6
 
7
7
  module Transliterator
8
8
 
9
- autoload :Latin, "babosa/transliterator/latin"
10
- autoload :Spanish, "babosa/transliterator/spanish"
11
- autoload :German, "babosa/transliterator/german"
12
- autoload :Danish, "babosa/transliterator/danish"
13
- autoload :Serbian, "babosa/transliterator/serbian"
14
- autoload :Cyrillic, "babosa/transliterator/cyrillic"
15
- autoload :Russian, "babosa/transliterator/russian"
16
- autoload :Ukranian, "babosa/transliterator/ukranian"
17
- autoload :Bulgarian, "babosa/transliterator/bulgarian"
9
+ autoload :Bulgarian, "babosa/transliterator/bulgarian"
10
+ autoload :Cyrillic, "babosa/transliterator/cyrillic"
11
+ autoload :Danish, "babosa/transliterator/danish"
12
+ autoload :German, "babosa/transliterator/german"
13
+ autoload :Latin, "babosa/transliterator/latin"
14
+ autoload :Macedonian, "babosa/transliterator/macedonian"
15
+ autoload :Russian, "babosa/transliterator/russian"
16
+ autoload :Serbian, "babosa/transliterator/serbian"
17
+ autoload :Spanish, "babosa/transliterator/spanish"
18
+ autoload :Ukranian, "babosa/transliterator/ukranian"
18
19
 
19
20
  def self.get(symbol)
20
21
  const_get(symbol.to_s.classify)
@@ -6,9 +6,6 @@ module Babosa
6
6
  # http://en.wikipedia.org/wiki/ISO_9#GOST_7.79
7
7
  class Cyrillic < Base
8
8
  APPROXIMATIONS = {
9
- "S" => "Z",
10
- "j" => "j",
11
- "s" => "z",
12
9
  "Ё" => "Yo",
13
10
  "Ѓ" => "G",
14
11
  "Є" => "Ye",
@@ -0,0 +1,11 @@
1
+ # encoding: utf-8
2
+ module Babosa
3
+ module Transliterator
4
+ class Macedonian < Cyrillic
5
+ APPROXIMATIONS = {
6
+ "S" => "Z",
7
+ "s" => "z",
8
+ }
9
+ end
10
+ end
11
+ end
@@ -1,5 +1,5 @@
1
1
  module Babosa
2
2
  module Version
3
- STRING = "0.3.0"
3
+ STRING = "0.3.1"
4
4
  end
5
5
  end
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ require File.expand_path("../../spec_helper", __FILE__)
3
+
4
+ describe Babosa::Transliterator::Macedonian do
5
+
6
+ let(:t) { described_class.instance }
7
+ it_behaves_like "a cyrillic transliterator"
8
+
9
+ end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: babosa
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.3.0
5
+ version: 0.3.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Norman Clarke
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-23 00:00:00 -03:00
13
+ date: 2011-03-29 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -62,6 +62,7 @@ files:
62
62
  - lib/babosa/transliterator/danish.rb
63
63
  - lib/babosa/transliterator/german.rb
64
64
  - lib/babosa/transliterator/latin.rb
65
+ - lib/babosa/transliterator/macedonian.rb
65
66
  - lib/babosa/transliterator/russian.rb
66
67
  - lib/babosa/transliterator/serbian.rb
67
68
  - lib/babosa/transliterator/spanish.rb
@@ -84,6 +85,7 @@ files:
84
85
  - spec/transliterators/bulgarian_spec.rb
85
86
  - spec/transliterators/danish_spec.rb
86
87
  - spec/transliterators/german_spec.rb
88
+ - spec/transliterators/macedonian_spec.rb
87
89
  - spec/transliterators/russian_spec.rb
88
90
  - spec/transliterators/serbian_spec.rb
89
91
  - spec/transliterators/spanish_spec.rb