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 +4 -4
- data/lib/asyroyez_palindrome.rb +2 -1
- data/lib/asyroyez_palindrome/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24e42ca5f0abe08b68018aeee34faefcd5602939581b26971a530017be0f8867
|
4
|
+
data.tar.gz: 0c8bf680a4f38f7f13f7c28d6d66382fe2038b4111d5517a63ceea1f2753392e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff5236b7a08a3bde63bba334bfd23e588ce9a4cd1bad9f29834210512326edce9d1f0acd54216bb86cea1049b6a736a0ee43b84f7dc7ec735223d64a272a7c90
|
7
|
+
data.tar.gz: 5f5105d5a30bc9bd4fd62c8b10c40216aa4c189e0d06ca82d3aec3b54bc5f97a64dd195e715063464e51912934de5c6a0f80ce7334fcd0f4ed3e3cabfe5ad6b1
|
data/lib/asyroyez_palindrome.rb
CHANGED
@@ -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
|
6
|
+
!processed_content.empty? &&
|
7
|
+
processed_content == processed_content.reverse
|
7
8
|
end
|
8
9
|
|
9
10
|
private
|
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.
|
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-
|
11
|
+
date: 2019-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|