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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2e73bea5dd77990c4dc66355a4bf3fa05ea2d64d4379b7eb60f1ce8cabef867e
4
- data.tar.gz: c191e3257ac77cabb2127d03708fb16b17144306ffbce1c0e4e3fa5cb58e935c
3
+ metadata.gz: 2a9415e55cca321069c097992b949d407c1396eeb05fa219b527dbd506749bc2
4
+ data.tar.gz: 2df128561f08c793f72f41268737681af22b811aa3216237fc17f99a555ef19e
5
5
  SHA512:
6
- metadata.gz: d1871a4978a7b263a987f3c0c0fd474fe83c0fd09f25960d8036f86a22e6c3ca706c5d853577361e86c1abda4fe5dd1ea6f2e66a7a9b452fe415601884e3ae88
7
- data.tar.gz: 6bb8b231a8d0bb914ab88ec36fc6016e45b972bdf17cab50e7dd6a8f0f5aba2a2a79970a4a9d370ea1397987d6233603fbcdef06aeb29b0027de11527a628fea
6
+ metadata.gz: f9c49c0da8b21b2ccdf4788829ee3b1b6fc1d2c576599e0ffcee66199f0065a1942d7c2e4bf92d2dd4d421019512a9a4c3e4fa9520637d6967ee9a79bfc284a5
7
+ data.tar.gz: 5762bc9e87c362de924ad2c052d3aae409cc8c301fe432133ee9387b7469d3cc957acc175d409c34865492d109130716d543c25d6a7e4434cb29f2546b635bbe
@@ -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,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codyjamesbrooks_palindrome (0.1.0)
4
+ codyjamesbrooks_palindrome (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,14 +1,22 @@
1
1
  require "codyjamesbrooks_palindrome/version"
2
2
 
3
- class String
4
- # Returns true for a palindrome, false otherwise.
3
+ module CodyjamesbrooksPalindrome
4
+
5
5
  def palindrome?
6
6
  processed_content == processed_content.reverse
7
7
  end
8
-
8
+
9
9
  private
10
- # Retturns content for palindrome testing.
10
+ # Return content for palindrome testing
11
11
  def processed_content
12
- scan(/[a-z]/i).join.downcase
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
@@ -1,3 +1,3 @@
1
1
  module CodyjamesbrooksPalindrome
2
- VERSION = "0.1.0"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codyjamesbrooks_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Brooks