DenisBajrami_palindrome 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/DenisBajrami_palindrome.iml +18 -0
- data/.idea/encodings.xml +4 -0
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/.idea/misc.xml +7 -0
- data/.idea/modules.xml +8 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +208 -0
- data/.travis.yml +7 -0
- data/DenisBajrami_palindrome.gemspec +42 -0
- data/Gemfile +8 -0
- data/Gemfile.lock +31 -0
- data/README.md +30 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/DenisBajrami_palindrome.rb +16 -0
- data/lib/DenisBajrami_palindrome/version.rb +3 -0
- metadata +109 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 12518c1a27634060aec2b53f742bf3c0690e6d84a7410cb3d770319918dd42f8
|
4
|
+
data.tar.gz: cc75f72cc91df18806678a703ea76d4eb3f0a8c5af8becf162c082b2e9d61da3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f00ef5611fb8ac139942e6ff0abdf19cd949e567ebcee5266267a993645c1a6a6d8965bc0a848c84988b8d09e7af93e91d3bd3abb3fd2a669707e297fe6b20cb
|
7
|
+
data.tar.gz: f0bfbf0bd1fe28d9ee591b0034481a651f7d33b51233a2e6cc346bbbbdb19636327ac6f527ed3ebd82086e9a410379a8db8845daf539611d85538f6df9d356d8
|
data/.gitignore
ADDED
data/.idea/.rakeTasks
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Settings><!--This file was automatically generated by Ruby plugin.
|
3
|
+
You are allowed to:
|
4
|
+
1. Remove rake task
|
5
|
+
2. Add existing rake tasks
|
6
|
+
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<shared />
|
5
|
+
</component>
|
6
|
+
<component name="NewModuleRootManager">
|
7
|
+
<content url="file://$MODULE_DIR$" />
|
8
|
+
<orderEntry type="inheritedJdk" />
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, ruby-2.3.7-p456) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.3, ruby-2.3.7-p456) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.17.2, ruby-2.3.7-p456) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.11.3, ruby-2.3.7-p456) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest-reporters (v1.2.0, ruby-2.3.7-p456) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, ruby-2.3.7-p456) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.10.0, ruby-2.3.7-p456) [gem]" level="application" />
|
17
|
+
</component>
|
18
|
+
</module>
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="JavaScriptSettings">
|
4
|
+
<option name="languageLevel" value="ES6" />
|
5
|
+
</component>
|
6
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.3.7-p456" project-jdk-type="RUBY_SDK" />
|
7
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/DenisBajrami_palindrome.iml" filepath="$PROJECT_DIR$/.idea/DenisBajrami_palindrome.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,208 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="c8994bdc-de80-417d-9ad1-b7868e410009" name="Default Changelist" comment="" />
|
5
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
6
|
+
<option name="SHOW_DIALOG" value="false" />
|
7
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
8
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
9
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
10
|
+
</component>
|
11
|
+
<component name="FileEditorManager">
|
12
|
+
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
|
13
|
+
<file pinned="false" current-in-tab="false">
|
14
|
+
<entry file="file://$PROJECT_DIR$/DenisBajrami_palindrome.gemspec">
|
15
|
+
<provider selected="true" editor-type-id="text-editor">
|
16
|
+
<state relative-caret-position="630">
|
17
|
+
<caret line="42" selection-start-line="42" selection-end-line="42" />
|
18
|
+
</state>
|
19
|
+
</provider>
|
20
|
+
</entry>
|
21
|
+
</file>
|
22
|
+
<file pinned="false" current-in-tab="false">
|
23
|
+
<entry file="file://$PROJECT_DIR$/test/DenisBajrami_palindrome_test.rb">
|
24
|
+
<provider selected="true" editor-type-id="text-editor">
|
25
|
+
<state relative-caret-position="105">
|
26
|
+
<caret line="7" selection-start-line="7" selection-end-line="7" />
|
27
|
+
</state>
|
28
|
+
</provider>
|
29
|
+
</entry>
|
30
|
+
</file>
|
31
|
+
<file pinned="false" current-in-tab="true">
|
32
|
+
<entry file="file://$PROJECT_DIR$/lib/DenisBajrami_palindrome.rb">
|
33
|
+
<provider selected="true" editor-type-id="text-editor">
|
34
|
+
<state relative-caret-position="240">
|
35
|
+
<caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
|
36
|
+
</state>
|
37
|
+
</provider>
|
38
|
+
</entry>
|
39
|
+
</file>
|
40
|
+
</leaf>
|
41
|
+
</component>
|
42
|
+
<component name="Git.Settings">
|
43
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
44
|
+
<option name="RECENT_BRANCH_BY_REPOSITORY">
|
45
|
+
<map>
|
46
|
+
<entry key="$PROJECT_DIR$" value="master" />
|
47
|
+
</map>
|
48
|
+
</option>
|
49
|
+
</component>
|
50
|
+
<component name="IdeDocumentHistory">
|
51
|
+
<option name="CHANGED_PATHS">
|
52
|
+
<list>
|
53
|
+
<option value="$PROJECT_DIR$/Gemfile" />
|
54
|
+
<option value="$PROJECT_DIR$/test/test_helper.rb" />
|
55
|
+
<option value="$PROJECT_DIR$/DenisBajrami_palindrome.gemspec" />
|
56
|
+
<option value="$PROJECT_DIR$/test/DenisBajrami_palindrome_test.rb" />
|
57
|
+
<option value="$PROJECT_DIR$/lib/DenisBajrami_palindrome.rb" />
|
58
|
+
<option value="$PROJECT_DIR$/README.md" />
|
59
|
+
</list>
|
60
|
+
</option>
|
61
|
+
</component>
|
62
|
+
<component name="ProjectFrameBounds">
|
63
|
+
<option name="x" value="1920" />
|
64
|
+
<option name="y" value="23" />
|
65
|
+
<option name="width" value="1440" />
|
66
|
+
<option name="height" value="821" />
|
67
|
+
</component>
|
68
|
+
<component name="ProjectView">
|
69
|
+
<navigator proportions="" version="1">
|
70
|
+
<foldersAlwaysOnTop value="true" />
|
71
|
+
</navigator>
|
72
|
+
<panes>
|
73
|
+
<pane id="Scope" />
|
74
|
+
<pane id="ProjectPane">
|
75
|
+
<subPane>
|
76
|
+
<expand>
|
77
|
+
<path>
|
78
|
+
<item name="denis_palindrome" type="b2602c69:ProjectViewProjectNode" />
|
79
|
+
<item name="denis_palindrome" type="462c0819:PsiDirectoryNode" />
|
80
|
+
</path>
|
81
|
+
</expand>
|
82
|
+
<select />
|
83
|
+
</subPane>
|
84
|
+
</pane>
|
85
|
+
</panes>
|
86
|
+
</component>
|
87
|
+
<component name="PropertiesComponent">
|
88
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
89
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
90
|
+
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
91
|
+
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
92
|
+
</component>
|
93
|
+
<component name="RunDashboard">
|
94
|
+
<option name="ruleStates">
|
95
|
+
<list>
|
96
|
+
<RuleState>
|
97
|
+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
98
|
+
</RuleState>
|
99
|
+
<RuleState>
|
100
|
+
<option name="name" value="StatusDashboardGroupingRule" />
|
101
|
+
</RuleState>
|
102
|
+
</list>
|
103
|
+
</option>
|
104
|
+
</component>
|
105
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
106
|
+
<component name="SvnConfiguration">
|
107
|
+
<configuration />
|
108
|
+
</component>
|
109
|
+
<component name="TaskManager">
|
110
|
+
<task active="true" id="Default" summary="Default task">
|
111
|
+
<changelist id="c8994bdc-de80-417d-9ad1-b7868e410009" name="Default Changelist" comment="" />
|
112
|
+
<created>1545821345394</created>
|
113
|
+
<option name="number" value="Default" />
|
114
|
+
<option name="presentableId" value="Default" />
|
115
|
+
<updated>1545821345394</updated>
|
116
|
+
<workItem from="1545821347068" duration="3638000" />
|
117
|
+
<workItem from="1545831434423" duration="2654000" />
|
118
|
+
<workItem from="1545984499544" duration="1172000" />
|
119
|
+
</task>
|
120
|
+
<servers />
|
121
|
+
</component>
|
122
|
+
<component name="TimeTrackingManager">
|
123
|
+
<option name="totallyTimeSpent" value="8498000" />
|
124
|
+
</component>
|
125
|
+
<component name="ToolWindowManager">
|
126
|
+
<frame x="1920" y="23" width="1440" height="821" extended-state="0" />
|
127
|
+
<editor active="true" />
|
128
|
+
<layout>
|
129
|
+
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25679544" />
|
130
|
+
<window_info id="Structure" order="1" side_tool="true" weight="0.25" />
|
131
|
+
<window_info id="Favorites" order="2" side_tool="true" />
|
132
|
+
<window_info anchor="bottom" id="Message" order="0" />
|
133
|
+
<window_info anchor="bottom" id="Find" order="1" />
|
134
|
+
<window_info anchor="bottom" id="Run" order="2" sideWeight="0.49928468" weight="0.32784638" />
|
135
|
+
<window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
|
136
|
+
<window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
|
137
|
+
<window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
|
138
|
+
<window_info anchor="bottom" id="TODO" order="6" />
|
139
|
+
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
|
140
|
+
<window_info anchor="bottom" id="Version Control" order="8" weight="0.32784638" />
|
141
|
+
<window_info anchor="bottom" id="Database Changes" order="9" />
|
142
|
+
<window_info anchor="bottom" id="Terminal" order="10" />
|
143
|
+
<window_info anchor="bottom" id="Event Log" order="11" sideWeight="0.5007153" side_tool="true" weight="0.32784638" />
|
144
|
+
<window_info anchor="bottom" id="Messages" order="12" sideWeight="0.49928468" weight="0.32784638" />
|
145
|
+
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
|
146
|
+
<window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
|
147
|
+
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
|
148
|
+
<window_info anchor="right" id="Database" order="3" />
|
149
|
+
</layout>
|
150
|
+
</component>
|
151
|
+
<component name="TypeScriptGeneratedFilesManager">
|
152
|
+
<option name="version" value="1" />
|
153
|
+
</component>
|
154
|
+
<component name="editorHistoryManager">
|
155
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
156
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
157
|
+
<state split_layout="SPLIT">
|
158
|
+
<first_editor relative-caret-position="285">
|
159
|
+
<caret line="19" lean-forward="true" selection-start-line="19" selection-end-line="19" />
|
160
|
+
</first_editor>
|
161
|
+
<second_editor />
|
162
|
+
</state>
|
163
|
+
</provider>
|
164
|
+
</entry>
|
165
|
+
<entry file="file://$PROJECT_DIR$/DenisBajrami_palindrome.gemspec">
|
166
|
+
<provider selected="true" editor-type-id="text-editor">
|
167
|
+
<state relative-caret-position="630">
|
168
|
+
<caret line="42" selection-start-line="42" selection-end-line="42" />
|
169
|
+
</state>
|
170
|
+
</provider>
|
171
|
+
</entry>
|
172
|
+
<entry file="file://$PROJECT_DIR$/test/test_helper.rb">
|
173
|
+
<provider selected="true" editor-type-id="text-editor">
|
174
|
+
<state relative-caret-position="90">
|
175
|
+
<caret line="6" lean-forward="true" selection-start-line="6" selection-end-line="6" />
|
176
|
+
</state>
|
177
|
+
</provider>
|
178
|
+
</entry>
|
179
|
+
<entry file="file://$PROJECT_DIR$/test/DenisBajrami_palindrome_test.rb">
|
180
|
+
<provider selected="true" editor-type-id="text-editor">
|
181
|
+
<state relative-caret-position="105">
|
182
|
+
<caret line="7" selection-start-line="7" selection-end-line="7" />
|
183
|
+
</state>
|
184
|
+
</provider>
|
185
|
+
</entry>
|
186
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
187
|
+
<provider selected="true" editor-type-id="text-editor">
|
188
|
+
<state relative-caret-position="120">
|
189
|
+
<caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" />
|
190
|
+
</state>
|
191
|
+
</provider>
|
192
|
+
</entry>
|
193
|
+
<entry file="file://$PROJECT_DIR$/lib/DenisBajrami_palindrome/version.rb">
|
194
|
+
<provider selected="true" editor-type-id="text-editor">
|
195
|
+
<state relative-caret-position="45">
|
196
|
+
<caret line="3" lean-forward="true" selection-start-line="3" selection-end-line="3" />
|
197
|
+
</state>
|
198
|
+
</provider>
|
199
|
+
</entry>
|
200
|
+
<entry file="file://$PROJECT_DIR$/lib/DenisBajrami_palindrome.rb">
|
201
|
+
<provider selected="true" editor-type-id="text-editor">
|
202
|
+
<state relative-caret-position="240">
|
203
|
+
<caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
|
204
|
+
</state>
|
205
|
+
</provider>
|
206
|
+
</entry>
|
207
|
+
</component>
|
208
|
+
</project>
|
data/.travis.yml
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "DenisBajrami_palindrome/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "DenisBajrami_palindrome"
|
8
|
+
spec.version = DenisBajramiPalindrome::VERSION
|
9
|
+
spec.authors = ["DenisBajrami"]
|
10
|
+
spec.email = ["denis.sec773@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Palindrome detector}
|
13
|
+
spec.description = %q{Learn simple Ruby palindrome detector}
|
14
|
+
spec.homepage = "https://github.com/DenisBajrami/denis_palindrome"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org/"
|
21
|
+
|
22
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
23
|
+
spec.metadata["source_code_uri"] = "https://github.com/DenisBajrami/denis_palindrome"
|
24
|
+
spec.metadata["changelog_uri"] = "https://github.com/DenisBajrami/denis_palindrome/blob/master/README.md"
|
25
|
+
else
|
26
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
27
|
+
"public gem pushes."
|
28
|
+
end
|
29
|
+
|
30
|
+
# Specify which files should be added to the gem when it is released.
|
31
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
32
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
33
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
34
|
+
end
|
35
|
+
spec.bindir = "exe"
|
36
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
37
|
+
spec.require_paths = ["lib"]
|
38
|
+
|
39
|
+
spec.add_development_dependency "bundler", "~> 1.17"
|
40
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
41
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
42
|
+
end
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
DenisBajrami_palindrome (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
ansi (1.5.0)
|
10
|
+
builder (3.2.3)
|
11
|
+
minitest (5.11.3)
|
12
|
+
minitest-reporters (1.2.0)
|
13
|
+
ansi
|
14
|
+
builder
|
15
|
+
minitest (>= 5.0)
|
16
|
+
ruby-progressbar
|
17
|
+
rake (10.5.0)
|
18
|
+
ruby-progressbar (1.10.0)
|
19
|
+
|
20
|
+
PLATFORMS
|
21
|
+
ruby
|
22
|
+
|
23
|
+
DEPENDENCIES
|
24
|
+
DenisBajrami_palindrome!
|
25
|
+
bundler (~> 1.17)
|
26
|
+
minitest (~> 5.0)
|
27
|
+
minitest-reporters (= 1.2.0)
|
28
|
+
rake (~> 10.0)
|
29
|
+
|
30
|
+
BUNDLED WITH
|
31
|
+
1.17.2
|
data/README.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# DenisBajramiPalindrome
|
2
|
+
|
3
|
+
## Installation
|
4
|
+
|
5
|
+
Add this line to your application's Gemfile:
|
6
|
+
|
7
|
+
```ruby
|
8
|
+
gem 'DenisBajrami_palindrome'
|
9
|
+
```
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install DenisBajrami_palindrome
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
|
22
|
+
## Development
|
23
|
+
|
24
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
25
|
+
|
26
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
27
|
+
|
28
|
+
## Contributing
|
29
|
+
|
30
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/DenisBajrami_palindrome.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "DenisBajrami_palindrome"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "DenisBajrami_palindrome/version"
|
2
|
+
|
3
|
+
class String
|
4
|
+
|
5
|
+
# Returns true for a palindrome, false otherwise.
|
6
|
+
def palindrome?
|
7
|
+
processed_content == processed_content.reverse
|
8
|
+
end
|
9
|
+
|
10
|
+
private
|
11
|
+
|
12
|
+
# Returns content for palindrome testing.
|
13
|
+
def processed_content
|
14
|
+
self.scan(/[a-z]/i).join.downcase
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,109 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: DenisBajrami_palindrome
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- DenisBajrami
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-12-28 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: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
description: Learn simple Ruby palindrome detector
|
56
|
+
email:
|
57
|
+
- denis.sec773@gmail.com
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".idea/.rakeTasks"
|
64
|
+
- ".idea/DenisBajrami_palindrome.iml"
|
65
|
+
- ".idea/encodings.xml"
|
66
|
+
- ".idea/inspectionProfiles/Project_Default.xml"
|
67
|
+
- ".idea/misc.xml"
|
68
|
+
- ".idea/modules.xml"
|
69
|
+
- ".idea/vcs.xml"
|
70
|
+
- ".idea/workspace.xml"
|
71
|
+
- ".travis.yml"
|
72
|
+
- DenisBajrami_palindrome.gemspec
|
73
|
+
- Gemfile
|
74
|
+
- Gemfile.lock
|
75
|
+
- README.md
|
76
|
+
- Rakefile
|
77
|
+
- bin/console
|
78
|
+
- bin/setup
|
79
|
+
- lib/DenisBajrami_palindrome.rb
|
80
|
+
- lib/DenisBajrami_palindrome/version.rb
|
81
|
+
homepage: https://github.com/DenisBajrami/denis_palindrome
|
82
|
+
licenses:
|
83
|
+
- MIT
|
84
|
+
metadata:
|
85
|
+
allowed_push_host: https://rubygems.org/
|
86
|
+
homepage_uri: https://github.com/DenisBajrami/denis_palindrome
|
87
|
+
source_code_uri: https://github.com/DenisBajrami/denis_palindrome
|
88
|
+
changelog_uri: https://github.com/DenisBajrami/denis_palindrome/blob/master/README.md
|
89
|
+
post_install_message:
|
90
|
+
rdoc_options: []
|
91
|
+
require_paths:
|
92
|
+
- lib
|
93
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0'
|
98
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
103
|
+
requirements: []
|
104
|
+
rubyforge_project:
|
105
|
+
rubygems_version: 2.7.6
|
106
|
+
signing_key:
|
107
|
+
specification_version: 4
|
108
|
+
summary: Palindrome detector
|
109
|
+
test_files: []
|