mouha_palindrome 0.1.0 → 0.1.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: 35b16d59137d6b64354b6fc5b38a9e0176348a560f18f4431128d0fe39b81cb3
4
- data.tar.gz: c4490263b2dc5aef9e1cffce727b2c0ac917aa4114074cdb515e9fe5ad616f6f
3
+ metadata.gz: b0f96284dd7d12dbdf62cc6ff73c39ba4d807c00295bfbf3ac9a89d34ac4c7da
4
+ data.tar.gz: 8b63d660db0795131f22f315a5faa1b739ecc8686a6bcca15bd381bf80d265b8
5
5
  SHA512:
6
- metadata.gz: '084409b0402c39c09dfc369c588460f4f9a36223526586a4498bf725e4897c8abe6a261cad463461fcd17bf146ab87723396b3479c8c97d46b2b091b10e73614'
7
- data.tar.gz: 4d87646d36b6980fb6149331b2c79803d9a290ac4a018552b74cfc4677124aea3bf720f59ad5920fef444c0fdb5c25821a24b2754f5f1a9ff8dfa9e8c99b979d
6
+ metadata.gz: 3955a059b1210436d997ffba39e65b5b2a64554dd7d9e3498540dcf34836d7413bc07c6b75e947e1bf90d47288668fe95e94b925d0e69ecf22eb6bd3c2a109d1
7
+ data.tar.gz: 968ddcac391e5493a3ac93c6f286bb82cb518127d1fc2eadbe22f6ec6fad5671f13376f7fe40f84bfab54a958c2e7e64a233316a20f981166539ce1186c7ddef
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mouha_palindrome (0.1.0)
4
+ mouha_palindrome (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -18,6 +18,7 @@ GEM
18
18
  ruby-progressbar (1.13.0)
19
19
 
20
20
  PLATFORMS
21
+ arm64-darwin-22
21
22
  x86_64-linux
22
23
 
23
24
  DEPENDENCIES
data/README.md CHANGED
@@ -28,7 +28,7 @@ $ gem install mouha_palindrome
28
28
 
29
29
  ```
30
30
  $ irb
31
- >> require 'mhartl_palindrome'
31
+ >> require 'mouha_palindrome'
32
32
  >> "honey badger".palindrome?
33
33
  => false
34
34
  >> "deified".palindrome?
@@ -42,4 +42,4 @@ $ irb
42
42
 
43
43
  ## License
44
44
 
45
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
45
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MouhaPalindrome
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
@@ -6,7 +6,8 @@ class String
6
6
 
7
7
  # Returns true for a palindrome, false otherwise.
8
8
  def palindrome?
9
- processed_content == processed_content.reverse
9
+ puts processed_content.empty?
10
+ !processed_content.empty? && processed_content == processed_content.reverse
10
11
  end
11
12
 
12
13
 
@@ -14,6 +15,6 @@ class String
14
15
 
15
16
  # Returns content for palindrome testing.
16
17
  def processed_content
17
- scan(/[a-z]/i).join.downcase
18
+ scan(/[a-z]/i).join.downcase
18
19
  end
19
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mouha_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mouha
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-08 00:00:00.000000000 Z
11
+ date: 2023-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -45,6 +45,7 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".ruby-version"
48
49
  - Gemfile
49
50
  - Gemfile.lock
50
51
  - README.md
@@ -58,7 +59,7 @@ licenses:
58
59
  metadata:
59
60
  allowed_push_host: https://rubygems.org/
60
61
  homepage_uri: https://github.com/MouhaDiouf/ruby_palindrome_gem
61
- post_install_message:
62
+ post_install_message:
62
63
  rdoc_options: []
63
64
  require_paths:
64
65
  - lib
@@ -73,8 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0'
75
76
  requirements: []
76
- rubygems_version: 3.4.10
77
- signing_key:
77
+ rubygems_version: 3.3.7
78
+ signing_key:
78
79
  specification_version: 4
79
80
  summary: Palindrome detector
80
81
  test_files: []