rudge 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rudge.rb +2 -1
- data/lib/rudge/abbreviations.rb +9 -9
- 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: edb0b387c52111c285a56e7b82a53ac8633ae9c7
|
4
|
+
data.tar.gz: 80f1c6b8d41f115e59d299a9437dce9f7143e8aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a76d44632d5a827bdc5e0690a9ae37559db4b70cb8eef074d8863e5f7d969746c72db2eaf75737e4cdbfb7e0b8097a90328f2f6811a04597ecbfbf2997041cf
|
7
|
+
data.tar.gz: b50d07dd26c9609112715f1832cc368d23dd9d5454f170d369da28f970bcb978001aba4ed3c4f2d668c9fd278ce2e0223953dd847cd489a8e3b1bcb9782ee307
|
data/lib/rudge.rb
CHANGED
data/lib/rudge/abbreviations.rb
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
class Rudge
|
2
2
|
class Abbreviations
|
3
|
-
TITLES = %w(jr
|
4
|
-
supt
|
3
|
+
TITLES = %w(jr mr mrs ms dr prof sr sen rep rev gov atty
|
4
|
+
supt det rev col gen lt cmdr adm capt sgt cpl maj)
|
5
5
|
|
6
|
-
ENTITIES = %w(dept
|
6
|
+
ENTITIES = %w(dept univ uni assn bros inc ltd co corp plc)
|
7
7
|
|
8
|
-
MONTHS = %w(jan
|
9
|
-
nov, dec)
|
8
|
+
MONTHS = %w(jan feb mar apr may jun jul aug sep sept oct nov dec)
|
10
9
|
|
11
|
-
DAYS = %w(mon
|
10
|
+
DAYS = %w(mon tue wed thu fri sat sun)
|
12
11
|
|
13
|
-
ADDRESSES = %w(ave
|
12
|
+
ADDRESSES = %w(ave bld blvd cl ct cres dr rd st)
|
14
13
|
|
15
|
-
MISC = %w(vs
|
14
|
+
MISC = %w(vs etc no esp cf)
|
16
15
|
|
17
16
|
def self.list
|
18
|
-
TITLES + ENTITIES + MONTHS + DAYS + ADDRESSES + MISC
|
17
|
+
list = TITLES + ENTITIES + MONTHS + DAYS + ADDRESSES + MISC
|
18
|
+
list = list + list.map { |a| a.capitalize}
|
19
19
|
end
|
20
20
|
|
21
21
|
end
|