paco_palindrome 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbcbd5e1901390c73f7422b03b0079d4ddf21771608ca2513e6cef82d5bcca49
4
- data.tar.gz: 1f5eb124559c929723f4c693c1532b0ed968ff36896352bc6420522966a4268c
3
+ metadata.gz: 82979554c40f25051fc6d2000e15ba9e9982719608338361c22c47fddfff8f1a
4
+ data.tar.gz: 17efacf1a558cbc4b7abac4ba447e08ec389009995067d50c8fc38ddf0c5c5f6
5
5
  SHA512:
6
- metadata.gz: 2fccbebf229fb2fbddba4c72c1e003a2f90626321d2872a939afb76d6a0f541dfffefed381e3942b39b7614b1e9cf6264cb37f78301d0db06080d5a6abc11e11
7
- data.tar.gz: 3fc480f3fac4655d15a4fac17fa30f5c03b6123d9c9c9d8329df9e3a7932a4e2aa5962044fa1ed174626c92f6a522e2441ece63c488c392a69d35c039683c4d1
6
+ metadata.gz: fd1e7ea8b0527ca62ef8552a658e37d4d6324db286ceb49e0bc3082e72106971ccec3874d8e81c56cda0281d7adf933108d421b499578fb08b5fd814e74d8afb
7
+ data.tar.gz: da4211834536bd80ec52b733fedede4ea9961c3383f971a345411b55f5ccb3b1e891b9ae47c575b37b72b97f501e985e2b89265c71268672d3c54e1e078ff3ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- paco_palindrome (0.1.0)
4
+ paco_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PacoPalindrome
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "paco_palindrome/version"
4
4
 
5
- class String
5
+ module PacoPalindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
@@ -13,6 +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
+ self.to_s.scan(/[a-z0-9]/i).join.downcase
17
17
  end
18
18
  end
19
+
20
+ class String
21
+ include PacoPalindrome
22
+ end
23
+
24
+ class Integer
25
+ include PacoPalindrome
26
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paco_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
  - Paco