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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99bce1e265c91c9d37c49e3a9cf1344dff05577c5c3685b058263d823ed71633
4
- data.tar.gz: 9ffc7d7955e57213b78b4d6a3ae644f74f9d33b8e9310ee2dc5f6f9cc6a264e5
3
+ metadata.gz: 4e0c9083d280d2b1457f2db119cf0dd66cd7ce6dd4a76370f90a813e1a627816
4
+ data.tar.gz: a3ff73b0223f2274259bbba3f211955166cbaf5a35de5eb32a267bf4dce543b9
5
5
  SHA512:
6
- metadata.gz: 130aad012a58ce86bf9e29a4f22b3aab7994658d3ac7de156e2b19021630c459e310a8b5c5ceb459e0131888ff909b258cf25d039fdf5fd7770c060ffafc7d5b
7
- data.tar.gz: b5470b29fe9ba22aa0cb06e8a6de34d9a8b62e59d40569199b785fa90db2f7ef9505c314862c3dab242cf188bbf410bcaf48dbd55507bba3cfc62a6b84cc9889
6
+ metadata.gz: 38eecad500861f1c938e49d79700c663aa2c8d0040952177603e18cd68680eacc1e16b20a4e1e53556917e2be99208837dd80eaaced280be32e1b2258f04f329
7
+ data.tar.gz: 0024bb740b234a9e4b89a63dc6b2ab81f0426ad7ac0b0c1801c2fb112d61d2a17de3c7f4d42d0d12487ab4e9d025b5ef6f5d92bdb649a4f88a2e4c5e8b8ce26f
Binary file
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ari97_palindrome (0.2.0)
4
+ ari97_palindrome (0.3.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/Rakefile CHANGED
@@ -1,12 +1,13 @@
1
- # frozen_string_literal: true
1
+ require 'rake/testtask'
2
2
 
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
3
 
6
- Rake::TestTask.new(:test) do |t|
7
- t.libs << "test"
8
- t.libs << "lib"
9
- t.test_files = FileList["test/**/*_test.rb"]
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
- task default: :test
12
+ # What this means is that if we just type "rake" by itself, it will run the test
13
+ task :default => [:test]
Binary file
@@ -6,8 +6,11 @@ module Ari97Palindrome
6
6
 
7
7
  # Returns true for a palindrome, false otherwise
8
8
  def palindrome?
9
- processed_content == processed_content.reverse
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ari97Palindrome
4
- VERSION = "0.2.0"
4
+ VERSION = "0.3.0"
5
5
  end
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.2.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-04 00:00:00.000000000 Z
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