vcarinhas_palindrome 0.2.0 → 0.3.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: 25f3dba2dd4a4143389c788d2c9c646b7e7d39eb2bddb6f12baf4fff16d06890
4
- data.tar.gz: 48f6a736adec6ca161f9e6ea8d44556454718fc23e378ebdd5e7f81da0a8872c
3
+ metadata.gz: 3060e4a59db3651a4d616ed1cde95b1b95bf459265da9ad6c844567a1f92a569
4
+ data.tar.gz: dd5077a587f9a97f7d858e525fbc938b66f97b0bc794caa19a5b9bd9e2d9490f
5
5
  SHA512:
6
- metadata.gz: 5b253c3d5785376291aab109a476de5eddd77ba1dc7f94e75c94c4731f96191dcaf4604da943a88e028fc30d4ae824b17388ad627fd776173046bed0c22e112b
7
- data.tar.gz: 0e750fd6c183952840ebfcadb0fc2862843dd93bcdc49d4f42b750cda3a81bbe3109c297d71d206b0ee66ede9a13c494a770f8129ce537f0fe3dd58b23d07c02
6
+ metadata.gz: 4ca668d140b16be9c705f4425a6299ce6bde05dbf4e87f379c241dd3dc18aada946f80e2e342de3a64862148f6d0621694cfdc433969f26ace2e9fd4dc969cbe
7
+ data.tar.gz: fcdfe95a9c24693024cbe5027f78d32659de468cf0a870c77e5189a37f57e09d77c667acb4923d79eb5d0c7c8744d94426c1554c894cdb0c91be5418607edf7f
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VcarinhasPalindrome
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -6,7 +6,11 @@ module VCarinhasPalindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
9
- processed_content == processed_content.reverse
9
+ if processed_content.empty?
10
+ false
11
+ else
12
+ processed_content == processed_content.reverse
13
+ end
10
14
  end
11
15
 
12
16
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcarinhas_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasco A. Carinhas
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-11 00:00:00.000000000 Z
11
+ date: 2024-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler