triusis_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: 5f303e505b0c9fd63be5e8bac31c3f4cc97d55635521afcba9b98ff48d4a148d
4
- data.tar.gz: d8d5305b95240346b524f1a423ae1687923ec709af02de4d92071b9d8b1d0c1c
3
+ metadata.gz: 27e97b1c2d7b3e1c32219c81e59f63e94c5c9130d7af7ace27b1a2e0bea41164
4
+ data.tar.gz: 1ccac1be4ec257a574820f6667bf8b39c7b3b4580b391007bb3cf40499a254c7
5
5
  SHA512:
6
- metadata.gz: 7dadb97eb2e1d951a97051dea2d6d1456faa477cabc41aa1e5e3c84825cf988cb5d1772afb71ed10fbf36d631d8c5a90a92836f03ea8be096ff2b04d777e3f89
7
- data.tar.gz: e3df57e53f21047cb410fe4dcd9d1265dd12fef498f0e0eda1ba118706f27618e44b083837796eff268d6353587ee0da5b1441f35817ddc8b2ae4f536fdec131
6
+ metadata.gz: c7c21d68feb480e2dd167c5057e140d84b40b3959bc3df58730f8cf3b735b85e3a96b66aab5667448d5d054e66fbb42f5f6d27c84225506c4988580628d82d6a
7
+ data.tar.gz: '0693dc1decdc863a08221f34374533a4031687ed7e6841e05f1bf3c1c6c80697cd889109ce501132690464985a647abeaf32ccd9780034b2ea81879ae08140b9'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- triusis_palindrome (0.1.0)
4
+ triusis_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@
2
2
 
3
3
  require_relative "triusis_palindrome/version"
4
4
 
5
- class String
5
+ module TriusisPalindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
@@ -14,6 +14,15 @@ class String
14
14
 
15
15
  # Returns content for palindrome testing.
16
16
  def processed_content
17
- scan(/[a-z]/i).join.downcase
17
+ to_s.scan(/[a-z\d]/i).join.downcase
18
18
  end
19
+ end
20
+
21
+
22
+ class String
23
+ include TriusisPalindrome
24
+ end
25
+
26
+ class Integer
27
+ include TriusisPalindrome
19
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TriusisPalindrome
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: triusis_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
  - Lukas