johntheyoung_palindrome 0.1.2 → 0.1.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: 43a9b6d989333174a44638b9648429c1dc2f423d74102f1b71f1f26d02c01dfe
4
- data.tar.gz: 0dd1aead80042d0a13f73da87d8775f37c82a94d51aac82ea0b21f5e6df83f99
3
+ metadata.gz: bfa1836bd2f62ba80d9fe613bcd1546928d9ba3d760e34dcd18831c2f5892768
4
+ data.tar.gz: efa2ed18051bc8b1cfa0bee6293584b1d616710b7cf32812d4db4ceca1767bc4
5
5
  SHA512:
6
- metadata.gz: 15c9212e14790ed17bea436602acd082c9c43b6272bb88c16e3f749847cd1ef1a5d203f51f246cd2b2a566e0ce75366c0170d9028257f75b1e216ca930027a10
7
- data.tar.gz: 6fd9621b2205cf56b32f2e3283db7406b370b8f89a1b2b79b8b109e35e4d903543d6c82e69019d6cbf9e571eee9d97b8c8f17ebac6c4b190b0de3fec36c5ddf3
6
+ metadata.gz: 5d7dbd93868593593abb44e56a4f71402a5030f88903f725db9f7bbb7195d5a1763c3d8d43ebcf730016c02cf8667789e521a57762659110809321c212c35850
7
+ data.tar.gz: b1db85835e9aecbbf92f1a1b3d528f7620d0131c1369b2b7b9b8fa05caffbcb415d5896a2fb390afa0aa2c661c07253fee6a1b271ac1a82ffe5c3f55a2dfc0c1
data/.DS_Store CHANGED
Binary file
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- johntheyoung_palindrome (0.1.2)
4
+ johntheyoung_palindrome (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/.DS_Store ADDED
Binary file
@@ -1,3 +1,3 @@
1
1
  module JohntheyoungPalindrome
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -5,7 +5,10 @@ module Palindrome
5
5
 
6
6
  # Returns true for a palindrome, false otherwise.
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
9
12
  end
10
13
 
11
14
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: johntheyoung_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Young
@@ -27,6 +27,7 @@ files:
27
27
  - bin/console
28
28
  - bin/setup
29
29
  - johntheyoung_palindrome.gemspec
30
+ - lib/.DS_Store
30
31
  - lib/johntheyoung_palindrome.rb
31
32
  - lib/johntheyoung_palindrome/version.rb
32
33
  homepage: https://github.com/johntheyoung/palindrome