lbuckley_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: 26e9ec8c5fbe34222b7f5d2aa638f7cb93dd02d215a2dd0a060acbcf9bf7e2a8
4
- data.tar.gz: 0d19790752d887bdeab4eaa65d3b58de7701ce16706f5ad8a0bc6ff2d35493a3
3
+ metadata.gz: c4e78ded177d909e2989121ecf7edce08090c7956c9af8e8579e18ee151361ba
4
+ data.tar.gz: 352d3efade533bf50d512e9aaa3502de2488c03280206d0cbe4ae0d9970e73f2
5
5
  SHA512:
6
- metadata.gz: 341b84079d5446717f61c7d9a1673f37933a8f922ea675f0c73cc309f1ec27e13b4d072c3e5075cb3002d5f67c96669bef764acebffb49618322072d3f3b79bb
7
- data.tar.gz: 0e3f2c51755f63f26a0c85d32417e62e4fd710d253a9bdb76cc62ffe40fe521058f7ea1bc37cde29bb767c35478d0a414dc81e8939de05249d9b8c5c6ec3fd67
6
+ metadata.gz: 5d7ba9d4ff3ff1c27f62b3b4309ae3467bec883ccb4c130cc105d638e3959022192815e2a6ecdcdc27628bd7bcf3f5ff3e5b1f2201ac5d3c232b044e5b336956
7
+ data.tar.gz: 897a73f407f6930c0edef99ad98017f6025351c7f558e6252f7b12fb158a002a06d6e3f456ea656e924fad060fcb9d65258a1610787253b6d6dbfeca77e046ae
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lbuckley_palindrome (0.1.0)
4
+ lbuckley_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 "lbuckley_palindrome/version"
4
4
 
5
- class String
5
+ module LbuckleyPalindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
@@ -13,7 +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
19
 
20
+ class String
21
+ include LbuckleyPalindrome
22
+ end
23
+
24
+ class Integer
25
+ include LbuckleyPalindrome
26
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LbuckleyPalindrome
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: lbuckley_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
  - Leah Buckley