nelsonagamata_palindrome 0.2.0 → 0.2.1

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: 153176841b95bbbbaf845c43e6a84a922c35c785bd2185e05e46c338fcceb798
4
- data.tar.gz: aa36456e8cb5c4ae39f61eab1c691bfd9072158611bd755bede78637a6654635
3
+ metadata.gz: 92d1f7a38ab656fe7bb16dd9e42452c734139b0f1277a4cbba9e140497d9ec78
4
+ data.tar.gz: ee3abf2d7e5129ffb25dd15ff63738aac34c57cf1d51d2f34101c58e2a5c9467
5
5
  SHA512:
6
- metadata.gz: c9153f4291791304b8a07c6de68416bc039957839507ab3275d1dc413dac8a81e3d3406bbc5d54a256105fcdd15b7db9b75b194dff21ed4b2c9da78ddaeac4fd
7
- data.tar.gz: a18be551d44f34eecc3f55ce126404d1fc31b0a3f99eef268326875c51ae5add0031a10072ea67791ff64f1ff98b7438b8e4c7809927b5aeb41318544200e235
6
+ metadata.gz: 0437a18d18fa42b8b2dc79fe3e7f70b11d0c662c03aa6cf0a9d6a0c224434a188dbdea2913db999ea9232657d993e81c02cda9eea345ac3fd4e5ba36d3a801b1
7
+ data.tar.gz: d635d0ddf3a7cb06fdfc2861205c40bf285cd9dc7d7b2d485be3693f701b8f65a4e1f2491f3110b657c6675d9fa7c27c46ab33ac1972da54d7605d450494a887
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nelsonagamata_palindrome (0.2.0)
4
+ nelsonagamata_palindrome (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -3,7 +3,11 @@ require "nelsonagamata_palindrome/version"
3
3
  module NelsonagamataPalindrome
4
4
  #Returns true for palindrome, false otherwise
5
5
  def palindrome?
6
- processed_content == processed_content.reverse
6
+ if processed_content.empty?
7
+ false
8
+ else
9
+ processed_content == processed_content.reverse
10
+ end
7
11
  end
8
12
 
9
13
  private
@@ -1,3 +1,3 @@
1
1
  module NelsonagamataPalindrome
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nelsonagamata_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nelson Agamata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-06 00:00:00.000000000 Z
11
+ date: 2020-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn Enough Ruby palindrome detector.
14
14
  email: