albertoms_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: 7b648085399a38a32a1d66c164cba8f7ceac043175ee6866bb8fef5bbb963ec8
4
- data.tar.gz: 2f2cb82e69431c1ff86bbd570e643211e5aa3879e7f44a8a2bc92932c56c2e23
3
+ metadata.gz: 550020d56f68db5b31c07fc7dcc589a7d8fb5ee05957082049a8c914cfc2117b
4
+ data.tar.gz: 3d75ad1d5d93f68270824feef72621b0b495c2370cfb43c6c7d5ad61334adb3d
5
5
  SHA512:
6
- metadata.gz: 998f125007d168206e65708f0bd0493abff20bd1115ad711029149e58bf32b3f1451afb33f1ec1b5177013d96878febcebd064e16e6df6cbfe8d1c7771bfae3a
7
- data.tar.gz: 31438a592a0379a4b7c7c0807c25313ca24ec8a4494ae55b309aea487598dc5fab3df48a625def5ac2d7709f792835e3a8490d51f44793936850d58ed60f817d
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
- >`TODO`: Write usage instructions here
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
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
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.
@@ -1,3 +1,3 @@
1
1
  module AlbertomsPalindrome
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.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: