File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- umbrellio-utils (1.5.5 )
4
+ umbrellio-utils (1.6.0 )
5
5
memery (~> 1 )
6
6
7
7
GEM
Original file line number Diff line number Diff line change @@ -63,5 +63,15 @@ def reset_defaults_for_hash(hash)
63
63
end
64
64
end
65
65
end
66
+
67
+ # needs any_ascii gem to work
68
+ def normalize_bank_name ( name )
69
+ result = AnyAscii . transliterate ( name ) . gsub ( /[^A-Za-z0-9]+/ , " " ) . upcase . squish
70
+ result . sub! ( /\A THE\s +/ , "" )
71
+ result . sub! ( /\b LIMITED\b / , "LTD" )
72
+ result . sub! ( /\b COMPANY\b / , "CO" )
73
+ result . sub! ( /\b CORPORATION\b / , "CORP" )
74
+ result
75
+ end
66
76
end
67
77
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
3
module UmbrellioUtils
4
- VERSION = "1.5.5 "
4
+ VERSION = "1.6.0 "
5
5
end
You can’t perform that action at this time.
0 commit comments