crashmat_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: 2d66772e7a10d687c4b3102d633d4bd2e0cb4a9e7483d064721236bd92c07b66
4
- data.tar.gz: 3578fd607432cb36848d69dc98791ad510e3ded21d8cd03e00a18c1157bfa9ce
3
+ metadata.gz: d1359cbf9cae8c9af758813c02d226d07131f41fbae0d7e2129001ff958b6381
4
+ data.tar.gz: da3704b7dfe8a0274207dfcd6f397aa07b0631bb61c6f1ca0545e4a2428bbea8
5
5
  SHA512:
6
- metadata.gz: 6cfc6b43d1c1443e9ed4142138843602d1e0dc48fee147950a7539f5084336f5aa9a78b2a35a8dc3c7d3c9aa90695414d02e37730aa531e2a74c79cd50a423df
7
- data.tar.gz: de903315c3c1fd06546c871e55ce0cd64af89b76a366224bb56b87a709eadf4167ff35c5bd668a72198cd858d38cd6dfc93fb37289181654e74d32ec109da725
6
+ metadata.gz: 692714842d6cd59f96475130d17d219f0d02f5a618a174b0afc29355607cc86d61bb288c5aaa0b78853993dd2d424b4b07ea67edc62b408ffb73fad54fd89dde
7
+ data.tar.gz: 02754bcd1bd07737da356e4264145440a00a88b0b54b2290a458f94ba34fdbda978d45f16da1242ff8bb26c451b83a4d9061c8999f94b98e3af46ecc84fd329b
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CrashmatPalindrome
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -6,7 +6,11 @@ module CrashmatPalindrome
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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crashmat_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
  - crashmat
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-30 00:00:00.000000000 Z
10
+ date: 2025-04-02 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: "%q{Learn Enough Ruby plaindrome detector}"
13
13
  email:
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  requirements: []
44
- rubygems_version: 3.6.2
44
+ rubygems_version: 3.6.6
45
45
  specification_version: 4
46
46
  summary: "%q{Palindrom detector}"
47
47
  test_files: []