numbers_and_words 0.11.9 → 0.11.10
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04032d6938d0487167512413e0035cfd44e568ad622c20fc304d80a217556cf9
|
4
|
+
data.tar.gz: c316187430a6d4930978215f478f34d9973fbe2bf0efa50dd3969652375eab51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81f843d717a8b84cb29096e43845201ac5a2a95e63177736df9135520f452badcc01057035500afd65bed7df9bf36cf78a6ad94a5168295e3d43b2597b6d746b
|
7
|
+
data.tar.gz: 64dc18b49df49650052b3bc2ca1ad895ddbacd4e60cffe7614c76712bd0270a8eb3695e571fe8c31b4fdf801148bf183056a76a1124f831f6b973e5a231bcc15
|
@@ -4,7 +4,7 @@ require 'numbers_and_words/helper_classes/array_extensions/helpers'
|
|
4
4
|
|
5
5
|
module NumbersAndWords
|
6
6
|
class FiguresArray < Array
|
7
|
-
|
7
|
+
include ArrayExtensions::Helpers
|
8
8
|
|
9
9
|
def to_words(options = {})
|
10
10
|
local_language { Strategies.figures_converter.new(self, options).run }
|
@@ -14,6 +14,10 @@ module NumbersAndWords
|
|
14
14
|
super.to_figures
|
15
15
|
end
|
16
16
|
|
17
|
+
def figures_array_in_capacity(capacity)
|
18
|
+
super.to_figures
|
19
|
+
end
|
20
|
+
|
17
21
|
def local_language(&block)
|
18
22
|
::I18n.with_locale(I18n.local_language, &block)
|
19
23
|
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.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirill Lazarev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|