isane_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: 7907293d95f804230b66080ce99eda48be960db924fb78d7041fac845657c539
4
- data.tar.gz: 6689666c1b49b9d995b4603d23a7a614ef37f26d0fef0101aeb50e9cf3dfc8c1
3
+ metadata.gz: cb917d3b4a062d4a645426770c6996d5aaffe19a00bb60a890d4fe2e54e4d6d1
4
+ data.tar.gz: 7bada70c031146b6be92399b9d0ae2fb53e19fca9d7c196edf40b26be015c254
5
5
  SHA512:
6
- metadata.gz: 58eba76206f746b167e43fbdb338222beff822263e787f6e0d25ed02c8107ac062278ea220e9811e8716afbf1229fcacfd5068570e967aa817e8786f25f2a823
7
- data.tar.gz: 380a31c9edcdfe98f39cff508684a52a2518c2cd06df094580e3cd379b64470b816dfe79667bb8f24ef0fd9ede51d49b33efd4386dd5efd3f4a69dfd3d62f199
6
+ metadata.gz: a231a1731a1804fdd22da33be1d36d9bf8b489c4273b001f94733a468f65a0938abb1c797cdbe83ff028f4070fc9f625476dfcd525235b2d4fbf6012907b31df
7
+ data.tar.gz: f134df0e2094971d3cc7fa4e67fbf8de107c3776e9a3b6517a6a8ca5b9f03bc3004bb41e771c215a7ad6ec553fc0b250b460590675fe05765984b8a2c6f49a76
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- isane_palindrome (0.1.0)
4
+ isane_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "isane_palindrome/version"
2
2
 
3
- class String
3
+ module IsanePalindrome
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
- 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 IsanePalindrome
20
+ end
21
+
22
+ class Integer
23
+ include IsanePalindrome
24
+ end
@@ -1,3 +1,3 @@
1
1
  module IsanePalindrome
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: isane_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