ilyass_palindrome 1.0.0 → 1.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: 6ce73b5a28dae2ad32fab1660f1347cab2ff805d9eac10e37d44950139e4410e
4
- data.tar.gz: 1516dc6ddf5869b83838fd600e67888d3a8ae83abf24eb067a3c0879542e2694
3
+ metadata.gz: a84845fec88fd0f2a5c2897e7b0d761ebfd719e7c3a67350bd5fe04272453331
4
+ data.tar.gz: 29df96c16cd1b1f4f1744d79bffa5acce5c342364e22f94c20a92c9e55be74b4
5
5
  SHA512:
6
- metadata.gz: f394305f79a3f052b300f5157e25be7d68d9e2bde55bf1470fea5d37c90c4ad12a61d069a796bd5cf3a308ff7de56511c04301c9074d90548c00c42c4c7830de
7
- data.tar.gz: 9446f22433444f91556ec20a036de3c8185d9c5a30f58e1e6badabe2f282126480e865b7ddaa3931ae7070c5f99ac70da625715ce568fb7717c0c744d6081ced
6
+ metadata.gz: 952e2ecaf95bdbc06000c60b825d3a753b0bce1d4c50e03a64071c8b5ac41da996fb0147b4c5f76131a70728cca9d1c2f31b3ec17a8f89dc9dd983b4820cd46d
7
+ data.tar.gz: 348e2b448e0e224bd3dd063946ae69b91229bdbc7f16fb21cc2b79f30f0a52d4bca96b46260d26a7fc21e33f6ec18ce65a7ecef5f7bc1e6f8c7da9488d98678a
data/CHANGELOG.md CHANGED
@@ -8,8 +8,12 @@ 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
- ## [0.1.0]
11
+ ## [1.0.0]
12
12
  - `palindrome?` now support both the String and Integer classes.
13
13
  - This version is for professional use.
14
-
14
+ ## [1.1.0]
15
+ - Added a test for whitespaces.
16
+ - This version if mainly for testers and contributors.
17
+ ## [1.1.1]
18
+ - Now this gem can be used for older version (2.7.*)
15
19
 
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 ENough Ruby to Be Dangerous by Michael Hartl.
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 UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
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 add the module to the `String` and `Integer` classes, e.g:
30
+ First require the module in you ruby app:
31
31
  ```ruby
32
- class String
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IlyassPalindrome
4
- VERSION = "1.0.0"
4
+ VERSION = "1.1.1"
5
5
  end
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.0.0
4
+ version: 1.1.1
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-27 00:00:00.000000000 Z
11
+ date: 2025-04-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Learn Enough Ruby palindrome detector
14
14
  email:
@@ -38,7 +38,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: 3.1.0
41
+ version: 2.7.0
42
42
  required_rubygems_version: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - ">="