xiaosheng91_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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f277c8bfd4c9d8086bb9faedf94c9053db9332239cf6771e111f232d1eee1d64
4
- data.tar.gz: ef8ec056d1a75596acbe029e1e9de894d705cbfe70feeb7e20c187b1af936d5e
3
+ metadata.gz: 95784a68d3312243445b40fa8820b8074fd74cccfd7e6f85c70e6b0dee4ff2c7
4
+ data.tar.gz: 73e5e1e8df9be7d1c4ec6a4ebc68c370031b0874370352fe23c46a692c73e6c4
5
5
  SHA512:
6
- metadata.gz: b431e6ff007a6c51637f194ba9e32d87d30f7eba7eb79d2cbc078801ccfd755ddf3d29d7c8ed9c2057255e861602217254b24e5eafc32243363a1364658d0d2b
7
- data.tar.gz: 0d562f281dc2399fee636c5681874ecde02c7bbd4ee1d2f258ab2ceb141381fc44d90b5e8ed73351de4917d37fdafadad5b822e85152b1ed448c9b8e6fa80d2a
6
+ metadata.gz: c21f92f5ec2cfff63769a71a1b7f775c9c08bd86e48e5f81444fb25c5479973c040ee9ca368cb6f256c8807f64e6ec0eb04e557ac1c7f6d907f31eed9ce73201
7
+ data.tar.gz: 4e377472a0af7bed1a80cd39b335c6853b78b24d9b72051dfdf09da53febf9fc8a9a1d9cc7583980a87380bc8cda25640b12d208b3742010e4fd83f7d48b4096
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- xiaosheng91_palindrome (0.2.0)
4
+ xiaosheng91_palindrome (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # Palindrome detector
2
2
 
3
- `mhartl_palindrome` is a sample Ruby gem created in [*Learn Enough Ruby to Be Dangerous*](https://www.learnenough.com/ruby-tutorial) by Michael Hartl.
3
+ `xiaosheng91_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 `mhartl_palindrome`, add this line to your application's `Gemfile`:
7
+ To install `xiaosheng91_palindrome`, add this line to your application's `Gemfile`:
8
8
 
9
9
  ```
10
- gem 'mhartl_palindrome'
10
+ gem 'xiaosheng91_palindrome'
11
11
  ```
12
12
 
13
13
  Then install as follows:
@@ -19,24 +19,23 @@ $ bundle install
19
19
  Or install it directly using `gem`:
20
20
 
21
21
  ```
22
- $ gem install mhartl_palindrome
22
+ $ gem install xiaosheng91_palindrome
23
23
  ```
24
24
 
25
25
  ## Usage
26
26
 
27
- `mhartl_palindrome` adds a `palindrome?` method to the `String` class, and can be used as follows:
27
+ `xiaosheng91_palindrome` adds a `palindrome?` method to the `String` class and `Integer` class, and can be used as follows:
28
28
 
29
29
  ```
30
30
  $ irb
31
- >> require 'mhartl_palindrome'
31
+ >> require 'xiaosheng91_palindrome'
32
32
  >> "honey badger".palindrome?
33
33
  => false
34
34
  >> "deified".palindrome?
35
35
  => true
36
36
  >> "Able was I, ere I saw Elba.".palindrome?
37
37
  => true
38
- >> phrase = "Madam, I'm Adam."
39
- >> phrase.palindrome?
38
+ >> 12321.palindrome?
40
39
  => true
41
40
  ```
42
41
 
@@ -1,3 +1,3 @@
1
1
  module Xiaosheng91Palindrome
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xiaosheng91_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Huang Xiaosheng