jasonrhoads_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: b5d0975dc4bc310fa298865aac3d62b26b06242617c312ab04ecb134b592d14c
4
- data.tar.gz: 53cdd7e5f1c381c3788ef010d63086703cfdbac97cd8cf73b1df56e9fbeca036
3
+ metadata.gz: c6f7a5218f977415a26b59a3d8eaf57f724e062e8b48047e962b0222a7ae222f
4
+ data.tar.gz: 1abb20461cfc35a197eb1d68c5701d02544c3276ad646b736be4ebb704edbf59
5
5
  SHA512:
6
- metadata.gz: 168707308c30c2b0ddf2290da4b935b28d460a5dd1a01fb232a12a41d0ae83ae7664174593a2a6d0651914b66e4784b87379f7abdbd77f9a5c1e08a48a8cf251
7
- data.tar.gz: 5ea24a7b1905711ee4ecde6804072cd9938b86d255446f99efbefe73663b1758806ec7368fe2ce9535fd93f69dceac7151c9cb1b0fb2511cf8ed7b826171e3d6
6
+ metadata.gz: 8f49ef47e0a5e2085e65850e87b44483fd7695b515a556b71d677a59ec77c472d98276938c36421bee40fffe09c49d41cfbf445641864524db9546908be7d041
7
+ data.tar.gz: cde5a4c3514f9b9dbfb8f36008bca13b66cdf726fbc9bcb0698ed7ab6966cc6e04699010ed75961b06df245acb1d066f5969a39b69f57db0a0a3d06eae4a5e4b
data/Gemfile CHANGED
@@ -6,4 +6,4 @@ gemspec
6
6
  gem "rake", "~> 12.0"
7
7
  gem "minitest", "~> 5.0"
8
8
 
9
- gem "minitest-reporters", "1.2.0"
9
+ gem "minitest-reporters", "1.2.0"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jasonrhoads_palindrome (0.2.0)
4
+ jasonrhoads_palindrome (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -4,7 +4,11 @@ module JasonrhoadsPalindrome
4
4
 
5
5
  # Returns true for a palindrome, false otherwise.
6
6
  def palindrome?
7
- processed_content == processed_content.reverse
7
+ if processed_content.empty?
8
+ false
9
+ else
10
+ processed_content == processed_content.reverse
11
+ end
8
12
  end
9
13
 
10
14
  private
@@ -1,3 +1,3 @@
1
1
  module JasonrhoadsPalindrome
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: jasonrhoads_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
  - jasonrhoads
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-10 00:00:00.000000000 Z
11
+ date: 2020-07-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn Enough Ruby palindrome detector
14
14
  email: