tomosprotheroe_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: 51d6517f8f395d90e3f4ecd4f34236cea45f347c4f816af57d880f4c5e8a558b
4
- data.tar.gz: ba11fb2cb74d83fb9bb3874f0869e25bb424c9bf1ceb6f93a9b3a5ccf3a4c6fd
3
+ metadata.gz: 19968077462b69166e7299ee06795665421225b3c115d1ab86953b08f70dcb89
4
+ data.tar.gz: ec37677dc0830012737b9a86798cd95bc11193352a2d9c85d70ac6513d2b2f0b
5
5
  SHA512:
6
- metadata.gz: 54636209351af5cdc28131d2bb1958c5f2fd37eec66ca2fdcc60047d39e6c3a0a306367e922e2c5817349b29994ff355196b69ad05ca32d8f963cb4741ef402d
7
- data.tar.gz: 0c2d02726600e2ef5cd79ec5d18c82c1578059b11f6573c02d6b4cb9c8f3f6c981ee22aab6bf691334c28f26446901f7652cd5948e6f4c7faecd5a4d85ca1b9a
6
+ metadata.gz: 96f18e3a6c7d0ae597966d6c1ca5d14e968caaae7fc1912cd809224ca9e7dcc97fef894b21025edb201cb713f9f8627a6adc49548eb48ce1581bca9edceb2329
7
+ data.tar.gz: 6e702f15c1d2ee28b468b5286f96d5edff64d37f9f7f367b6619eaa647ea8fa5686d1ea359de8128810bffef7a03c95bd2e483cc782ab50b6c4253bcf67a67c1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tomosprotheroe_palindrome (0.1.0)
4
+ tomosprotheroe_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -27,4 +27,4 @@ DEPENDENCIES
27
27
  tomosprotheroe_palindrome!
28
28
 
29
29
  BUNDLED WITH
30
- 2.2.17
30
+ 2.2.25
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TomosprotheroePalindrome
4
- VERSION = "0.1.0"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -1,8 +1,6 @@
1
- # frozen_string_literal: true
1
+ require "tomosprotheroe_palindrome/version"
2
2
 
3
- require_relative "tomosprotheroe_palindrome/version"
4
-
5
- class String
3
+ module TomosprotheroePalindrome
6
4
 
7
5
  # Returns true for a palindrome, false otherwise.
8
6
  def palindrome?
@@ -13,6 +11,14 @@ class String
13
11
 
14
12
  # Returns content for palindrome testing.
15
13
  def processed_content
16
- scan(/[a-zA-Z]/i).join.downcase
14
+ scan(/[a-z0-9]/i).join.downcase
17
15
  end
16
+ end
17
+
18
+ class String
19
+ include TomosprotheroePalindrome
20
+ end
21
+
22
+ class Integer
23
+ include TomosprotheroePalindrome
18
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tomosprotheroe_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
  - Tomos Protheroe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-09-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn Enough Ruby palindrome detector
14
14
  email: