codyjamesbrooks_palindrome 0.1.0 → 1.0.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 +4 -4
- data/CHANGELOG.md/342/200/235 +10 -0
- data/Gemfile.lock +1 -1
- data/lib/codyjamesbrooks_palindrome.rb +13 -5
- data/lib/codyjamesbrooks_palindrome/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a9415e55cca321069c097992b949d407c1396eeb05fa219b527dbd506749bc2
|
4
|
+
data.tar.gz: 2df128561f08c793f72f41268737681af22b811aa3216237fc17f99a555ef19e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9c49c0da8b21b2ccdf4788829ee3b1b6fc1d2c576599e0ffcee66199f0065a1942d7c2e4bf92d2dd4d421019512a9a4c3e4fa9520637d6967ee9a79bfc284a5
|
7
|
+
data.tar.gz: 5762bc9e87c362de924ad2c052d3aae409cc8c301fe432133ee9387b7469d3cc957acc175d409c34865492d109130716d543c25d6a7e4434cb29f2546b635bbe
|
data/CHANGELOG.md/342/200/235
CHANGED
@@ -1 +1,11 @@
|
|
1
|
+
8:08 7/5/2021
|
2
|
+
- refactored into module included into String and Integer Class
|
3
|
+
- added test and functionality for integers
|
4
|
+
- removed letters
|
5
|
+
- refactored processed_content
|
6
|
+
- added letters method and tests
|
7
|
+
- small updates to Gemfile, README, and gemspec
|
8
|
+
- added CHANGELOG.md
|
9
|
+
|
10
|
+
7/5/21
|
1
11
|
- initialize repo
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,22 @@
|
|
1
1
|
require "codyjamesbrooks_palindrome/version"
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
module CodyjamesbrooksPalindrome
|
4
|
+
|
5
5
|
def palindrome?
|
6
6
|
processed_content == processed_content.reverse
|
7
7
|
end
|
8
|
-
|
8
|
+
|
9
9
|
private
|
10
|
-
#
|
10
|
+
# Return content for palindrome testing
|
11
11
|
def processed_content
|
12
|
-
scan(/[a-
|
12
|
+
to_s.scan(/[a-z0-9]/i).join.downcase
|
13
13
|
end
|
14
14
|
end
|
15
|
+
|
16
|
+
class String
|
17
|
+
include CodyjamesbrooksPalindrome
|
18
|
+
end
|
19
|
+
|
20
|
+
class Integer
|
21
|
+
include CodyjamesbrooksPalindrome
|
22
|
+
end
|