marianobitcode_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
  SHA1:
3
- metadata.gz: 77ba758dde6975c8f9561d8b4229b060e07b3464
4
- data.tar.gz: 2a7352091aaecfa2c3c50607c5f13a39d4b869f0
3
+ metadata.gz: 2b54f1b3e326c1485e819931d275fcb49eb3c707
4
+ data.tar.gz: 6068f4e114a3d63de71e2124e4b9f8081fba573c
5
5
  SHA512:
6
- metadata.gz: 96cb61b1607a288bd325d863f910d6b5458fe74948c34384edbdad3eb1c772aba0d3e34603bb462e7cff9fedcdf1689f514e06d3f367798eb344d56980875c0f
7
- data.tar.gz: f5483eed05eb4f05173f7dcbe5518fa701002888a3cd8e13ef39f73d988951b24490586161d0fc50a592831dbf80db5dd7521ad0e0f8b8f9ca205b1525807964
6
+ metadata.gz: 11f8895123857fdc72ac9040410334392de4fd5c881ab991b6680705f2bf9aaeab9dfb1a05bc3052099b47e1fccbbcc3083e30b98509b3024ed2fce9b59c12bc
7
+ data.tar.gz: 8d4366c032fb101f8aaf0b5a9811db6030e93e17e76778e28fc431fe0c8432ec71d0a4d89b1afcc4bf71210a8b519a75bdd0dd7f1cc0408c6ef9f2771ad8b5b5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- marianobitcode_palindrome (0.1.0)
4
+ marianobitcode_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -28,4 +28,4 @@ DEPENDENCIES
28
28
  rake (~> 10.0)
29
29
 
30
30
  BUNDLED WITH
31
- 1.16.1
31
+ 1.16.6
@@ -1,6 +1,6 @@
1
1
  require "marianobitcode_palindrome/version"
2
2
 
3
- class String
3
+ module MarianobitcodePalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
@@ -26,7 +26,15 @@ class String
26
26
 
27
27
  # Returns content for palindrome testing.
28
28
  def processed_content
29
- self.scan(/[a-z]/i).join.downcase
29
+ self.to_s.scan(/[a-z\d]/i).join.downcase
30
30
  end
31
31
 
32
32
  end
33
+
34
+ class String
35
+ include MarianobitcodePalindrome
36
+ end
37
+
38
+ class Fixnum
39
+ include MarianobitcodePalindrome
40
+ end
@@ -1,3 +1,3 @@
1
1
  module MarianobitcodePalindrome
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marianobitcode_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
  - Mariano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-07 00:00:00.000000000 Z
11
+ date: 2018-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler