ari97_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/.DS_Store +0 -0
- data/Gemfile.lock +1 -1
- data/Rakefile +9 -8
- data/lib/.DS_Store +0 -0
- data/lib/ari97_palindrome.rb +5 -2
- data/lib/ari97_palindrome/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e0c9083d280d2b1457f2db119cf0dd66cd7ce6dd4a76370f90a813e1a627816
|
4
|
+
data.tar.gz: a3ff73b0223f2274259bbba3f211955166cbaf5a35de5eb32a267bf4dce543b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38eecad500861f1c938e49d79700c663aa2c8d0040952177603e18cd68680eacc1e16b20a4e1e53556917e2be99208837dd80eaaced280be32e1b2258f04f329
|
7
|
+
data.tar.gz: 0024bb740b234a9e4b89a63dc6b2ab81f0426ad7ac0b0c1801c2fb112d61d2a17de3c7f4d42d0d12487ab4e9d025b5ef6f5d92bdb649a4f88a2e4c5e8b8ce26f
|
data/.DS_Store
ADDED
Binary file
|
data/Gemfile.lock
CHANGED
data/Rakefile
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
|
1
|
+
require 'rake/testtask'
|
2
2
|
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
require "rake/testtask"
|
5
3
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
Bundler::GemHelper.install_tasks
|
5
|
+
|
6
|
+
# Run all the files in the test directory that end with "_test.rb"
|
7
|
+
Rake::TestTask.new do |t|
|
8
|
+
t.pattern = 'test/*_test.rb'
|
9
|
+
t.warning = false
|
10
10
|
end
|
11
11
|
|
12
|
-
|
12
|
+
# What this means is that if we just type "rake" by itself, it will run the test
|
13
|
+
task :default => [:test]
|
data/lib/.DS_Store
ADDED
Binary file
|
data/lib/ari97_palindrome.rb
CHANGED
@@ -6,8 +6,11 @@ module Ari97Palindrome
|
|
6
6
|
|
7
7
|
# Returns true for a palindrome, false otherwise
|
8
8
|
def palindrome?
|
9
|
-
|
10
|
-
|
9
|
+
unless processed_content.strip.empty?
|
10
|
+
processed_content == processed_content.reverse
|
11
|
+
else
|
12
|
+
false
|
13
|
+
end
|
11
14
|
end
|
12
15
|
|
13
16
|
def letters
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ari97_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
|
- Ariel Camilo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Learn Enough Ruby based Palindrome detector.
|
14
14
|
email:
|
@@ -17,6 +17,7 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
+
- ".DS_Store"
|
20
21
|
- ".gitignore"
|
21
22
|
- ".gitlab-ci.yml"
|
22
23
|
- Gemfile
|
@@ -27,6 +28,7 @@ files:
|
|
27
28
|
- ari97_palindrome.gemspec
|
28
29
|
- bin/console
|
29
30
|
- bin/setup
|
31
|
+
- lib/.DS_Store
|
30
32
|
- lib/ari97_palindrome.rb
|
31
33
|
- lib/ari97_palindrome/version.rb
|
32
34
|
homepage: https://gitlab.com/paba97/ari97_palindrome
|