torischuyler_palindrome 0.1.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e01ac97968c8c6981f65bccaa388f37bb701c6c192d0e523fece1cf861040b46
4
- data.tar.gz: ebd3d883dddbbd7c59bcf2b62adfc0649af51424386ac11ef3d08798b93b5fa5
3
+ metadata.gz: 3eb94ed5366a1e17b821cd0ce92b8301bc854e535795bb69030c361bd4cfd1b2
4
+ data.tar.gz: fa224694fcacae00fd785b186b584525d8e3bb7f45848c2c0e865432c61cc1e4
5
5
  SHA512:
6
- metadata.gz: '0740964f979fc4036db62abf50c6f43bb4d88e1d6069ac0d6ece5b9bb364a62e2748aa8991e3efad0685b7d93a4c49073fa134186d032c620cdf1c6bbfebc06f'
7
- data.tar.gz: 2bb15b4928e2a54c8c3c0694a42c38e6555228a0b3aeaa00ab033788a26e692d74565f97be618fd33ea5e5b20ac9a16062a8e98d930b7102a94c633f4d72c446
6
+ metadata.gz: 616a6f3b72c6d685e7d1fdd555a532b8b74f8309cee8e1743445492ac40fe0845d44ab92d128ca2ae7063a8b1eb9f1412c9d513bcf68bf1b2c8aaa7664988009
7
+ data.tar.gz: d4261b5b06678b3c70b2be6d8eb5a7b34711591c4e2b156f3f4474aace079c419cd860e4544c7e7feffa5969eae3cfe53efe20c8577ac8f197fe3c949738f445
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- torischuyler_palindrome (0.1.0)
4
+ torischuyler_palindrome (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module TorischuylerPalindrome
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  require "torischuyler_palindrome/version"
2
2
 
3
- class String
4
-
3
+ module TorischuylerPalindrome
5
4
  # Returns true for a palindrome, false otherwise.
6
5
  def palindrome?
7
6
  processed_content == processed_content.reverse
@@ -11,6 +10,14 @@ class String
11
10
 
12
11
  # Returns content for palindrome testing.
13
12
  def processed_content
14
- self.scan(/[a-z]/i).join.downcase
13
+ self.to_s.scan(/[a-z\d]/i).join.downcase
15
14
  end
16
15
  end
16
+
17
+ class String
18
+ include TorischuylerPalindrome
19
+ end
20
+
21
+ class Integer
22
+ include TorischuylerPalindrome
23
+ end
@@ -11,11 +11,11 @@ Gem::Specification.new do |spec|
11
11
  spec.homepage = "https://github.com/torischuyler/palindrome"
12
12
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
13
 
14
- # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
14
+ spec.metadata["allowed_push_host"] = "https://rubygems.org/"
15
15
 
16
16
  spec.metadata["homepage_uri"] = spec.homepage
17
17
  spec.metadata["source_code_uri"] = "https://github.com/torischuyler/palindrome"
18
- spec.metadata["changelog_uri"] = "https://github.com/torischuyler/palindrome/blob/main/lib/torischuyler_palindrome/version.rb"
18
+ # spec.metadata["changelog_uri"] = ""
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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torischuyler_palindrome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - torischuyler
@@ -31,9 +31,9 @@ files:
31
31
  homepage: https://github.com/torischuyler/palindrome
32
32
  licenses: []
33
33
  metadata:
34
+ allowed_push_host: https://rubygems.org/
34
35
  homepage_uri: https://github.com/torischuyler/palindrome
35
36
  source_code_uri: https://github.com/torischuyler/palindrome
36
- changelog_uri: https://github.com/torischuyler/palindrome/blob/main/lib/torischuyler_palindrome/version.rb
37
37
  post_install_message:
38
38
  rdoc_options: []
39
39
  require_paths: