JohnnyNumber5_palindrome 0.1.1 → 0.2.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: 8235abd62945d424e51663da1915f35c0fd8426fc004d7b2a1616dbac0ed1231
4
- data.tar.gz: d29aa73fa396b240247c0f4f0ea22fc4f66f917960080ddc5bb493ffc62edfe2
3
+ metadata.gz: cba02ec9a641197350fc37dcf8804fbed995a8ebeea3a466354e1031e743ea69
4
+ data.tar.gz: fb558fd28742e7f4ccaf3cfde3b15b034bd6488b7b705a1e7a7c1b9af0e1adf4
5
5
  SHA512:
6
- metadata.gz: f9668ead149614aa3bd002c7ff1ae58fe10074ee48980805cd433d9442f75e7a7cb562ea3c1129d6585968ed8d9560ff35e256d57c5647387e54a7e1ae949dd1
7
- data.tar.gz: '03621986fb7c7c9eced5a46d5bf71b86c8f7aeab0294f6217ed4f1fe50b94a5f02bfc62b1d8967f84fb6a09414dad1a5f981d062d03e679c308a3ee60370a177'
6
+ metadata.gz: 06d3b4b1a7e51ecc6b7df854cc5414d53b845e342af1803eac2e8de80aa9407675a03d0fd85fdeb524c339d7ab12d8a0af1da13c3c8ea755ea5aa5aef66843c7
7
+ data.tar.gz: 454079a4bddf459e8d7426fb5c4c131b7a948283e15378b776e6013e453ff29bd87c23330c95a58b0a33f8e89e331169ce89ba245a03713df252a144a0fae102
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- JohnnyNumber5_palindrome (0.1.1)
4
+ JohnnyNumber5_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -15,11 +15,15 @@ module JohnnyNumber5Palindrome
15
15
  private
16
16
 
17
17
  # Converts the string's content to lower case.
18
- def processed_content
19
- scan(/[a-z]/i).join.downcase
20
- end
18
+ def processed_content
19
+ to_s.scan(/[a-z0-9]/i).join.downcase
20
+ end
21
21
  end
22
22
 
23
23
  class String
24
24
  include JohnnyNumber5Palindrome
25
25
  end
26
+
27
+ class Integer
28
+ include JohnnyNumber5Palindrome
29
+ end
@@ -1,3 +1,3 @@
1
1
  module JohnnyNumber5Palindrome
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: JohnnyNumber5_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Nelson