blazingwind_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: c70de14b8fb578858b93b465ff77e06ff0a467809049cdab1818b2797cf987d8
4
- data.tar.gz: 2d38168c19461405e8178b12e3741c735bd3dfdb8b5fc310539c2bbd6d2b81b6
3
+ metadata.gz: 438691133280fba71509e3133a4bc0dc4351b3e2e37a1be51b59b87707f6c6f4
4
+ data.tar.gz: 70a27175195c1ddd46b2616b9e931cda6343ae43813a47de9569e23150e36f02
5
5
  SHA512:
6
- metadata.gz: 3a863dd83ff9b98a16827a36fb320a97444e1aa1034ee022526c7838efbd09a1a01675552c8669a78f13a533c09561565e0adda69c160e859cccc5bd992ce44a
7
- data.tar.gz: a9d88dbb7a6ea12a4c952e7f7537c40ee7cc3b5585611326bf6c3366900c0ac0dde48523af06de16247e636fa15d5892ddfed4ea81585a55a2ec5f6be0226f72
6
+ metadata.gz: 634d7e79e90bc6a20b61306bb676036a96ef769e61e63f9f6493acdc48226196746760d1836faff77331efd5b05324a002be2659c8c8c7df9b41ad9a3392ff3e
7
+ data.tar.gz: 53503330e8ad0d7777ac5243fee4c92b58f76174503558e875b8ffd0f7e44d0c4e5aaf95dbd0cd43eb6b7f505445402597b6ae43e96997029d63b5821fe648ae
data/README.md CHANGED
@@ -42,4 +42,4 @@ $ irb
42
42
 
43
43
  ## License
44
44
 
45
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
45
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlazingwindPalindrome
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -5,6 +5,9 @@ require_relative "blazingwind_palindrome/version"
5
5
  module BlazingwindPalindrome
6
6
  # Returns true for a palidrome, false otherwise.
7
7
  def palindrome?
8
+ if processed_content.empty?
9
+ return false
10
+ end
8
11
  processed_content == processed_content.reverse
9
12
  end
10
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blazingwind_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
  - Sylwia Budzynska