matts_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: cb9cbff584c6fda5a1d5a784c31fbea92548ce412911689188fbd01c7d620323
4
- data.tar.gz: c9fbdb1d7735f87a1cf8f7a4c2e29b8cecf061fcaa643955b353f52296fb3d98
3
+ metadata.gz: 440bc453ddd347a42323d8f4c355ba8e1f0f3b457bcfa28c6293b187c28330ce
4
+ data.tar.gz: 37514518e03eab9fda855b6055699cc3f27f37b63f72eac70ac748c8f966c89a
5
5
  SHA512:
6
- metadata.gz: 341491fc37b8bd26409de3d3f32cb59e13e64e29b0383e284c6b3966db4961b8c8acbd0f9461d7966eec362ea4b400b8c4062eb48e8f09e3634c3cfa0fb8f453
7
- data.tar.gz: b29bc087be4c634acba27775ce438413df4dc3e66c522a2d5f4a15b9d1b980e31e79fe0f7b687ad140dce2b3ffa67b2eb562b3ea07efa2d7b2216afe2d84c071
6
+ metadata.gz: dc456cc78e97a731c6ff58d501d92cb54d6d7930ca4fa12e8f7ec25fba19e59bb0fd070f85d66a6ff094256379f976a1c4b86d0cbb5ce504a57173a91817a96b
7
+ data.tar.gz: 6250c074e74633c8a730942559fe3911c0459676ad70f27e70488b2581176a2cc36801d23c7ef3f3efb78d9639a916dadfcba03ce9670fcc4fa6708172999ce9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- matts_palindrome (0.1.0)
4
+ matts_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,10 @@
1
1
  require "matts_palindrome/version"
2
2
 
3
- class String
3
+
4
+ module MattsPalindrome
5
+ class Error < StandardError; end
6
+ # Your code goes here...
7
+
4
8
  def palindrome?
5
9
  processed_content == processed_content.reverse
6
10
  end
@@ -8,12 +12,15 @@ class String
8
12
  private
9
13
 
10
14
  def processed_content
11
- self.scan(/[a-z]/i).join.downcase
15
+ self.to_s.scan(/[a-z1-9]/i).join.downcase
12
16
  end
13
17
 
14
18
  end
15
19
 
16
- module MattsPalindrome
17
- class Error < StandardError; end
18
- # Your code goes here...
20
+ class String
21
+ include MattsPalindrome
22
+ end
23
+
24
+ class Integer
25
+ include MattsPalindrome
19
26
  end
@@ -1,3 +1,3 @@
1
1
  module MattsPalindrome
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: matts_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
  - Matt Schmitz