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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 868ffa8d0ad91aba79667f22908d94419ad8956d
4
- data.tar.gz: 240ee3e9b46602e6bd748bbe979bddad49efda57
3
+ metadata.gz: 3785dd1d07b3c65aeea35af665f3114f9a10f825
4
+ data.tar.gz: 93037a29a6c5274bf1d375615cb778816a0abdd1
5
5
  SHA512:
6
- metadata.gz: af12ad0085ae5cb9aef18f6da0f4d5362cabd3a7b0c494eb2e18537fb58a564bc5cb3bd6a62670918a0730729f7d14e70b89b9d37e2d93650e058652aab7c883
7
- data.tar.gz: 0e995c9d2b33bba198a2523a6deba5045eba31d355e04e939b1f286b88faebcd760c8495e5569fcd9d50e0ee96734cecf2070a6690c67d40df4656d6c9522359
6
+ metadata.gz: d69c989c28a78a05dabe2603e99020458999ffffeea4c50356f5113d8e47d9d46f05e4198ba89d11ffe207ad380fae35e3816e1cde1895e78375bf61fa56ba7a
7
+ data.tar.gz: 1fdb7d205ee35d7585751b90b5fbeb6bea4fb48d93c3cf8e85033ade87640f9e201c42e61456ec20b913c1692d1e3e59d181edda46742bb481d12ded9cc116b1
@@ -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
@@ -1,3 +1,3 @@
1
1
  module NameTamer
2
- VERSION = '0.5.2'.freeze
2
+ VERSION = '0.5.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: name-tamer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xenapto