numbers_and_words 0.11.4 → 0.11.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c601603640f2fd42a075ea704686dd34fedcaac6
|
4
|
+
data.tar.gz: 8f39dec70454ee3ee56416a686d5465b91191631
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3674f9549f9eabbe6611df88d22bebc05ef47506d627c6305fdfac36d79fd63b17fc8df711b61db6091a17a14d07fc48f2f80423fe59668ea2738beff8eb26a
|
7
|
+
data.tar.gz: 8b09e7b44a277d9213d0d9edc408b750e7a5e904e8cc9f779808862f8fb08b075d29b2e7127e18921e8c6be042bf19f7bc69c9b30b5367ac414d33dd8f80983f
|
data/README.rdoc
CHANGED
@@ -169,7 +169,7 @@ Converte números em letras utilizando a biblioteca I18n.
|
|
169
169
|
=> "en miljoner en hundra"
|
170
170
|
=> "jeden milión jedno sto"
|
171
171
|
=> "một triệu một trăm"
|
172
|
-
=> "միլիոն հարյուր"
|
172
|
+
=> "մեկ միլիոն հարյուր"
|
173
173
|
|
174
174
|
1000000000000000000000000000000000.to_words
|
175
175
|
=> "one decillion"
|
@@ -3,23 +3,6 @@ module NumbersAndWords
|
|
3
3
|
module FiguresConverter
|
4
4
|
module Languages
|
5
5
|
class Hy < Base
|
6
|
-
def capacity_iteration
|
7
|
-
words = []
|
8
|
-
capacity_words = words_in_capacity(@current_capacity)
|
9
|
-
words.push(megs) unless capacity_words.empty?
|
10
|
-
words += capacity_words unless thousand? && one?
|
11
|
-
words
|
12
|
-
end
|
13
|
-
|
14
|
-
private
|
15
|
-
|
16
|
-
def one?
|
17
|
-
words_in_capacity(@current_capacity) == [translations.ones(1)]
|
18
|
-
end
|
19
|
-
|
20
|
-
def thousand?
|
21
|
-
FiguresArray::THOUSAND_CAPACITY <= @current_capacity
|
22
|
-
end
|
23
6
|
end
|
24
7
|
end
|
25
8
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: numbers_and_words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Lazarev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|