kabal 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/kabal.gemspec +1 -1
- data/lib/kabal/config/yaml_loader.rb +9 -0
- data/lib/kabal/config.rb +3 -0
- data/lib/kabal/languages/language.rb +2 -2
- data/lib/kabal/languages/russian/declinations.rb +1 -0
- data/lib/kabal/version.rb +1 -1
- data/lib/kabal.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33439037203abe61216a142cac5d9c02d06c238a
|
4
|
+
data.tar.gz: 7d5f04457e6e752f39a7e5fdb4dc6b5f11a1046a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74532cb19862e75ac0b1526d18a00176b23a62d42f6941f176375413edce92f4f287a8c1758f9f5d8453579e73c66e4616a91863d2fbac1a669b317a087eed2e
|
7
|
+
data.tar.gz: ca456203cb903d8b62bc9c00a5e78400989ec92801860421a59f54a850e879b25b8edb61bcca204eb304a7f2071e2c1db913f793ec705aaa3651c8f870cae08a
|
data/kabal.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.files = `git ls-files
|
16
|
+
spec.files = `git ls-files`.split("\n")
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
data/lib/kabal/config.rb
ADDED
@@ -1,12 +1,12 @@
|
|
1
1
|
module Kabal
|
2
2
|
class Language
|
3
3
|
def lang
|
4
|
-
languages =
|
4
|
+
languages = YamlLoader.yaml_object "languages"
|
5
5
|
@lang = languages[self.to_s.split(":")[-2]]
|
6
6
|
end
|
7
7
|
|
8
8
|
def names
|
9
|
-
|
9
|
+
YamlLoader.yaml_object "languages/#{lang}"
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/kabal/version.rb
CHANGED
data/lib/kabal.rb
CHANGED
@@ -1,11 +1,13 @@
|
|
1
1
|
autoload :Version, "kabal/version"
|
2
2
|
require "kabal/supported_languages"
|
3
3
|
require "kabal/errors"
|
4
|
+
require "kabal/config"
|
4
5
|
require 'yaml'
|
5
6
|
|
6
7
|
module Kabal
|
7
8
|
include SupportedLanguages
|
8
9
|
include Errors
|
10
|
+
include Config
|
9
11
|
|
10
12
|
def to_text(number)
|
11
13
|
@language ||= "Russian"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kabal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Kalashnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -54,6 +54,8 @@ files:
|
|
54
54
|
- Rakefile
|
55
55
|
- kabal.gemspec
|
56
56
|
- lib/kabal.rb
|
57
|
+
- lib/kabal/config.rb
|
58
|
+
- lib/kabal/config/yaml_loader.rb
|
57
59
|
- lib/kabal/errors.rb
|
58
60
|
- lib/kabal/errors/no_language_support_error.rb
|
59
61
|
- lib/kabal/errors/number_out_range_error.rb
|