banderson_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: f2e1556a668344b001c76c3615b322fdf7c0d773660b6e47680e353e98878ace
4
- data.tar.gz: 9b1f849d4843a72b27d1c777af1c6e8875e76e6fa2d63f27ac4dbbb3a5da51bf
3
+ metadata.gz: 9835dd468bbd2c6754f955648c2e88e08119bc2059a7db1f9a2c069420a2faaa
4
+ data.tar.gz: 0bc18f440818fa6a4c59ea9e61ac8a690daae0700fb499e55da1eda7d9f8ced7
5
5
  SHA512:
6
- metadata.gz: f325c42910254237b72fc2b132c78ac05dcff4f487b34507c905a553768905e584f922ae87947cf9d03193bd003d8813a7a824c5c15f348b73332255123e08c3
7
- data.tar.gz: 33c047c9033e06c5c01822bfd3ac0a3eb7bdca498d8c18b3609950a4320bf46d12d9208fd4f2678042b85d452d549364126ae028c37c618b1490950f7fee392f
6
+ metadata.gz: 2dff2fc32a6e484bfafb481b8788a5fa6e8d80c382c90135767909ae6942c359d6017dad2be31d1d83c9c14602034c00c0beb9616dbed7919c8490f99d20126c
7
+ data.tar.gz: 573ff7a611cfb488cadcc8b72f47f70a093cc813fe2c23af4d1bab8464ae820259cda0f0b2d7898dbc8d6d52a6068090dfcd255ec14d549c2210fab3a85360bb
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- banderson_palindrome (0.1.0)
4
+ banderson_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "banderson_palindrome/version"
2
2
 
3
- class String
3
+ module BandersonPalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
@@ -11,6 +11,14 @@ class String
11
11
 
12
12
  # Returns content for palindrome testing.
13
13
  def processed_content
14
- scan(/[a-z]/i).join.downcase
14
+ self.to_s.scan(/[a-z0-9]/i).join.downcase
15
15
  end
16
+ end
17
+
18
+ class String
19
+ include BandersonPalindrome
20
+ end
21
+
22
+ class Integer
23
+ include BandersonPalindrome
16
24
  end
@@ -1,3 +1,3 @@
1
1
  module BandersonPalindrome
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: banderson_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
  - Blaine Anderson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-14 00:00:00.000000000 Z
11
+ date: 2020-10-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn enough ruby to be dangerous palindrome detector
14
14
  email: