wally_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: e89d9b3a4e472c2e8b6fb6228ee744e9bad93a7d85a233a3fb814a12ed360a7a
4
- data.tar.gz: 533fdf734f98987071e73cd7cedf566f404fc967b6eecdea6eabbff05dee1201
3
+ metadata.gz: afabd9542ac7c8b6c6eb36baa332ce1e8d07451c157a0a291cc5bde38af8a209
4
+ data.tar.gz: 8229526e9332e40fcdfddf25012fab9db3fa8bb44df7333219b1b35f76463aba
5
5
  SHA512:
6
- metadata.gz: 32e0a774ca600214cd14dfbc7a84ef644561e0409471584a147908423e88e32853a15500305117cf3ba18b157e799964c79195d09477b7f0d0658617f6ed9a23
7
- data.tar.gz: d76647b4fb2f5b064192256d0c0aade93b4f35ca95005ba5c9a72f49d3052c2d358bbb220875aaf1fc7701cb19e6d49454c495736c786874cba3ead913a3b9f2
6
+ metadata.gz: b001f9b4aa90927f58dac6d003fc2e823d92a7fd8a26717b6cf1c788df00a68009281eecc199f2a963279397a73383ec0c01f31202809c2c3f201cd7f9044dff
7
+ data.tar.gz: 4e6387e56eab4512f654ebe8008c298c5b0a86c6f680c0670b5b6c2cfa9cf48862fb8250b016fdf966c1817e16d6d5fb91a689eab95eb54bcac9f46ffe77c928
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wally_palindrome (0.1.0)
4
+ wally_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "wally_palindrome/version"
2
2
 
3
- class String
3
+ module WallyPalindrome
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
- self.scan(/[a-z]/i).join.downcase
14
+ self.to_s.scan(/[a-z\d]/i).join.downcase
15
15
  end
16
16
  end
17
+
18
+ class String
19
+ include WallyPalindrome
20
+ end
21
+
22
+ class Integer
23
+ include WallyPalindrome
24
+ end
@@ -1,3 +1,3 @@
1
1
  module WallyPalindrome
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wally_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
  - Micheal Waldrup