ilyass_palindrome 1.0.0 → 1.1.0
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 +4 -4
- data/CHANGELOG.md +4 -1
- data/README.md +6 -9
- data/lib/ilyass_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: '08ff83ef0faf7b79ac4ed849e9a1cd35596ca909bacd13ade558bfe279f584d3'
|
4
|
+
data.tar.gz: 185e9e9e378882139318da2c46eaa6753810ba39235d69fd202157cd018f0bd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6caf90ae949f6dd39aff9ee978c461831e7656fcab8dc911d1ab5e45aaf1f19aadb71c6f98f859e719330f3023f0288fee167889f83e6358f4358ce2c39a2e69
|
7
|
+
data.tar.gz: 9fad06a3dad45e21f52cf779d8ed308ead85734c53bd7f7d953185d8da16e86ac1ef36aa9b114e8960a470924ea34b7714fd1a29ac94f37a5e4796f67e314cb0
|
data/CHANGELOG.md
CHANGED
@@ -8,8 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
## [0.1.0]
|
9
9
|
- Added: Initial implementation of palindrome checking functionality.
|
10
10
|
- Support for String class.
|
11
|
-
## [
|
11
|
+
## [1.0.0]
|
12
12
|
- `palindrome?` now support both the String and Integer classes.
|
13
13
|
- This version is for professional use.
|
14
|
+
## [1.1.0]
|
15
|
+
- Added a test for whitespaces.
|
16
|
+
- This version if mainly for testers and contributors.
|
14
17
|
|
15
18
|
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Palindrome detector
|
2
2
|
|
3
|
-
`ilyass_palindrome` is a sample Ruby gem created in Learn
|
3
|
+
`ilyass_palindrome` is a sample Ruby gem created in Learn Enough Ruby to Be Dangerous by Michael Hartl.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
To install `ilyass_palindrome`, add this line to your application's `Gemfile`:
|
8
8
|
|
9
9
|
```bash
|
10
|
-
bundle add
|
10
|
+
bundle add ilyass_palindrome
|
11
11
|
```
|
12
12
|
|
13
13
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
@@ -27,14 +27,9 @@ gem install ilyass_palindrome
|
|
27
27
|
```
|
28
28
|
## Usage
|
29
29
|
|
30
|
-
First
|
30
|
+
First require the module in you ruby app:
|
31
31
|
```ruby
|
32
|
-
|
33
|
-
include Palindrome
|
34
|
-
end
|
35
|
-
class Integer
|
36
|
-
include Palindrome
|
37
|
-
end
|
32
|
+
require 'ilyass_palindrome'
|
38
33
|
```
|
39
34
|
Now you can use the `palindrome?` method directly on string and integer literals, e.g:
|
40
35
|
```ruby
|
@@ -42,6 +37,8 @@ Now you can use the `palindrome?` method directly on string and integer literals
|
|
42
37
|
=> true
|
43
38
|
12321.palindrome?
|
44
39
|
=> true
|
40
|
+
" ".palindrome?
|
41
|
+
=> false
|
45
42
|
```
|
46
43
|
|
47
44
|
## Development
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ilyass_palindrome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ILyass-Lr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-04-
|
11
|
+
date: 2025-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Learn Enough Ruby palindrome detector
|
14
14
|
email:
|