kabal 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -2
- data/lib/kabal/languages/language.rb +9 -7
- data/lib/kabal/supported_languages.rb +5 -3
- data/lib/kabal/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c28599c3888c66d7bc5a7228c266def08286499
|
4
|
+
data.tar.gz: 50ddd67683b05f70ff979f9bc72204d5eee884fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50ec5fcc4a481425e6581e11c24bfec7c102381bcbf174a69de55dd42da285ecd6f9d8aefd838a02edb9afa9e59b35b91490f8e5ca73165fb3976d209ef47dc0
|
7
|
+
data.tar.gz: 599c1f036a6d2d6aa85e88c322fbb85c147894bf311a897ee96f3649fa3ae9ab00f552044bf57b12217fbb0320ccb31ec003f33c831a77687a3ea1aa3a3560f7
|
data/README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Kabal
|
2
2
|
|
3
|
-
[![Build Status](https://travis-ci.org/kalashnikovisme/kabal.svg?branch=master)](https://travis-ci.org/kalashnikovisme/kabal)
|
3
|
+
[![Build Status](https://travis-ci.org/kalashnikovisme/kabal.svg?branch=master)](https://travis-ci.org/kalashnikovisme/kabal)
|
4
|
+
[![Coverage Status](https://coveralls.io/repos/kalashnikovisme/kabal/badge.png?branch=master)](https://coveralls.io/r/kalashnikovisme/kabal?branch=master)
|
4
5
|
|
5
|
-
|
6
|
+
Kabal allows you to translate number into text.
|
6
7
|
|
7
8
|
## Installation
|
8
9
|
|
@@ -1,10 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
module Kabal
|
2
|
+
class Language
|
3
|
+
def lang
|
4
|
+
languages = YAML.load_file('yaml/languages.yml')
|
5
|
+
@lang = languages[self.to_s.split(":")[-2]]
|
6
|
+
end
|
6
7
|
|
7
|
-
|
8
|
-
|
8
|
+
def names
|
9
|
+
YAML.load_file("yaml/languages/#{lang}.yml")
|
10
|
+
end
|
9
11
|
end
|
10
12
|
end
|
data/lib/kabal/version.rb
CHANGED