jdwyer7_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: a363a587c95bc0f42bc90608c8bf8eec3ab9afdcbf215cec57967b927b4939c1
4
- data.tar.gz: 4437d424dcaa4869682f66145bd0849b4cd3016e5e96d76b19ee4a1b941b405c
3
+ metadata.gz: 0e777f2fc8ccb1ea840b521814428f43fbd0f3174509a69027e882e9f6fa3d8c
4
+ data.tar.gz: 063be79e72d6a68f482e233a2df8721d9cdb099566073bade320a6188fc90ede
5
5
  SHA512:
6
- metadata.gz: be66bfdebee2a8613f82f43576834b77d3c4b0e8ad336e1ec9a5f7b5cbee4d3a8efb703f12eb32a206fd527d0fd158138ffcef4cd2f163c8d092df55c05c7072
7
- data.tar.gz: 96753fb7efdfedb1ac753f72f192ce5e6375389db3caec2fdce21d5c72b6f8405eef83cbbc7a977aa7ccceb056b55b3088de83c8b04c30ddcd96ba1bca512025
6
+ metadata.gz: c5dd8581a16b20bdad735fd514ccd2fabe0d1ffe15ee1680561467d41332f412d512984f9c68319e8085bc256ea4a9e9c229da4fe15f57f2fe7ccc4d1c1f4f29
7
+ data.tar.gz: eaa39252c55e259a7fb665191ed0a0bdd742c7b900e97cd0a5cf8ddde9b899a5b40ef3c3ae2d89ea1dd0244df8bf1e59bdcc3010436acb4018c4ba5e6e02a40b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jdwyer7_palindrome (0.1.0)
4
+ jdwyer7_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "jdwyer7_palindrome/version"
2
2
 
3
- class String
3
+ module Jdwyer7Palindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
@@ -11,6 +11,15 @@ 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
+
17
+ end
18
+
19
+ class String
20
+ include Jdwyer7Palindrome
21
+ end
22
+
23
+ class Integer
24
+ include Jdwyer7Palindrome
16
25
  end
@@ -1,3 +1,3 @@
1
1
  module Jdwyer7Palindrome
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: jdwyer7_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
  - Justin Dwyer