rmsmith_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: 7affffa728c18f187c1481dd0a6ccf283f3f3057dc75ddcfad7176057c219ba4
4
- data.tar.gz: a02b14998459453d257678322c11bd245c8607ab641d83fc6ec91d2498e03f73
3
+ metadata.gz: e8388f5dff38c3395f4506ec2703460372123d3ebaec8685c643d7863b2a1336
4
+ data.tar.gz: 491712840116d3a99d65db970ed6ef253bacaf84e33827cabdcf741e7fca4d4c
5
5
  SHA512:
6
- metadata.gz: fdc514f96cebc9677204f13cbe2db4125c26e172c3961af6ef2c5167f76b17801d1e2b447441a87c3b5fc675ba0fac15e3cd32cc92a8a6ded9bcbfdd9a093de3
7
- data.tar.gz: 72e51375606ac4cfc8937228099cbac8b237590e10fca2b69492c6a3db1f3b229f5034855d39b110c4a83784caa4abf92057d90e8794099d9b6b5e478312674f
6
+ metadata.gz: ba64ffd8feb4b3174d49d11542d4de4a927a9695a0addada2468a10980d0ab5a2d5c2799f01fe147bf5f2c8e13d2eff44113ee1891187438f31fd57e68f34f6c
7
+ data.tar.gz: b5450beed3c716da132f1bfeb878b3cf8020b05e4a4d5ff5e5c1ec809880c4f14c697915acf95a894b1c64f024e29bcb2da12dcc86e9eb778369f607c26a8e93
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rmsmith_palindrome (0.1.0)
4
+ rmsmith_palindrome (0.2.0)
5
5
  rake (~> 10.0)
6
6
 
7
7
  GEM
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "rmsmith_palindrome/version"
4
4
 
5
- class String
5
+ module RmsmithPalindome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
@@ -13,7 +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
+ end
18
19
 
20
+ class String
21
+ include RmsmithPalindome
22
+ end
23
+
24
+ class Integer
25
+ include RmsmithPalindome
19
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RmsmithPalindrome
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: rmsmith_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
  - Rebecca Smith