humanize 1.6.0 → 1.6.1

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: 1a4e43c1d739513348d02de2ff1ff5a9f70ae5d9
4
- data.tar.gz: 1f9b6e062f12066a8c6bc8b35ebfd2f270416cf7
3
+ metadata.gz: ecc1b9dfee10b96c7606d4c2299e68f2de287e33
4
+ data.tar.gz: b43007d515ba0c7bf873814bc1f003ee3ba5335b
5
5
  SHA512:
6
- metadata.gz: 5bac4a44f2dcbf47b79c88bedcb37abc5e08d668af8c29739fc38c80e5dd24c1e6cbebad5f8cf82865b51c3b549579e4dc9a51d38e21d68ab790e370c6815c20
7
- data.tar.gz: 27c0004f535b4beaf57c6e0c03f2daf6679dfd424b0417ef287b40cf69501edded9b30790e97d14628eaa21751d38bfed1f72ccf4f097618733dad65804cd072
6
+ metadata.gz: 787080562114cab7b681a9f2b37f6b967905122fc261a7c69467a42262cf0a5f5fda915f2038ad55a840ab8f61bb34c72380a8404a0b63c56edfa2a5d97768f3
7
+ data.tar.gz: 58ee321e99baf00c9876b21fa07abf0d6614c5b96dcf2cda8811ada8d551ba12a337dab4343fff4d7083d08c9ee93a42c4a8bbae75e274d47fec22ca358aa76a
@@ -4,7 +4,8 @@ language: ruby
4
4
  rvm:
5
5
  - "2.1" # latest 2.1.x
6
6
  - "2.2" # latest 2.2.x
7
- - "2.3.1"
7
+ - "2.3" # latest 2.3.x
8
+ - "2.4" # latest 2.4.x
8
9
  - "ruby-head"
9
10
  script:
10
11
  rspec
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "humanize"
6
- s.version = "1.6.0"
6
+ s.version = "1.6.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
@@ -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.to_i
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.gsub(/ +/, ' ')
52
+ o.squeeze(' ')
53
53
  end
54
54
 
55
55
  class << self
@@ -1,5 +1,6 @@
1
1
  TESTS = [
2
2
  [-1, "negative one"],
3
+ [-0.042, "negative zero point zero four two"],
3
4
  [0, "zero"],
4
5
  [8.15, "eight point one five"],
5
6
  [8, "eight"],
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.0
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.11
116
+ rubygems_version: 2.6.13
118
117
  signing_key:
119
118
  specification_version: 4
120
119
  summary: Extension to Numeric to humanize numbers
@@ -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