string_enhancer_mm 0.2.0 → 0.3.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcc0f6114305aa5dc3ca2d2f9e733809d324bedcd68beb87962f24c3cf3efa53
4
- data.tar.gz: e062ab6f5acf4f932d9937eca7553158e4bb273e9ef7800596e90b4e9d5720c7
3
+ metadata.gz: 00cf1332439a221c42660762189b407df6f01a006a6cdace11d804758ae918c9
4
+ data.tar.gz: 6f321889bb4667edddde7b4f62abe45d149361e732b11be881b80eb06dbd8024
5
5
  SHA512:
6
- metadata.gz: efdb070150741b07c54a0b4a923a9e2fa435627c1eb2d387d43f90a170a6cb2ba7f292e46be3fdef94b3f20cbf4f710fd83e016120b96f78f8f1d7495e1216e9
7
- data.tar.gz: d48592cacda0704738b189deb4089e6bdf4aa0af5531492095c605cad712975098367e255b196f72e4beada2c2918c37ce390670ccaa0325624c833648c02fdb
6
+ metadata.gz: 9dfd2fdd0da06d39e00e1de342b9788a6fa3951cc889077b6ed2b5e41483f0431dd72f1494fc5f3bace8c6fd414699e0ab4368a3e67ebee7ff4b5f2e6fa61fe0
7
+ data.tar.gz: d8c665e0f23900a02773ca6005a1a9b3467f6a1dfe0f0578cb38c0b0529846011f317b6dc7ba92c95db5c0b448446d041e59fc8445252caf84e9aac94c06712c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.3.0] = 2025-10-10
4
+ ### Added
5
+ - 'titleize' method to capitalize each word.
6
+
3
7
 
4
8
  ## [0.2.0] - 2025-10-10
5
9
  ### Added
data/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  The Stringhancer gem extends the Ruby string class with additional methods for formatting, manipulating and querying – making string handling in Ruby even more powerful.
4
4
 
5
+ ## Methods
6
+ - 'titleize': capitalizes each word.
7
+ - 'palindrome?': checks if the word is a palindrome.
8
+ - 'hello_world': outputs "Hello, world!".
9
+ - 'str_to_char_array': spilts string into array of characters.
10
+ - 'str_to_word_array': splits a string into an array of words.
11
+ - 'word_count': counts words in string.
12
+
5
13
  ## Installation
6
14
 
7
15
  TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StringEnhancer
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -26,4 +26,8 @@ module StringEnhancer
26
26
  cleaned_str = str.gsub(/[^a-zA-Z0-9]/, '').downcase
27
27
  cleaned_str == cleaned_str.reverse
28
28
  end
29
+
30
+ def self.titleize(str)
31
+ str.split.map(&:capitalize).join(' ')
32
+ end
29
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: string_enhancer_mm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmischa