palindrome_ext 0.1.0 → 0.2.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: b2139789921326fd1d30863a370930ba369b533b6de45725eefc2e43e07c076b
4
- data.tar.gz: c31eec9a35088c3cab1d14a62242fd0a750a68807e9a08004e2aa18819ee59e2
3
+ metadata.gz: af2e327fceee1d93aac88be3677cfd633ba8f6733dd810870cd644ccda1207af
4
+ data.tar.gz: 2110f44399dd79cb71348915fc61a391c7442fff74d15e1f17b29ff1355fe6b1
5
5
  SHA512:
6
- metadata.gz: f49f50cc57f5a41f95cf9fd167687c6c7df021b3d5d79052838605c89154dd7ceef93798b3ecec8375f1d90ca37f29bbf2dfbc67830afc1ee04b63ef0ae00242
7
- data.tar.gz: 1eb91834e401e6c9def76d50225546d9b0cbe991acf2d5ef78e112e263cecdf389dce67806ce37ad7f0aa87e769bc481b5084960afc6687cc4621b425fd526dc
6
+ metadata.gz: da1b4c8ba46963cb602139f59b7bd62ea4e5783db04d7b9ff8d8b2427a273080c19db1fa5a07079491737f030a2b4cc0ad7243f88a5b079d525bc624abfa844c
7
+ data.tar.gz: bb1e256bef0cfc670cce888560a94d69034bef0b53a551ff49d5612112b8fdb22e0a03d8d594274eb00c0ddadb10b3ad0e47e376e62066afd265c204af4ef4cb
data/.yardopts ADDED
@@ -0,0 +1,4 @@
1
+ --no-private
2
+ --protected
3
+ -
4
+ README.md
data/README.md CHANGED
@@ -52,11 +52,11 @@ require 'palindrome_ext/integer'
52
52
 
53
53
  ## Development
54
54
 
55
- After forking this repo, navigate to the root directory and run `bundle install` to install dependencies and this gem on your machine.
55
+ After forking this repo, navigate to the root directory and run `$ bundle install` to install dependencies and this gem on your machine.
56
56
 
57
- To run tests, simply run `rspec` in the root directory.
57
+ To run tests, simply run `$ rspec` in the root directory.
58
58
 
59
- To check if there are any style offenses in your forked repository, run `rubocop`. To attempt to automatically fix these offenses, run `rubocop -A`.
59
+ To check if there are any style offenses in your forked repository, run `$ rubocop`. To attempt to automatically fix these offenses, run `$ rubocop -A`.
60
60
 
61
61
  ## Contributing
62
62
 
@@ -2,8 +2,9 @@
2
2
 
3
3
  require "palindrome_ext/string"
4
4
 
5
- # Overrides Default Array Class by adding 'palindrome?' method
5
+ # Overrides Default Array Class by adding {palindrome?} method.
6
6
  class Array
7
+ # @return [Boolean] Whether or not the array is a palindrome.
7
8
  def palindrome?
8
9
  self == reverse
9
10
  end
@@ -2,8 +2,9 @@
2
2
 
3
3
  require "palindrome_ext/string"
4
4
 
5
- # Overrides Default Integer Class by adding 'palindrome?' method
5
+ # Overrides Default Integer Class by adding {palindrome?} method.
6
6
  class Integer
7
+ # @return [Boolean] Whether or not the Integer is a palindrome.
7
8
  def palindrome?
8
9
  to_s.palindrome? true
9
10
  end
@@ -1,8 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # Overrides Default String Class by adding 'palindrome?' method
3
+ # Overrides Default String Class by adding {palindrome?} method
4
4
  class String
5
- def palindrome?(strict = false)
5
+ # @param strict [Boolean]
6
+ # When set to false, will ignore whitespace and string case.
7
+ # @return [Boolean] Whether or not the string is a palindrome.
8
+ def palindrome?(strict = true)
6
9
  str = self
7
10
  str = str.downcase.tr("^a-z0-9", "") unless strict
8
11
  str == str.reverse
@@ -1,5 +1,7 @@
1
- # frozen_string_literal: true
2
-
3
- module PalindromeExt
4
- VERSION = "0.1.0"
5
- end
1
+ # frozen_string_literal: true
2
+
3
+ # palindrome_ext module and version.
4
+ # @private
5
+ module PalindromeExt
6
+ VERSION = "0.2.0"
7
+ end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'palindrome_ext/version'
3
+ require_relative "palindrome_ext/version"
4
4
  require_relative "palindrome_ext/string"
5
5
  require_relative "palindrome_ext/integer"
6
6
  require_relative "palindrome_ext/array"
metadata CHANGED
@@ -1,15 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: palindrome_ext
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
  - A.J. Romaniello
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-09 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2021-11-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.1'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: benchmark
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.2.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.2.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 13.0.6
51
+ type: :development
52
+ prerelease: false
53
+ version_requirements: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '13.0'
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: 13.0.6
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.10'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.10'
75
+ - !ruby/object:Gem::Dependency
76
+ name: rubocop
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.22'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 1.22.3
85
+ type: :development
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.22'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.22.3
95
+ - !ruby/object:Gem::Dependency
96
+ name: rubocop-rake
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: 0.6.0
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: 0.6.0
109
+ - !ruby/object:Gem::Dependency
110
+ name: yard
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: 0.9.26
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: 0.9.26
13
123
  description: Overrides Ruby's default String, Integer, and Array classes to determine
14
124
  whether or not their contents can be considered a palindrome.
15
125
  email:
@@ -18,23 +128,14 @@ executables: []
18
128
  extensions: []
19
129
  extra_rdoc_files: []
20
130
  files:
21
- - ".rspec"
22
- - ".rubocop.yml"
23
- - CHANGELOG.md
24
- - CODE_OF_CONDUCT.md
25
- - Gemfile
26
- - Gemfile.lock
131
+ - ".yardopts"
27
132
  - LICENSE.txt
28
133
  - README.md
29
- - Rakefile
30
- - bin/console
31
- - bin/setup
32
134
  - lib/palindrome_ext.rb
33
135
  - lib/palindrome_ext/array.rb
34
136
  - lib/palindrome_ext/integer.rb
35
137
  - lib/palindrome_ext/string.rb
36
138
  - lib/palindrome_ext/version.rb
37
- - palindrome_ext.gemspec
38
139
  homepage: https://github.com/aj-rom/palindrome_ext
39
140
  licenses:
40
141
  - MIT
@@ -42,6 +143,7 @@ metadata:
42
143
  homepage_uri: https://github.com/aj-rom/palindrome_ext
43
144
  source_code_uri: https://github.com/aj-rom/palindrome_ext
44
145
  changelog_uri: https://github.com/aj-rom/palindrome_ext
146
+ documentation_uri: https://www.rubydoc.info/gems/palindrome_ext
45
147
  post_install_message:
46
148
  rdoc_options: []
47
149
  require_paths:
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,112 +0,0 @@
1
- AllCops:
2
- TargetRubyVersion: 2.5
3
-
4
- Style/StringLiterals:
5
- Enabled: true
6
- EnforcedStyle: double_quotes
7
-
8
- Style/StringLiteralsInInterpolation:
9
- Enabled: true
10
- EnforcedStyle: double_quotes
11
-
12
- Layout/LineLength:
13
- Max: 120
14
-
15
- Layout/EndOfLine:
16
- Enabled: False
17
-
18
- Gemspec/DateAssignment: # new in 1.10
19
- Enabled: true
20
- Layout/LineEndStringConcatenationIndentation: # new in 1.18
21
- Enabled: true
22
- Layout/SpaceBeforeBrackets: # new in 1.7
23
- Enabled: true
24
- Lint/AmbiguousAssignment: # new in 1.7
25
- Enabled: true
26
- Lint/AmbiguousOperatorPrecedence: # new in 1.21
27
- Enabled: true
28
- Lint/AmbiguousRange: # new in 1.19
29
- Enabled: true
30
- Lint/DeprecatedConstants: # new in 1.8
31
- Enabled: true
32
- Lint/DuplicateBranch: # new in 1.3
33
- Enabled: true
34
- Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
35
- Enabled: true
36
- Lint/EmptyBlock: # new in 1.1
37
- Enabled: true
38
- Lint/EmptyClass: # new in 1.3
39
- Enabled: true
40
- Lint/EmptyInPattern: # new in 1.16
41
- Enabled: true
42
- Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
43
- Enabled: true
44
- Lint/LambdaWithoutLiteralBlock: # new in 1.8
45
- Enabled: true
46
- Lint/NoReturnInBeginEndBlocks: # new in 1.2
47
- Enabled: true
48
- Lint/NumberedParameterAssignment: # new in 1.9
49
- Enabled: true
50
- Lint/OrAssignmentToConstant: # new in 1.9
51
- Enabled: true
52
- Lint/RedundantDirGlobSort: # new in 1.8
53
- Enabled: true
54
- Lint/RequireRelativeSelfPath: # new in 1.22
55
- Enabled: true
56
- Lint/SymbolConversion: # new in 1.9
57
- Enabled: true
58
- Lint/ToEnumArguments: # new in 1.1
59
- Enabled: true
60
- Lint/TripleQuotes: # new in 1.9
61
- Enabled: true
62
- Lint/UnexpectedBlockArity: # new in 1.5
63
- Enabled: true
64
- Lint/UnmodifiedReduceAccumulator: # new in 1.1
65
- Enabled: true
66
- Security/IoMethods: # new in 1.22
67
- Enabled: true
68
- Style/ArgumentsForwarding: # new in 1.1
69
- Enabled: true
70
- Style/CollectionCompact: # new in 1.2
71
- Enabled: true
72
- Style/DocumentDynamicEvalDefinition: # new in 1.1
73
- Enabled: true
74
- Style/EndlessMethod: # new in 1.8
75
- Enabled: true
76
- Style/HashConversion: # new in 1.10
77
- Enabled: true
78
- Style/HashExcept: # new in 1.7
79
- Enabled: true
80
- Style/IfWithBooleanLiteralBranches: # new in 1.9
81
- Enabled: true
82
- Style/InPatternThen: # new in 1.16
83
- Enabled: true
84
- Style/MultilineInPatternThen: # new in 1.16
85
- Enabled: true
86
- Style/NegatedIfElseCondition: # new in 1.2
87
- Enabled: true
88
- Style/NilLambda: # new in 1.3
89
- Enabled: true
90
- Style/NumberedParameters: # new in 1.22
91
- Enabled: true
92
- Style/NumberedParametersLimit: # new in 1.22
93
- Enabled: true
94
- Style/OptionalBooleanParameter:
95
- Enabled: false
96
- Style/QuotedSymbols: # new in 1.16
97
- Enabled: true
98
- Style/RedundantArgument: # new in 1.4
99
- Enabled: true
100
- Style/RedundantSelfAssignmentBranch: # new in 1.19
101
- Enabled: true
102
- Style/SelectByRegexp: # new in 1.22
103
- Enabled: true
104
- Style/StringChars: # new in 1.12
105
- Enabled: true
106
- Style/SwapValues: # new in 1.1
107
- Enabled: true
108
-
109
- AllCops:
110
- Exclude:
111
- - 'palindrome_ext.gemspec'
112
- NewCops: enable
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2021-11-09
4
-
5
- - Initial release
data/CODE_OF_CONDUCT.md DELETED
@@ -1,84 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
-
7
- We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
-
9
- ## Our Standards
10
-
11
- Examples of behavior that contributes to a positive environment for our community include:
12
-
13
- * Demonstrating empathy and kindness toward other people
14
- * Being respectful of differing opinions, viewpoints, and experiences
15
- * Giving and gracefully accepting constructive feedback
16
- * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
- * Focusing on what is best not just for us as individuals, but for the overall community
18
-
19
- Examples of unacceptable behavior include:
20
-
21
- * The use of sexualized language or imagery, and sexual attention or
22
- advances of any kind
23
- * Trolling, insulting or derogatory comments, and personal or political attacks
24
- * Public or private harassment
25
- * Publishing others' private information, such as a physical or email
26
- address, without their explicit permission
27
- * Other conduct which could reasonably be considered inappropriate in a
28
- professional setting
29
-
30
- ## Enforcement Responsibilities
31
-
32
- Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
-
34
- Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
-
36
- ## Scope
37
-
38
- This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
-
40
- ## Enforcement
41
-
42
- Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at ajiellodev@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
-
44
- All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
-
46
- ## Enforcement Guidelines
47
-
48
- Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
-
50
- ### 1. Correction
51
-
52
- **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
-
54
- **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
-
56
- ### 2. Warning
57
-
58
- **Community Impact**: A violation through a single incident or series of actions.
59
-
60
- **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
-
62
- ### 3. Temporary Ban
63
-
64
- **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
-
66
- **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
-
68
- ### 4. Permanent Ban
69
-
70
- **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
-
72
- **Consequence**: A permanent ban from any sort of public interaction within the community.
73
-
74
- ## Attribution
75
-
76
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
- available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
-
79
- Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
-
81
- [homepage]: https://www.contributor-covenant.org
82
-
83
- For answers to common questions about this code of conduct, see the FAQ at
84
- https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
-
5
- # Specify your gem's dependencies in palindrome_ext.gemspec
6
- gemspec
7
-
8
- gem "rake", "~> 13.0"
9
-
10
- gem "rspec", "~> 3.2"
11
-
12
- gem "rubocop", "~> 1.7"
data/Gemfile.lock DELETED
@@ -1,58 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- palindrome_ext (0.1.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- ast (2.4.2)
10
- diff-lcs (1.4.4)
11
- parallel (1.21.0)
12
- parser (3.0.2.0)
13
- ast (~> 2.4.1)
14
- rainbow (3.0.0)
15
- rake (13.0.6)
16
- regexp_parser (2.1.1)
17
- rexml (3.2.5)
18
- rspec (3.10.0)
19
- rspec-core (~> 3.10.0)
20
- rspec-expectations (~> 3.10.0)
21
- rspec-mocks (~> 3.10.0)
22
- rspec-core (3.10.1)
23
- rspec-support (~> 3.10.0)
24
- rspec-expectations (3.10.1)
25
- diff-lcs (>= 1.2.0, < 2.0)
26
- rspec-support (~> 3.10.0)
27
- rspec-mocks (3.10.2)
28
- diff-lcs (>= 1.2.0, < 2.0)
29
- rspec-support (~> 3.10.0)
30
- rspec-support (3.10.3)
31
- rubocop (1.22.3)
32
- parallel (~> 1.10)
33
- parser (>= 3.0.0.0)
34
- rainbow (>= 2.2.2, < 4.0)
35
- regexp_parser (>= 1.8, < 3.0)
36
- rexml
37
- rubocop-ast (>= 1.12.0, < 2.0)
38
- ruby-progressbar (~> 1.7)
39
- unicode-display_width (>= 1.4.0, < 3.0)
40
- rubocop-ast (1.13.0)
41
- parser (>= 3.0.1.1)
42
- ruby-progressbar (1.11.0)
43
- unicode-display_width (2.1.0)
44
-
45
- PLATFORMS
46
- universal-darwin-20
47
- x64-mingw32
48
- x86_64-darwin-19
49
- x86_64-linux
50
-
51
- DEPENDENCIES
52
- palindrome_ext!
53
- rake (~> 13.0)
54
- rspec (~> 3.2)
55
- rubocop (~> 1.7)
56
-
57
- BUNDLED WITH
58
- 2.2.28
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
data/bin/console DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require "bundler/setup"
5
- require "palindrome_ext"
6
-
7
- # You can add fixtures and/or initialization code here to make experimenting
8
- # with your gem easier. You can also use a different console, if you like.
9
-
10
- # (If you use this, don't forget to add pry to your Gemfile!)
11
- # require "pry"
12
- # Pry.start
13
-
14
- require "irb"
15
- IRB.start(__FILE__)
data/bin/setup DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
-
8
- # Do any other automated setup that you need to do here
@@ -1,31 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/palindrome_ext/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "palindrome_ext"
7
- spec.version = PalindromeExt::VERSION
8
- spec.authors = ["A.J. Romaniello"]
9
- spec.email = ["ajiellodev@gmail.com"]
10
-
11
- spec.summary = "Adds methods for determining whether or not a string, integer, or array are palindromes."
12
- spec.description = "Overrides Ruby's default String, Integer, and Array classes to determine whether or not their contents can be considered a palindrome."
13
- spec.homepage = "https://github.com/aj-rom/palindrome_ext"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.5.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/aj-rom/palindrome_ext"
19
- spec.metadata["changelog_uri"] = "https://github.com/aj-rom/palindrome_ext"
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
- `git ls-files -z`.split("\x0").reject do |f|
25
- (f == __FILE__) || f.match(%r{\A(?:(?:test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
- end
27
- end
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
- spec.require_paths = ["lib"]
31
- end