icu_name 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/icu_name/name.rb +5 -4
- data/lib/icu_name/version.rb +1 -1
- metadata +2 -2
data/lib/icu_name/name.rb
CHANGED
@@ -17,14 +17,14 @@ module ICU
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# First name getter.
|
20
|
-
def first(
|
21
|
-
return ActiveSupport::Inflector.transliterate(@first) if
|
20
|
+
def first(opts={})
|
21
|
+
return ActiveSupport::Inflector.transliterate(@first) if opts[:ascii]
|
22
22
|
@first
|
23
23
|
end
|
24
24
|
|
25
25
|
# Last name getter.
|
26
|
-
def last(
|
27
|
-
return ActiveSupport::Inflector.transliterate(@last) if
|
26
|
+
def last(opts={})
|
27
|
+
return ActiveSupport::Inflector.transliterate(@last) if opts[:ascii]
|
28
28
|
@last
|
29
29
|
end
|
30
30
|
|
@@ -57,6 +57,7 @@ module ICU
|
|
57
57
|
match_first(first(opts), other.first) && match_last(last(opts), other.last)
|
58
58
|
end
|
59
59
|
|
60
|
+
# :stopdoc:
|
60
61
|
private
|
61
62
|
|
62
63
|
# Canonicalise the first and last names.
|
data/lib/icu_name/version.rb
CHANGED