my_ruby_palindrome 0.1.1 → 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: d04dcf624f81c36c8c5dbb9a1575d62320fe8b16263dfe0ce9bafcf192cd17d8
4
- data.tar.gz: b3eea5de575dffaf058508df1413c40ff9f4c3ba605857a3c09950be2c1d6211
3
+ metadata.gz: e508837ddfdcb6e56868749e4975056a07fbb0b4241b28788de28e8037f2fc8a
4
+ data.tar.gz: 01a8f9d7c707322c69bc57a82ed741faa7d42f1fbe1602d68b54fd639710d7a3
5
5
  SHA512:
6
- metadata.gz: 4bdce44cfce2826ed98f312a5cb4e28f09d2af5b8eeef369f3bcd83df752d64b367d74c85558ecdd7fb744e50f97389abe56d285de9eae2cc11d809faa2aa855
7
- data.tar.gz: 8c4ab3fb35cb7bc7f5e24377c414654fcd3b2c7aa056b1e560101b84c12065063674736674eb0005140ff6fb80c94a7da82dcbf29dc384bd499ca7ca3f559c74
6
+ metadata.gz: ba5494a655cd3a3edf57dd4c8269c9ce4d0436e236c94b94980df21d9a8762464945b19bc35b9f873106119c4838731ad0d83283847eeb28fbe3489f33825fdd
7
+ data.tar.gz: aec4b0bdf1c7ec7a4522c836237ef026658f24b4e7e533ec0c04a9c6c7b39c115fb67699e5eec22c899aeefc656e056982a3dc6e280f8af06f5727735559da86
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ Version 0.2.0
2
+ Add support to detect Integer palindromes
3
+
1
4
  Version 0.1.1
2
5
  Change name due to a conflicting name with other Gem
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- my_ruby_palindrome (0.1.1)
4
+ my_ruby_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 "my_ruby_palindrome/version"
4
4
 
5
- class String
5
+ module MyRubyPalindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
@@ -13,6 +13,14 @@ class String
13
13
 
14
14
  # Returns content for palindrome testing.
15
15
  def processed_content
16
- scan(/[a-z]/i).join.downcase
16
+ to_s.scan(/[a-z\d]/i).join.downcase
17
17
  end
18
18
  end
19
+
20
+ class String
21
+ include MyRubyPalindrome
22
+ end
23
+
24
+ class Integer
25
+ include MyRubyPalindrome
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MyRubyPalindrome
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: my_ruby_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrex Lorenzini