ozemmouri_palindrome 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b91b943f4dbd7532953778fcb5097cdb0c27c521135861314805c362e8c182b5
4
- data.tar.gz: d0408c68f0e8fe4d1dfa5d61b128d1905bfbc9d26c6ce7b029390646d42f882c
3
+ metadata.gz: 87d2b08d9d8ab4f9556999636d2f8e3095f2b652d806c6edc68c312d32db9662
4
+ data.tar.gz: ccc662593068c2dcc7cf39945332d0d4612330b57ae579169855b46cce63589c
5
5
  SHA512:
6
- metadata.gz: 99caf4b87705aae7d2b6dbfd37c2e28f908e9867217f4bd40ce3a29f9615361c02888b4993e04c8898fb5d04dcdffbb7e9f7a20ef1ea84fded02c91021f2c79e
7
- data.tar.gz: 3140a645e8f96c4df6f6c55f8c567642eec0a2c57b46d7597f9e481ae7136be445cab526be5c55be154dc975c8b3fbeb33d455dc42874aca4a686cf417205cf6
6
+ metadata.gz: edf2368ef3ba4e0ac5a783a49a74036bd7e7fe55efe53c9c259550aafe1688d45717d4da19206f9ba8603ab3badb74fb550e332240937742cf7ff1d70a54ac62
7
+ data.tar.gz: fd4f4437be0d2f885c5cc52a339d089d3e45a6884988a3174219d378429faf996ac80f3e7903806005869bb28d24820bee21a0a70a1b7a364619f6d81afcf335
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ozemmouri_palindrome (0.2.0)
4
+ ozemmouri_palindrome (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OzemmouriPalindrome
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -5,7 +5,11 @@ require_relative "ozemmouri_palindrome/version"
5
5
  module OzemmouriPalindrome
6
6
  # Returns true for a palindrome, false otherwise.
7
7
  def palindrome?
8
- processed_content == processed_content.reverse
8
+ if (processed_content == "" || processed_content == /\s+/)
9
+ false
10
+ else
11
+ processed_content == processed_content.reverse
12
+ end
9
13
  end
10
14
 
11
15
  # Returns the letters in the string
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ozemmouri_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
  - Othmane Zemmouri
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-05 00:00:00.000000000 Z
11
+ date: 2023-09-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn Enough palindrome detector.
14
14
  email: