ismaelSANE_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: 774345ee06e4182943acf47c85883e9672628d0fc9e03672dc7bcc1d049dd407
4
- data.tar.gz: 7cc40890a48cb2294362238a562715b88fab4d12de9e7e72b76b6955d4e1bc49
3
+ metadata.gz: 7969c87c7492d62f133a79e926f1c9d20ec45ae225e30d0df9ee114f39850691
4
+ data.tar.gz: 6eddfa7c81a910fdbe7bdbff829756b8bce20b4b5fa0f452451f07f9dfd423b6
5
5
  SHA512:
6
- metadata.gz: '027454920153422b0518bba28a17e4f2490b9631593a3ee1c43f39293f26c7289d40e1869cb0fbe21b5769dd35462d1dc19868b814a9cc9010a610ca32613845'
7
- data.tar.gz: 3c0d75e9f778b7622e1337b251fb81125fec33ff2e684f367d14fcec52b3bcbeb925d10a5fa07ab447d17c03c65d91d5223528eb36f527d3a351d6c704485964
6
+ metadata.gz: ef28c9969b53b2920a8f4155b6954902fc11407969626b13102876998fed04e2cc7b12229daf7412d66691a19bf223f0dd2673eafebe55e79efd28a97aafe4c0
7
+ data.tar.gz: e74466eb44c1fb4664cf59217f1be3192d7d2106cf49292158429df0231716a3e23fd73e4f998ce7b539e1902695980445a893bce14eca1caa62629629449b7d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ismaelSANE_palindrome (0.1.0)
4
+ ismaelSANE_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "ismaelSANE_palindrome/version"
2
2
 
3
- class String
3
+ module IsmaelSANEPalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
@@ -11,6 +11,14 @@ class String
11
11
 
12
12
  # Returns content for palindrome testing.
13
13
  def processed_content
14
- scan(/[a-z]/i).join.downcase
14
+ to_s.scan(/[a-z\d]/i).join.downcase
15
15
  end
16
16
  end
17
+
18
+ class String
19
+ include IsmaelSANEPalindrome
20
+ end
21
+
22
+ class Integer
23
+ include IsmaelSANEPalindrome
24
+ end
@@ -1,3 +1,3 @@
1
1
  module IsmaelSANEPalindrome
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: ismaelSANE_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
  - Ismael Sane