skyy_palindrome 0.2.0 → 0.2.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 +4 -4
- data/Gemfile.lock +1 -1
- data/LICENSE.md +10 -0
- data/README.md +10 -6
- data/lib/skyy_palindrome/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f17f88e0847e579cf5659233d3deebd635f27f1ef3564536aa8aff845bae483
|
4
|
+
data.tar.gz: 5981845a19d6e19e440b427853c3237a85c0290f8cc06017dbde14a22b7af879
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01e12d24c5029e683410306bbe057172761fbd50189f992c78ac6b6a6bb64309de0c134ed7f73765e71b925dac3e2aad2cdd1f537c16e54935e4124892c50431
|
7
|
+
data.tar.gz: d3accf76fedb0c5dfc2d94dfc2c32b68a116f447c9a74024f2554bae1a65785200102df28f2b483ca5534147d0efe73f0d8a85fce30eb07e26acf1ca4cde2470
|
data/Gemfile.lock
CHANGED
data/LICENSE.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
Portions copyright (c) 2010 Andre Arko
|
2
|
+
Portions copyright (c) 2009 Engine Yard
|
3
|
+
|
4
|
+
MIT License
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
7
|
+
|
8
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
9
|
+
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Palindrome detector
|
2
2
|
|
3
|
-
`
|
3
|
+
`skyy_palindrome` is a sample Ruby gem created in [*Learn Enough Ruby to Be Dangerous*](https://www.learnenough.com/ruby-tutorial) by Michael Hartl.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
To install `
|
7
|
+
To install `skyy_palindrome`, add this line to your application's `Gemfile`:
|
8
8
|
|
9
9
|
```
|
10
|
-
gem '
|
10
|
+
gem 'skyy_palindrome'
|
11
11
|
```
|
12
12
|
|
13
13
|
Then install as follows:
|
@@ -19,16 +19,16 @@ $ bundle install
|
|
19
19
|
Or install it directly using `gem`:
|
20
20
|
|
21
21
|
```
|
22
|
-
$ gem install
|
22
|
+
$ gem install skyy_palindrome
|
23
23
|
```
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
`
|
27
|
+
`skyy_palindrome` adds a `palindrome?` method to the `String` and `Integer` classes, and can be used as follows:
|
28
28
|
|
29
29
|
```
|
30
30
|
$ irb
|
31
|
-
>> require '
|
31
|
+
>> require 'skyy_palindrome'
|
32
32
|
>> "honey badger".palindrome?
|
33
33
|
=> false
|
34
34
|
>> "deified".palindrome?
|
@@ -38,6 +38,10 @@ $ irb
|
|
38
38
|
>> phrase = "Madam, I'm Adam."
|
39
39
|
>> phrase.palindrome?
|
40
40
|
=> true
|
41
|
+
>> 567765.palindrome?
|
42
|
+
=> true
|
43
|
+
>> 123bbybb321.palindrome?
|
44
|
+
=> true
|
41
45
|
```
|
42
46
|
|
43
47
|
## License
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skyy_palindrome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- skyy
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- ".travis.yml"
|
64
64
|
- Gemfile
|
65
65
|
- Gemfile.lock
|
66
|
+
- LICENSE.md
|
66
67
|
- README.md
|
67
68
|
- Rakefile
|
68
69
|
- bin/console
|