albertoms_palindrome 0.2.0 → 0.3.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/README.md +11 -1
- data/albertoms_palindrome.gemspec +1 -1
- data/lib/albertoms_palindrome/CHANGELOG.md +16 -0
- data/lib/albertoms_palindrome/version.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550020d56f68db5b31c07fc7dcc589a7d8fb5ee05957082049a8c914cfc2117b
|
4
|
+
data.tar.gz: 3d75ad1d5d93f68270824feef72621b0b495c2370cfb43c6c7d5ad61334adb3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f1201729541715b6405963839453ffa3946b573a9227db81595689bd079c9cf3107d5ae5ee124d4b421c4b37dacb35173cfa7bfaa2a8c52655e5957b88863b4
|
7
|
+
data.tar.gz: f9ead796df40196e0bae39a5e57434706e781a49f6cf9bc2317ca2864a62816596ed52fdd3b083f19a237d2a27331093b45bb25c8fddffef136e7a8cce6f1b73
|
data/README.md
CHANGED
@@ -20,7 +20,17 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
-
|
23
|
+
This gem extends the functionality of the `String` and `Integer` classes. In order to detect if a phrase or a number is a palindrome, just call the `palindrome?` method on it:
|
24
|
+
|
25
|
+
```
|
26
|
+
# For strings
|
27
|
+
>> "Anita lava la tina".palindrome?
|
28
|
+
>> true
|
29
|
+
|
30
|
+
# For numbers
|
31
|
+
>> 12321.palindrome?
|
32
|
+
>> true
|
33
|
+
```
|
24
34
|
|
25
35
|
## Development
|
26
36
|
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.metadata["homepage_uri"] = spec.homepage
|
17
17
|
spec.metadata["source_code_uri"] = "https://github.com/albertoms/palindrome-gem"
|
18
|
-
|
18
|
+
spec.metadata["changelog_uri"] = "https://github.com/albertoms/palindrome-gem/CHANGELOG.md"
|
19
19
|
|
20
20
|
# Specify which files should be added to the gem when it is released.
|
21
21
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Release History
|
2
|
+
|
3
|
+
All notable changes to this project will be documented in this file.
|
4
|
+
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
|
+
|
8
|
+
## [0.2.0] - 2020-04-09
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- Support for detecting palindromes on integers.
|
12
|
+
|
13
|
+
## [0.1.0] - 2020-04-09
|
14
|
+
|
15
|
+
### Added
|
16
|
+
- First release.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: albertoms_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
|
- Luis Guerrero
|
@@ -27,6 +27,7 @@ files:
|
|
27
27
|
- bin/console
|
28
28
|
- bin/setup
|
29
29
|
- lib/albertoms_palindrome.rb
|
30
|
+
- lib/albertoms_palindrome/CHANGELOG.md
|
30
31
|
- lib/albertoms_palindrome/version.rb
|
31
32
|
- palindrome-gem.code-workspace
|
32
33
|
homepage: https://github.com/albertoms/palindrome-gem
|
@@ -35,6 +36,7 @@ metadata:
|
|
35
36
|
allowed_push_host: https://rubygems.org/
|
36
37
|
homepage_uri: https://github.com/albertoms/palindrome-gem
|
37
38
|
source_code_uri: https://github.com/albertoms/palindrome-gem
|
39
|
+
changelog_uri: https://github.com/albertoms/palindrome-gem/CHANGELOG.md
|
38
40
|
post_install_message:
|
39
41
|
rdoc_options: []
|
40
42
|
require_paths:
|