sstacey_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: ccfa18dd86f3e49cb2a5e2d4375d45fc94bdf85d690f01793e81dcdfe4eb3741
4
- data.tar.gz: c32efa08baacbe4297a4f93d2fb9e1b016f8bab0e104f1d6c9fe469a3d2a303b
3
+ metadata.gz: 9dc89d18fff79b214c7dbe2e8599212ffedc6b4bfa6a2dc0c12c24a2538ae237
4
+ data.tar.gz: 5e662efd028e78fb213243242d43ac2393ca05842167942efdceace31c1507f2
5
5
  SHA512:
6
- metadata.gz: 254aaa1c4586a6e74f26946ccbdfd996a78784fc225f39ed8cb5cc1a4e67ce99ac4355a92b708690b8839fa71167a01e14b90337d9251e67135804eb0e5b26e9
7
- data.tar.gz: 3e9d9c5da07946907de57d4c307c995477f0bea623491595d8111a7570c46663f8429f86ed936cc706b8a5f4c643566cf4301411ee814c8d40e04cd02db3a080
6
+ metadata.gz: e64dabfd65023c03f14335a35615ff23bc326f32ecac35e0485d395899db71c8252873f571261c2737b3350dda70e3b039cebc275818d4f97f8f24defdb6a730
7
+ data.tar.gz: 7f6c715a873725d684cca59a2d5c7a33d86ff9f982dcd823044de86bc9f0c70d83c4c33c0914118f9f803e1ed1edbbd22ade45ae14e08055cef52ef50c5540b1
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sstacey_palindrome (0.1.0)
4
+ sstacey_palindrome (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SstaceyPalindrome
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -4,6 +4,8 @@ require_relative "sstacey_palindrome/version"
4
4
 
5
5
  module SstaceyPalindrome
6
6
  def palindrome?
7
+ return false if processed_content.empty?
8
+
7
9
  processed_content == processed_content.reverse
8
10
  end
9
11
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sstacey_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
  - sstacey
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2021-09-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn Enough Ruby palindrome detector.
14
14
  email: