gokninski_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: 9c6a5416f57ea8039a6af0f1a6c18dd65905e0478e3519d8187d5a1d129fbc4d
4
- data.tar.gz: 16b9d2e6dcfcfeda26b284ced3826b60ce987257aeaea2a310cbe9ed4419b625
3
+ metadata.gz: 771871dfaaa2df28bb3207a97ebd15f9fc7181b4b934d2a02e48dadc7298c182
4
+ data.tar.gz: 26db46140724eda184cc2c93f22905855f39fc2b93e23937304945cc9dea6a39
5
5
  SHA512:
6
- metadata.gz: adf600e93d90bec092d671a4e2809ae1ba929145cedfb15687bdb949ae13372e47bf43fb717318c6ea7c42ddaab818a54ecbc1f1b3d4bbf7d0719d510f3f5655
7
- data.tar.gz: 0646701c2747e3f478326762eceec890b50f82d2f54999d51134e98e2320cb0904da0a35ecd3acca3cfac187447abf0869fc76e6999c64e299cbdffe1d399b10
6
+ metadata.gz: 23d17a0d6e3ed04aec4618c95b81d2e69c0d88cdbf2ea0ae1f4062e124b2b91a8202d905425a6adcc460c8e8013ffd1d7ecd42bdd56ae3ccbdcd386493699c33
7
+ data.tar.gz: f462e58a60a03ed1a53bb693163f52faa84d789aa3c7d8a6a7bbe7ea4b450911d7875d63a065e442251e20fe7edc72b9bf2e0b828c07f7cf01f606894e873ea6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gokninski_palindrome (0.1.0)
4
+ gokninski_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "gokninski_palindrome/version"
2
2
 
3
- class String
3
+ module GokninskiPalindrome
4
4
 
5
5
  # Returns true for palinfrome, 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
- self.scan(/[a-z]/i).join.downcase
14
+ self.to_s.scan(/[a-z\d]/i).join.downcase
15
15
  end
16
16
  end
17
+
18
+ class String
19
+ include GokninskiPalindrome
20
+ end
21
+
22
+ class Integer
23
+ include GokninskiPalindrome
24
+ end
@@ -1,3 +1,3 @@
1
1
  module GokninskiPalindrome
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: gokninski_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
  - Gregory Okninski