jasonrhoads_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: 13834c4af08c6cb38a839db4d029fbcfca140b00f6fe221e8ee1c35d2ebd6d5c
4
- data.tar.gz: 547280b97341d1d9a67492ef2a9634b81ebd76f0db6aa1b158f709f099236c1a
3
+ metadata.gz: b5d0975dc4bc310fa298865aac3d62b26b06242617c312ab04ecb134b592d14c
4
+ data.tar.gz: 53cdd7e5f1c381c3788ef010d63086703cfdbac97cd8cf73b1df56e9fbeca036
5
5
  SHA512:
6
- metadata.gz: 3ff01ced1882f983764107fa91cf63988fbb180e9f4746b9125a8f2cc643e8d51b03a3568313e21ad93f3ff543efde6238c989ff0f72ae1b81ccb6a3e9f3ba4b
7
- data.tar.gz: aaa066d4222dc9a71952f98543ccd4783263dc6b860f5e9334a15bc8b3a669ab1981a1929fc04c2b5eefaddf74e942c1898e3d3981c023766092e2b8869e3f10
6
+ metadata.gz: 168707308c30c2b0ddf2290da4b935b28d460a5dd1a01fb232a12a41d0ae83ae7664174593a2a6d0651914b66e4784b87379f7abdbd77f9a5c1e08a48a8cf251
7
+ data.tar.gz: 5ea24a7b1905711ee4ecde6804072cd9938b86d255446f99efbefe73663b1758806ec7368fe2ce9535fd93f69dceac7151c9cb1b0fb2511cf8ed7b826171e3d6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jasonrhoads_palindrome (0.1.0)
4
+ jasonrhoads_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "jasonrhoads_palindrome/version"
2
2
 
3
- class String
3
+ module JasonrhoadsPalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
@@ -10,6 +10,14 @@ class String
10
10
  private
11
11
  # Returns content for palindrome testing.
12
12
  def processed_content
13
- scan(/[a-z]/i).join.downcase
13
+ to_s.scan(/[a-z0-9]/i).join.downcase
14
14
  end
15
15
  end
16
+
17
+ class String
18
+ include JasonrhoadsPalindrome
19
+ end
20
+
21
+ class Integer
22
+ include JasonrhoadsPalindrome
23
+ end
@@ -1,3 +1,3 @@
1
1
  module JasonrhoadsPalindrome
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: jasonrhoads_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
  - jasonrhoads