humanize 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/humanize.gemspec +1 -1
- data/lib/humanize.rb +2 -2
- data/spec/tests.rb +1 -0
- metadata +2 -3
- data/Gemfile.lock +0 -104
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ecc1b9dfee10b96c7606d4c2299e68f2de287e33
|
4
|
+
data.tar.gz: b43007d515ba0c7bf873814bc1f003ee3ba5335b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 787080562114cab7b681a9f2b37f6b967905122fc261a7c69467a42262cf0a5f5fda915f2038ad55a840ab8f61bb34c72380a8404a0b63c56edfa2a5d97768f3
|
7
|
+
data.tar.gz: 58ee321e99baf00c9876b21fa07abf0d6614c5b96dcf2cda8811ada8d551ba12a337dab4343fff4d7083d08c9ee93a42c4a8bbae75e274d47fec22ca358aa76a
|
data/.travis.yml
CHANGED
data/humanize.gemspec
CHANGED
data/lib/humanize.rb
CHANGED
@@ -11,7 +11,7 @@ module Humanize
|
|
11
11
|
def humanize(options = {})
|
12
12
|
locale = options[:locale] || Humanize.config.default_locale
|
13
13
|
decimals_as = options[:decimals_as] || Humanize.config.decimals_as
|
14
|
-
num = self
|
14
|
+
num = self
|
15
15
|
o = ''
|
16
16
|
if num < 0
|
17
17
|
o += WORDS[locale][:negative] + ' '
|
@@ -49,7 +49,7 @@ module Humanize
|
|
49
49
|
wrong_1000_re = /(?<=#{lots.join("|")})\s*satu ribu|^satu ribu/
|
50
50
|
o.sub!(wrong_1000_re, 'seribu')
|
51
51
|
end
|
52
|
-
o.
|
52
|
+
o.squeeze(' ')
|
53
53
|
end
|
54
54
|
|
55
55
|
class << self
|
data/spec/tests.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: humanize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jack Chen
|
@@ -76,7 +76,6 @@ files:
|
|
76
76
|
- ".gitignore"
|
77
77
|
- ".travis.yml"
|
78
78
|
- Gemfile
|
79
|
-
- Gemfile.lock
|
80
79
|
- LICENSE.md
|
81
80
|
- README.markdown
|
82
81
|
- Rakefile
|
@@ -114,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
113
|
version: '0'
|
115
114
|
requirements: []
|
116
115
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.6.
|
116
|
+
rubygems_version: 2.6.13
|
118
117
|
signing_key:
|
119
118
|
specification_version: 4
|
120
119
|
summary: Extension to Numeric to humanize numbers
|
data/Gemfile.lock
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
humanize (1.5.0)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
abstract_type (0.0.7)
|
10
|
-
adamantium (0.2.0)
|
11
|
-
ice_nine (~> 0.11.0)
|
12
|
-
memoizable (~> 0.4.0)
|
13
|
-
anima (0.3.0)
|
14
|
-
abstract_type (~> 0.0.7)
|
15
|
-
adamantium (~> 0.2)
|
16
|
-
equalizer (~> 0.0.11)
|
17
|
-
ast (2.3.0)
|
18
|
-
byebug (9.0.6)
|
19
|
-
coderay (1.1.1)
|
20
|
-
concord (0.1.5)
|
21
|
-
adamantium (~> 0.2.0)
|
22
|
-
equalizer (~> 0.0.9)
|
23
|
-
diff-lcs (1.2.5)
|
24
|
-
equalizer (0.0.11)
|
25
|
-
ice_nine (0.11.2)
|
26
|
-
memoizable (0.4.2)
|
27
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
28
|
-
method_source (0.8.2)
|
29
|
-
morpher (0.2.6)
|
30
|
-
abstract_type (~> 0.0.7)
|
31
|
-
adamantium (~> 0.2.0)
|
32
|
-
anima (~> 0.3.0)
|
33
|
-
ast (~> 2.2)
|
34
|
-
concord (~> 0.1.5)
|
35
|
-
equalizer (~> 0.0.9)
|
36
|
-
ice_nine (~> 0.11.0)
|
37
|
-
procto (~> 0.0.2)
|
38
|
-
mutant (0.8.12)
|
39
|
-
abstract_type (~> 0.0.7)
|
40
|
-
adamantium (~> 0.2.0)
|
41
|
-
anima (~> 0.3.0)
|
42
|
-
ast (~> 2.2)
|
43
|
-
concord (~> 0.1.5)
|
44
|
-
diff-lcs (~> 1.2)
|
45
|
-
equalizer (~> 0.0.9)
|
46
|
-
ice_nine (~> 0.11.1)
|
47
|
-
memoizable (~> 0.4.2)
|
48
|
-
morpher (~> 0.2.6)
|
49
|
-
parallel (~> 1.3)
|
50
|
-
parser (~> 2.3.1, >= 2.3.1.4)
|
51
|
-
procto (~> 0.0.2)
|
52
|
-
regexp_parser (~> 0.3.6)
|
53
|
-
unparser (~> 0.2.5)
|
54
|
-
mutant-rspec (0.8.11)
|
55
|
-
mutant (~> 0.8.11)
|
56
|
-
rspec-core (>= 3.4.0, < 3.6.0)
|
57
|
-
parallel (1.9.0)
|
58
|
-
parser (2.3.1.4)
|
59
|
-
ast (~> 2.2)
|
60
|
-
procto (0.0.3)
|
61
|
-
pry (0.10.4)
|
62
|
-
coderay (~> 1.1.0)
|
63
|
-
method_source (~> 0.8.1)
|
64
|
-
slop (~> 3.4)
|
65
|
-
pry-byebug (3.4.0)
|
66
|
-
byebug (~> 9.0)
|
67
|
-
pry (~> 0.10)
|
68
|
-
regexp_parser (0.3.6)
|
69
|
-
rspec (3.5.0)
|
70
|
-
rspec-core (~> 3.5.0)
|
71
|
-
rspec-expectations (~> 3.5.0)
|
72
|
-
rspec-mocks (~> 3.5.0)
|
73
|
-
rspec-core (3.5.4)
|
74
|
-
rspec-support (~> 3.5.0)
|
75
|
-
rspec-expectations (3.5.0)
|
76
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
77
|
-
rspec-support (~> 3.5.0)
|
78
|
-
rspec-mocks (3.5.0)
|
79
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
80
|
-
rspec-support (~> 3.5.0)
|
81
|
-
rspec-support (3.5.0)
|
82
|
-
slop (3.6.0)
|
83
|
-
thread_safe (0.3.5)
|
84
|
-
unparser (0.2.5)
|
85
|
-
abstract_type (~> 0.0.7)
|
86
|
-
adamantium (~> 0.2.0)
|
87
|
-
concord (~> 0.1.5)
|
88
|
-
diff-lcs (~> 1.2.5)
|
89
|
-
equalizer (~> 0.0.9)
|
90
|
-
parser (~> 2.3.0)
|
91
|
-
procto (~> 0.0.2)
|
92
|
-
|
93
|
-
PLATFORMS
|
94
|
-
ruby
|
95
|
-
|
96
|
-
DEPENDENCIES
|
97
|
-
humanize!
|
98
|
-
mutant
|
99
|
-
mutant-rspec
|
100
|
-
pry-byebug
|
101
|
-
rspec
|
102
|
-
|
103
|
-
BUNDLED WITH
|
104
|
-
1.16.0.pre.2
|