alicewinthrop_palindrome 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01dc401df8813ede90407c30a8e180a3b6f6fca009758017f1ff666098762f0c
4
- data.tar.gz: 8ead89e3812bcda8c33d94fe56fdac728788df25dbaa7f3ab5d94bd7dac23c9f
3
+ metadata.gz: b8b75e75f6437620c3bcbf6b553934bed00bc0b846379a8536a00704a4f7d4ba
4
+ data.tar.gz: 2394714aa03a112ac8b1643edb9110336507c87322b06271a1ba6dbd9bb1e0af
5
5
  SHA512:
6
- metadata.gz: ad175a9eabc9eaef7adb3b9b5b61d91e4e0d0597290d4de1009a612792203027fdb773f8f7f15b87fa8cef50f71787fcb90b5f35d35cd4e0ae48d2d7ab875c49
7
- data.tar.gz: be4256a5b46b85bd412bf356849975d5938ad2c3b5288105ba66bd5b8318ce5f15089d8bdafcd535cc97ae0fb3460386f11b1246ffd1430a8564de8131b71b7d
6
+ metadata.gz: 778385b3fab42d3b81a99e840982d5b6d72e94a048f9678a28cc99a954220260864ed467226d7df2c576554c3441c0121ce8cbedf78e74afe14e118e1fb4cf7d
7
+ data.tar.gz: f032332fb5b609d21ba8a7beb8e006bec14ed713d5dd14bae91e73bd9e2cfc19a34a39a5efc02673eafc5d19abc37deb5a70fbac42a5bc04e0d3335b4b12f461
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alicewinthrop_palindrome (0.1.0)
4
+ alicewinthrop_palindrome (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,6 +1,6 @@
1
1
  require "alicewinthrop_palindrome/version"
2
2
 
3
- class String
3
+ module AWinthropPalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
@@ -11,6 +11,14 @@ class String
11
11
 
12
12
  # Returns content for palindrome testing.
13
13
  def processed_content
14
- scan(/[a-z]/i).join.downcase
14
+ to_s.scan(/[a-zA-Z0-9]/).join.downcase
15
15
  end
16
16
  end
17
+
18
+ class String
19
+ include AWinthropPalindrome
20
+ end
21
+
22
+ class Integer
23
+ include AWinthropPalindrome
24
+ end
@@ -1,3 +1,3 @@
1
1
  module AlicewinthropPalindrome
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alicewinthrop_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alice Winthrop