humanize 2.2.0 → 2.2.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
  SHA256:
3
- metadata.gz: 661c151af271e0466182d921e454411bb9f498a1326ba35886593578afffda7e
4
- data.tar.gz: 3b036215db1e2a6a426e054a8c4c83a2333e0e0b1dd5d70ec1a26ec0c16cf880
3
+ metadata.gz: a199cc799271e2ad89bc2a052463096d94f695e13890345e1287ad238df86549
4
+ data.tar.gz: 7160f08b71d9d4a01764dcf746888f851ae94a9d856a4966dbfc832e7168abda
5
5
  SHA512:
6
- metadata.gz: e6c2a168aba5b641544f336e17618b9f9a9e50e2e7d8356421be4b62f087ae62a94a12d6cef7f5e901fe5cfd2e63cddc3651e3e0d49caba908077cbb14e720f7
7
- data.tar.gz: e98dce671e79a94d65263f4d743d344a79e347e8f809e8429c823d42f534978ed346a85091432f24cb42813848919fbe674c0c243fe2c232ba8da703241e2602
6
+ metadata.gz: a9b690fcf807fbc31aa4c88697518c39bae4d8d53618f7d3ec2ed36f91fadad46cfaf3d027c3e2c4d779df27a87e2d7116fac887d9d512c0c47d2e3e3617db6d
7
+ data.tar.gz: 8012ba707119e875b54cb00f47caecaaa3ad32c99da6b819b41df038929ddf9f3f3c4979a4aa9fe2863ce10dbdee471b7d5530a9761a642aad95e2db0a38d691
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "humanize"
3
- s.version = "2.2.0"
3
+ s.version = "2.2.1"
4
4
 
5
5
  s.required_ruby_version = '>= 2.3'
6
6
  s.require_paths = ["lib"]
@@ -41,9 +41,7 @@ module Humanize
41
41
  grouping = LOTS[iteration]
42
42
  return unless grouping
43
43
 
44
- if plural
45
- grouping.sub! 'lhão', 'lhões'
46
- end
44
+ grouping.sub! 'lhão', 'lhões' if plural
47
45
 
48
46
  parts << "#{grouping}#{conjunction(parts, use_and)}"
49
47
  end
@@ -12,7 +12,7 @@ RSpec.describe Humanize, "pt locale" do
12
12
  [1000, 'mil'],
13
13
  [1002, 'mil e dois'],
14
14
  [2000, 'dois mil'],
15
- [2002, 'dois mil e um'],
15
+ [2002, 'dois mil e dois'],
16
16
  [10_000, 'dez mil']
17
17
  ]
18
18
 
@@ -36,7 +36,7 @@ RSpec.describe Humanize, "pt locale" do
36
36
  nan = inf + neg_inf
37
37
 
38
38
  expect(inf.humanize).to eql('infinito')
39
- expect(neg_inf.humanize).to eql('infinito negativo')
39
+ expect(neg_inf.humanize).to eql('negativo infinito')
40
40
  expect(nan.humanize).to eql('indefinido')
41
41
  end
42
42
  end
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: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jack Chen
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-07 00:00:00.000000000 Z
12
+ date: 2019-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mutant