connortorrell_palindrome 0.1.0 → 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: d1dc354c8cc09dbe24b14d1f3017e06192167d09950a7b8750a301673bbf5d17
4
- data.tar.gz: bcc89935489ae015c33800f26acea00bf03a75cd2ee7fcec52724360a86a6279
3
+ metadata.gz: b07937ed00be8657083247c269aec8226c45da473ad62f7e2844ae3d04a448d2
4
+ data.tar.gz: 3909e0760012b6b331bd85fe5ef0498d2db9dc5e4b4f7973e2e01ac4e0c355fa
5
5
  SHA512:
6
- metadata.gz: 167dd886fd049ca92763849e3f5cbd314ee4dc5ebc099c87e472b3c471b209f0f96c74ace80ea4a07fa2ceda717408f37bd0ee9c77d8aa17b13ab82949998525
7
- data.tar.gz: efa50d634a2553f8d91db5c89f30acfc0743da1ed787a1bf6cd635725702ae7a549ec295dbca48365acaa951d7f7d28a4db559aaeef0a42d63e87a8f0ddfab0c
6
+ metadata.gz: bf8eaa0f368fabf093a3a7e14a2f591576037bb8be45e56bd4b6eac35daa6d8a94ebfc824cd52d9bbf8e2ec993d0f4c336a031ae43aa5d8a33ebd0c5e1730f29
7
+ data.tar.gz: '09b128ce5203b3614924bfcd1e4624655c37f8a11e04ba497204320d585dff9d926497955eb6c8b9ee3748002d5795f4d1beb956e5a18dc921abecb7da4e11f6'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- connortorrell_palindrome (0.1.0)
4
+ connortorrell_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "connortorrell_palindrome/version"
4
4
 
5
- class String
5
+ module ConnortorrellPalindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
@@ -13,6 +13,14 @@ class String
13
13
 
14
14
  # Returns content for palindrome testing.
15
15
  def processed_content
16
- scan(/[a-z]/i).join.downcase
16
+ to_s.scan(/[a-z\d]/i).join.downcase
17
17
  end
18
18
  end
19
+
20
+ class String
21
+ include ConnortorrellPalindrome
22
+ end
23
+
24
+ class Integer
25
+ include ConnortorrellPalindrome
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConnortorrellPalindrome
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: connortorrell_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Connor Torrell