conort_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: 2dbade36ae082d7a108b8cd370ab2d29950ee389e5023b910c39afa08dfc7833
4
- data.tar.gz: 886ca0e3c891ef10daaca11574e820a55b1ebb4589aeb7319f598814f693de8c
3
+ metadata.gz: eeba0e0471a9fc965843d5ba7a8b5c54ffb10ba3e881c170b90406eaf7cb4e1f
4
+ data.tar.gz: 9e36e6f988f157c09d25ed578db4766a8650e5dbfda1f950f4b5f047c9cf873c
5
5
  SHA512:
6
- metadata.gz: c3ba829b67e1581f0c14212308db4356afce0e96ffa7031fd92d70fd21e4da97a1bca28b12e00c250035c8ad42ac716be210506660f23eb5bc76a48b6cfc32ad
7
- data.tar.gz: 9bc8ad5d31dd35f5945025573c318c09978014c829a11323d6bbf8e975389bafc724739418341f3de9b368e8ab9f6bff7903092ea765a76dce7d76d9d01c67cd
6
+ metadata.gz: 265db40b5ef933ef0588c406897d2e72a7b4c9dc53214a559d8aee3398c6dd2c7e7d3ab8c07cc240854284d2fd0efd05bc7ecff8eff9f9698b1e2627c66dc269
7
+ data.tar.gz: be21893e85dc2cc8ddf3cf44ffa482b26314ae961aab39734ba7e139119a53c5b39d2918013a93eae3f524e4255f95fafe00cdc5f2312657a7ba2a8591b6b697
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conort_palindrome (0.2.0)
4
+ conort_palindrome (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module ConortPalindrome
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -4,8 +4,12 @@ module ConortPalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
7
- processed_content == processed_content.reverse
8
- end
7
+ if (processed_content.match(/\A\s*\z/))
8
+ false
9
+ else
10
+ processed_content == processed_content.reverse
11
+ end
12
+ end
9
13
 
10
14
  private
11
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conort_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
  - Conor Taliancich