brcep-vandal 3.3.0 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brcep/convert_acronym.rb +27 -27
- data/lib/brcep/version.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 152196156cf092ca9564cb8dff674f1432174fb5
|
4
|
+
data.tar.gz: 2fb616b8361a1f910683e07f4b64899e369af714
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ed5b4693ccf8ae0f85e3911609dc5109f36719c4e8ee69f98dbe91be218fc92e73d625fe5989ddbb602c2b279c7b12b6d83d1ad276586c1451f2d15013cd2c0
|
7
|
+
data.tar.gz: a64c113ff79b286be0d4def033ac0a96f522cb726ba9fe9458773cb95245b9468c810612ce6f04c2358dc08c73f96fe840c900e857a74d447b9fbc182b0b4a62
|
@@ -1,33 +1,33 @@
|
|
1
1
|
class ConvertAcronym
|
2
2
|
def self.convert(acronym)
|
3
3
|
ufs = {
|
4
|
-
'AC'
|
5
|
-
'AL'
|
6
|
-
'AP'
|
7
|
-
'AM'
|
8
|
-
'BA'
|
9
|
-
'CE'
|
10
|
-
'DF'
|
11
|
-
'ES'
|
12
|
-
'GO'
|
13
|
-
'MA'
|
14
|
-
'MT'
|
15
|
-
'MS'
|
16
|
-
'MG'
|
17
|
-
'PA'
|
18
|
-
'PB'
|
19
|
-
'PR'
|
20
|
-
'PE'
|
21
|
-
'PI'
|
22
|
-
'RJ'
|
23
|
-
'RN'
|
24
|
-
'RS'
|
25
|
-
'RO'
|
26
|
-
'RR'
|
27
|
-
'SC'
|
28
|
-
'SP'
|
29
|
-
'SE'
|
30
|
-
'TO'
|
4
|
+
'AC' => 'Acre',
|
5
|
+
'AL' => 'Alagoas',
|
6
|
+
'AP' => 'Amapá',
|
7
|
+
'AM' => 'Amazonas',
|
8
|
+
'BA' => 'Bahia',
|
9
|
+
'CE' => 'Ceará',
|
10
|
+
'DF' => 'Distrito Federal',
|
11
|
+
'ES' => 'Espírito Santo',
|
12
|
+
'GO' => 'Goiás',
|
13
|
+
'MA' => 'Maranhão',
|
14
|
+
'MT' => 'Mato Grosso',
|
15
|
+
'MS' => 'Mato Grosso do Sul',
|
16
|
+
'MG' => 'Minas Gerais',
|
17
|
+
'PA' => 'Pará',
|
18
|
+
'PB' => 'Paraíba',
|
19
|
+
'PR' => 'Paraná',
|
20
|
+
'PE' => 'Pernambuco',
|
21
|
+
'PI' => 'Piauí',
|
22
|
+
'RJ' => 'Rio de Janeiro',
|
23
|
+
'RN' => 'Rio Grande do Norte',
|
24
|
+
'RS' => 'Rio Grande do Sul',
|
25
|
+
'RO' => 'Rond&ohat;nia',
|
26
|
+
'RR' => 'Roraima',
|
27
|
+
'SC' => 'Santa Catarina',
|
28
|
+
'SP' => 'São Paulo',
|
29
|
+
'SE' => 'Sergipe',
|
30
|
+
'TO' => 'Tocantins'
|
31
31
|
}
|
32
32
|
ufs[acronym]
|
33
33
|
end
|
data/lib/brcep/version.rb
CHANGED