name-tamer 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/name_tamer/name.rb +6 -6
- data/lib/name_tamer/version.rb +1 -1
- 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: 3785dd1d07b3c65aeea35af665f3114f9a10f825
|
4
|
+
data.tar.gz: 93037a29a6c5274bf1d375615cb778816a0abdd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d69c989c28a78a05dabe2603e99020458999ffffeea4c50356f5113d8e47d9d46f05e4198ba89d11ffe207ad380fae35e3816e1cde1895e78375bf61fa56ba7a
|
7
|
+
data.tar.gz: 1fdb7d205ee35d7585751b90b5fbeb6bea4fb48d93c3cf8e85033ade87640f9e201c42e61456ec20b913c1692d1e3e59d181edda46742bb481d12ded9cc116b1
|
data/lib/name_tamer/name.rb
CHANGED
@@ -79,6 +79,12 @@ module NameTamer
|
|
79
79
|
@contact_type = ct_as_sym
|
80
80
|
end
|
81
81
|
|
82
|
+
# Useful method for iterating through the words in the name
|
83
|
+
def each_word(&block)
|
84
|
+
@words ||= slug.split(SLUG_DELIMITER)
|
85
|
+
@words.each(&block)
|
86
|
+
end
|
87
|
+
|
82
88
|
# These lines aren't used and aren't covered by specs
|
83
89
|
# def name=(new_name)
|
84
90
|
# initialize new_name, :contact_type => @contact_type
|
@@ -381,10 +387,4 @@ module NameTamer
|
|
381
387
|
.upcase_initials!
|
382
388
|
end
|
383
389
|
end
|
384
|
-
|
385
|
-
# Useful method for iterating through the words in the name
|
386
|
-
def each_word(&block)
|
387
|
-
@words ||= slug.split(SLUG_DELIMITER)
|
388
|
-
@words.each(&block)
|
389
|
-
end
|
390
390
|
end
|
data/lib/name_tamer/version.rb
CHANGED