hkendall_palindrome 0.1.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 99e4a7e8848b7648559f3eefc84d91bef14993b8efbbd72d1dbe8e6d4ce566fe
4
+ data.tar.gz: 4bea7f4d478ae83ec98411a5048ae9fa59b3176c13529acdf120a65c26291a70
5
+ SHA512:
6
+ metadata.gz: 51fe20fd833e5f9a4f0e5e2afbf54f65f8a2c1b4b5e360442407e3a00ae06a9efae63cfb49d79d0ba30f51f2097def54d33fc424a34b6a498bb70e0cd4eda841
7
+ data.tar.gz: 11fb14ba6094e6f80c238cc57e2690ae014f641489383a98ddce92bc2524478b21d2e6ecb366b098144dfba1c1896fc1972b7e5117d5c45c1d5a27c9df4191f8
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in hkendall_palindrome.gemspec
6
+ gemspec
7
+ gem 'minitest-reporters', '1.2.0'
8
+
9
+ gem "rake", "~> 13.0"
10
+
11
+ gem "minitest", "~> 5.0"
data/Gemfile.lock ADDED
@@ -0,0 +1,30 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ hkendall_palindrome (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ansi (1.5.0)
10
+ builder (3.2.4)
11
+ minitest (5.18.1)
12
+ minitest-reporters (1.2.0)
13
+ ansi
14
+ builder
15
+ minitest (>= 5.0)
16
+ ruby-progressbar
17
+ rake (13.0.6)
18
+ ruby-progressbar (1.13.0)
19
+
20
+ PLATFORMS
21
+ x64-mingw-ucrt
22
+
23
+ DEPENDENCIES
24
+ hkendall_palindrome!
25
+ minitest (~> 5.0)
26
+ minitest-reporters (= 1.2.0)
27
+ rake (~> 13.0)
28
+
29
+ BUNDLED WITH
30
+ 2.4.10
data/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # Palimdrone detector
2
+
3
+ `hkendall_palindrome` is a ruby Sample gem created by Hunter-Kendall
4
+ ## Installation
5
+
6
+
7
+ To install `hkendall_palimndrome`, add this line to your application's `Gemfile`:
8
+
9
+ gem 'hkendall_palimdrone'
10
+
11
+ Then install as follows:
12
+
13
+ $ bundle install
14
+
15
+ Or install it directly using `gem`:
16
+
17
+ $ gem install hkendall_palindrome
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/test_*.rb"]
10
+ end
11
+
12
+ task default: :test
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module HkendallPalindrome
4
+ VERSION = "0.1.0"
5
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "hkendall_palindrome/version"
4
+
5
+ class String
6
+
7
+ # Returns true for a palindrome, false otherwise.
8
+ def palindrome?
9
+ processed_content == processed_content.reverse
10
+ end
11
+
12
+
13
+
14
+ private
15
+
16
+ # Returns content for palindrome testing.
17
+ def processed_content
18
+ scan(/[a-z]/i).join.downcase
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ module HkendallPalindrome
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hkendall_palindrome
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hunter-Kendall
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-07-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Learn Enough Ruby palindrome detector
14
+ email:
15
+ - hunter.kendall23@houghton.edu
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - Gemfile
21
+ - Gemfile.lock
22
+ - README.md
23
+ - Rakefile
24
+ - lib/hkendall_palindrome.rb
25
+ - lib/hkendall_palindrome/version.rb
26
+ - sig/hkendall_palindrome.rbs
27
+ homepage: https://github.com/Hunter-Kendall/hkendall_palindrome
28
+ licenses: []
29
+ metadata:
30
+ allowed_push_host: https://rubygems.org/
31
+ homepage_uri: https://github.com/Hunter-Kendall/hkendall_palindrome
32
+ source_code_uri: https://github.com/Hunter-Kendall/hkendall_palindrome
33
+ changelog_uri: https://github.com/Hunter-Kendall/hkendall_palindrome
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.6.0
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubygems_version: 3.4.10
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Palindrome detector
53
+ test_files: []