test_palindrome_gem 0.2 → 0.3

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: 679a2e5b7f179c67297fd765dab0d2b811bbe308b2dcde3dcf769a3fb0ef50d0
4
- data.tar.gz: ceb8018b9135b19babc140499f17c9fece9947f1c48484063a9038aa3ed3bd6d
3
+ metadata.gz: a2757bc4d4c75be26dc66203d4baabbd597741264f0786bf893da71e1ff4b12b
4
+ data.tar.gz: c700fd236c537fcca14adaf6ae8a2fb8a83751700520bba570d487472bb133b0
5
5
  SHA512:
6
- metadata.gz: 467ac62fec82b00b234033d2512b3a78461ed24bd0925567509c11f687deefc14b250a78010764de7398f847064ed6b8789ca9cfd0cfedc5bef82358cfa21712
7
- data.tar.gz: ce5f48625e47e2e4a213920217927818a574fb5e7732dbb36e7ccb912eed3d814e9a99daa6be1e4a8340aa9120167989279305b2ad8efdbba916747c03ab3019
6
+ metadata.gz: f993dfffcf732cb2f72ff3b7224cc78373f4e8a5667fae68c0654ad3d13074a433b334203620d7c3d26a10745b0c8ffde8401df13ff1fe3f4e4ad4f3e3657365
7
+ data.tar.gz: 73710996857072afb27f76981c36b9d11b503272ac16e9a46c2199c38682c1854183b7fc773604dbc2aacd72fa148d0d55c7025ac5f8bc469f56ad114cd43931
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
+ [![Gem Version](https://badge.fury.io/rb/test_palindrome_gem.svg)](https://badge.fury.io/rb/test_palindrome_gem)
2
+
1
3
  # TestPalindromeGem
2
4
 
3
- Tests for palindromes, as in <code>"Yes".palindrome?</code>.
5
+ Tests for palindromes, as in <code>"Yes".palindrome?</code>. Works for strings and integers.
4
6
 
5
7
  ## Installation
6
8
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TestPalindromeGem
4
- VERSION = "0.2"
4
+ VERSION = "0.3"
5
5
  end
@@ -5,7 +5,11 @@ require_relative "test_palindrome_gem/version"
5
5
 
6
6
  module TestPalindromeGem
7
7
  def palindrome?
8
- processed_content == processed_content.reverse
8
+ if processed_content.empty?
9
+ false
10
+ else
11
+ processed_content == processed_content.reverse
12
+ end
9
13
  end
10
14
 
11
15
  def letters
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_palindrome_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: '0.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Labern
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Allows for "Racecar".palindrome? for strings, returning true. Works for
14
14
  strings of upper, lower, mixed, and punctuated contents. Also works for integers,