asyroyez_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: da81b3209d6a93f141b60f1c0debe88294cdf5de4d71a7b63378f7bc77868638
4
- data.tar.gz: 5f8319a6af4cedb8906879cb0f96eed0a3775f314885fde36dd6617b5fd32248
3
+ metadata.gz: 24e42ca5f0abe08b68018aeee34faefcd5602939581b26971a530017be0f8867
4
+ data.tar.gz: 0c8bf680a4f38f7f13f7c28d6d66382fe2038b4111d5517a63ceea1f2753392e
5
5
  SHA512:
6
- metadata.gz: f19ac1908d5993b2b4dcffc42f5eeebf358ea583fa277a6533694336f0e153565fa7587c2c7afeda45443dbe822d2a78d2b8ee8bd5b0a1e14e8b58c8050a4f9d
7
- data.tar.gz: 2b91d589f57b01c959ed052a9f815594ee3fa5a826e077bfc3f55d588e8cc75bd62027511e0fd75305e532e8caff6271d44447769d0ec6a9b39b143fe0dc7ec8
6
+ metadata.gz: ff5236b7a08a3bde63bba334bfd23e588ce9a4cd1bad9f29834210512326edce9d1f0acd54216bb86cea1049b6a736a0ee43b84f7dc7ec735223d64a272a7c90
7
+ data.tar.gz: 5f5105d5a30bc9bd4fd62c8b10c40216aa4c189e0d06ca82d3aec3b54bc5f97a64dd195e715063464e51912934de5c6a0f80ce7334fcd0f4ed3e3cabfe5ad6b1
@@ -3,7 +3,8 @@ require "asyroyez_palindrome/version"
3
3
  module AsyroyezPalindrome
4
4
  # Returns true for a palindrome, false otherwise.
5
5
  def palindrome?
6
- processed_content == processed_content.reverse
6
+ !processed_content.empty? &&
7
+ processed_content == processed_content.reverse
7
8
  end
8
9
 
9
10
  private
@@ -1,3 +1,3 @@
1
1
  module AsyroyezPalindrome
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asyroyez_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
  - Andrey Syroyezhkin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-11-04 00:00:00.000000000 Z
11
+ date: 2019-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler