can_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 +7 -0
- data/.gitignore +9 -0
- data/.idea/can_palindrome.iml +57 -0
- data/.idea/misc.xml +14 -0
- data/.idea/modules.xml +8 -0
- data/.idea/workspace.xml +514 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +58 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/can_palindrome.gemspec +33 -0
- data/lib/can_palindrome.rb +22 -0
- data/lib/can_palindrome/version.rb +3 -0
- metadata +106 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7adf9640a76009214863c8e53a1888f275b4a8f4
|
4
|
+
data.tar.gz: 215a21d35a3a3a9839285fd0fa1218fdceb09724
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e78f7192658338f4083e8557ac0bbe7cac2ce7008a35f4fb05f6a31e5cc9879ee6d8924ceb39e42b57a84694139955df80a8e86d360cb1d9122751847d31c787
|
7
|
+
data.tar.gz: 3c3e79afdcc87c79156518373efeef6355390bd64b39ed45d62d7d12f5b72bc4135613243fdca5ae5ea24130a340beeb59f5e5c736419b49f181322030f4f3be
|
data/.gitignore
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="New Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB': can_palindrome" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
14
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
15
|
+
<module name="can_palindrome" />
|
16
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
17
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
18
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
19
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
20
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
21
|
+
<envs>
|
22
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
23
|
+
</envs>
|
24
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
25
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
26
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
27
|
+
<COVERAGE_PATTERN ENABLED="true">
|
28
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
29
|
+
</COVERAGE_PATTERN>
|
30
|
+
</EXTENSION>
|
31
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
32
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/can_palindrome_spec.rb" />
|
33
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
34
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
35
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB'" />
|
36
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
37
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
38
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
39
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
40
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
41
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
42
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
43
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
44
|
+
<method />
|
45
|
+
</configuration>
|
46
|
+
</component>
|
47
|
+
<component name="NewModuleRootManager">
|
48
|
+
<content url="file://$MODULE_DIR$">
|
49
|
+
<excludeFolder url="file://$MODULE_DIR$/.bundle" />
|
50
|
+
<excludeFolder url="file://$MODULE_DIR$/vendor/bundle" />
|
51
|
+
</content>
|
52
|
+
<orderEntry type="inheritedJdk" />
|
53
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.12.5, RVM: ruby-2.3.0 [global]) [gem]" level="application" />
|
55
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.3.0 [global]) [gem]" level="application" />
|
56
|
+
</component>
|
57
|
+
</module>
|
data/.idea/misc.xml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
4
|
+
<OptionsSetting value="true" id="Add" />
|
5
|
+
<OptionsSetting value="true" id="Remove" />
|
6
|
+
<OptionsSetting value="true" id="Checkout" />
|
7
|
+
<OptionsSetting value="true" id="Update" />
|
8
|
+
<OptionsSetting value="true" id="Status" />
|
9
|
+
<OptionsSetting value="true" id="Edit" />
|
10
|
+
<ConfirmationsSetting value="0" id="Add" />
|
11
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
12
|
+
</component>
|
13
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.3.0 [global]" project-jdk-type="RUBY_SDK" />
|
14
|
+
</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/can_palindrome.iml" filepath="$PROJECT_DIR$/.idea/can_palindrome.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,514 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="5d980e79-9d31-4453-89b2-4b0e769a96be" name="Default" comment="" />
|
5
|
+
<ignored path="can_palindrome.iws" />
|
6
|
+
<ignored path=".idea/workspace.xml" />
|
7
|
+
<ignored path=".idea/dataSources.local.xml" />
|
8
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
9
|
+
<option name="TRACKING_ENABLED" value="true" />
|
10
|
+
<option name="SHOW_DIALOG" value="false" />
|
11
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
12
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
13
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
14
|
+
</component>
|
15
|
+
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
16
|
+
<component name="CreatePatchCommitExecutor">
|
17
|
+
<option name="PATCH_PATH" value="" />
|
18
|
+
</component>
|
19
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
20
|
+
<component name="FavoritesManager">
|
21
|
+
<favorites_list name="can_palindrome" />
|
22
|
+
</component>
|
23
|
+
<component name="FileEditorManager">
|
24
|
+
<leaf>
|
25
|
+
<file leaf-file-name="can_palindrome_spec.rb" pinned="false" current-in-tab="false">
|
26
|
+
<entry file="file://$PROJECT_DIR$/spec/can_palindrome_spec.rb">
|
27
|
+
<provider selected="true" editor-type-id="text-editor">
|
28
|
+
<state relative-caret-position="540">
|
29
|
+
<caret line="36" column="0" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" />
|
30
|
+
<folding />
|
31
|
+
</state>
|
32
|
+
</provider>
|
33
|
+
</entry>
|
34
|
+
</file>
|
35
|
+
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
36
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
37
|
+
<provider selected="true" editor-type-id="text-editor">
|
38
|
+
<state relative-caret-position="0">
|
39
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
40
|
+
<folding />
|
41
|
+
</state>
|
42
|
+
</provider>
|
43
|
+
</entry>
|
44
|
+
</file>
|
45
|
+
<file leaf-file-name="CODE_OF_CONDUCT.md" pinned="false" current-in-tab="false">
|
46
|
+
<entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
|
47
|
+
<provider editor-type-id="MarkdownFxPreviewEditor">
|
48
|
+
<state />
|
49
|
+
</provider>
|
50
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
|
51
|
+
<state split_layout="FIRST">
|
52
|
+
<first_editor relative-caret-position="0">
|
53
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
54
|
+
<folding />
|
55
|
+
</first_editor>
|
56
|
+
<second_editor />
|
57
|
+
</state>
|
58
|
+
</provider>
|
59
|
+
</entry>
|
60
|
+
</file>
|
61
|
+
<file leaf-file-name="can_palindrome.gemspec" pinned="false" current-in-tab="true">
|
62
|
+
<entry file="file://$PROJECT_DIR$/can_palindrome.gemspec">
|
63
|
+
<provider selected="true" editor-type-id="text-editor">
|
64
|
+
<state relative-caret-position="343">
|
65
|
+
<caret line="24" column="67" selection-start-line="24" selection-start-column="67" selection-end-line="24" selection-end-column="67" />
|
66
|
+
<folding />
|
67
|
+
</state>
|
68
|
+
</provider>
|
69
|
+
</entry>
|
70
|
+
</file>
|
71
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
72
|
+
<entry file="file://$PROJECT_DIR$/lib/can_palindrome/version.rb">
|
73
|
+
<provider selected="true" editor-type-id="text-editor">
|
74
|
+
<state relative-caret-position="15">
|
75
|
+
<caret line="1" column="2" selection-start-line="1" selection-start-column="2" selection-end-line="1" selection-end-column="2" />
|
76
|
+
<folding />
|
77
|
+
</state>
|
78
|
+
</provider>
|
79
|
+
</entry>
|
80
|
+
</file>
|
81
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
82
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
83
|
+
<provider editor-type-id="MarkdownFxPreviewEditor">
|
84
|
+
<state />
|
85
|
+
</provider>
|
86
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
|
87
|
+
<state split_layout="FIRST">
|
88
|
+
<first_editor relative-caret-position="360">
|
89
|
+
<caret line="24" column="0" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
|
90
|
+
<folding />
|
91
|
+
</first_editor>
|
92
|
+
<second_editor />
|
93
|
+
</state>
|
94
|
+
</provider>
|
95
|
+
</entry>
|
96
|
+
</file>
|
97
|
+
<file leaf-file-name=".rspec" pinned="false" current-in-tab="false">
|
98
|
+
<entry file="file://$PROJECT_DIR$/.rspec">
|
99
|
+
<provider selected="true" editor-type-id="text-editor">
|
100
|
+
<state relative-caret-position="0">
|
101
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
102
|
+
<folding />
|
103
|
+
</state>
|
104
|
+
</provider>
|
105
|
+
</entry>
|
106
|
+
</file>
|
107
|
+
<file leaf-file-name="spec_helper.rb" pinned="false" current-in-tab="false">
|
108
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
109
|
+
<provider selected="true" editor-type-id="text-editor">
|
110
|
+
<state relative-caret-position="0">
|
111
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
112
|
+
<folding />
|
113
|
+
</state>
|
114
|
+
</provider>
|
115
|
+
</entry>
|
116
|
+
</file>
|
117
|
+
<file leaf-file-name="can_palindrome.rb" pinned="false" current-in-tab="false">
|
118
|
+
<entry file="file://$PROJECT_DIR$/lib/can_palindrome.rb">
|
119
|
+
<provider selected="true" editor-type-id="text-editor">
|
120
|
+
<state relative-caret-position="285">
|
121
|
+
<caret line="19" column="18" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="18" />
|
122
|
+
<folding />
|
123
|
+
</state>
|
124
|
+
</provider>
|
125
|
+
</entry>
|
126
|
+
</file>
|
127
|
+
</leaf>
|
128
|
+
</component>
|
129
|
+
<component name="IdeDocumentHistory">
|
130
|
+
<option name="CHANGED_PATHS">
|
131
|
+
<list>
|
132
|
+
<option value="$PROJECT_DIR$/spec/can_palindrome_spec.rb" />
|
133
|
+
<option value="$PROJECT_DIR$/lib/can_palindrome.rb" />
|
134
|
+
<option value="$PROJECT_DIR$/README.md" />
|
135
|
+
<option value="$PROJECT_DIR$/can_palindrome.gemspec" />
|
136
|
+
</list>
|
137
|
+
</option>
|
138
|
+
</component>
|
139
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
140
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
141
|
+
<component name="JsGulpfileManager">
|
142
|
+
<detection-done>true</detection-done>
|
143
|
+
<sorting>DEFINITION_ORDER</sorting>
|
144
|
+
</component>
|
145
|
+
<component name="ProjectFrameBounds">
|
146
|
+
<option name="x" value="398" />
|
147
|
+
<option name="y" value="59" />
|
148
|
+
<option name="width" value="1522" />
|
149
|
+
<option name="height" value="949" />
|
150
|
+
</component>
|
151
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
152
|
+
<OptionsSetting value="true" id="Add" />
|
153
|
+
<OptionsSetting value="true" id="Remove" />
|
154
|
+
<OptionsSetting value="true" id="Checkout" />
|
155
|
+
<OptionsSetting value="true" id="Update" />
|
156
|
+
<OptionsSetting value="true" id="Status" />
|
157
|
+
<OptionsSetting value="true" id="Edit" />
|
158
|
+
<ConfirmationsSetting value="0" id="Add" />
|
159
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
160
|
+
</component>
|
161
|
+
<component name="ProjectView">
|
162
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
163
|
+
<flattenPackages />
|
164
|
+
<showMembers />
|
165
|
+
<showModules />
|
166
|
+
<showLibraryContents />
|
167
|
+
<hideEmptyPackages />
|
168
|
+
<abbreviatePackageNames />
|
169
|
+
<autoscrollToSource />
|
170
|
+
<autoscrollFromSource />
|
171
|
+
<sortByType />
|
172
|
+
<manualOrder />
|
173
|
+
<foldersAlwaysOnTop value="true" />
|
174
|
+
</navigator>
|
175
|
+
<panes>
|
176
|
+
<pane id="ProjectPane">
|
177
|
+
<subPane>
|
178
|
+
<PATH>
|
179
|
+
<PATH_ELEMENT>
|
180
|
+
<option name="myItemId" value="can_palindrome" />
|
181
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
182
|
+
</PATH_ELEMENT>
|
183
|
+
</PATH>
|
184
|
+
<PATH>
|
185
|
+
<PATH_ELEMENT>
|
186
|
+
<option name="myItemId" value="can_palindrome" />
|
187
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
188
|
+
</PATH_ELEMENT>
|
189
|
+
<PATH_ELEMENT>
|
190
|
+
<option name="myItemId" value="can_palindrome" />
|
191
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
192
|
+
</PATH_ELEMENT>
|
193
|
+
</PATH>
|
194
|
+
<PATH>
|
195
|
+
<PATH_ELEMENT>
|
196
|
+
<option name="myItemId" value="can_palindrome" />
|
197
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
198
|
+
</PATH_ELEMENT>
|
199
|
+
<PATH_ELEMENT>
|
200
|
+
<option name="myItemId" value="can_palindrome" />
|
201
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
202
|
+
</PATH_ELEMENT>
|
203
|
+
<PATH_ELEMENT>
|
204
|
+
<option name="myItemId" value="spec" />
|
205
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
206
|
+
</PATH_ELEMENT>
|
207
|
+
</PATH>
|
208
|
+
<PATH>
|
209
|
+
<PATH_ELEMENT>
|
210
|
+
<option name="myItemId" value="can_palindrome" />
|
211
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
212
|
+
</PATH_ELEMENT>
|
213
|
+
<PATH_ELEMENT>
|
214
|
+
<option name="myItemId" value="can_palindrome" />
|
215
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
216
|
+
</PATH_ELEMENT>
|
217
|
+
<PATH_ELEMENT>
|
218
|
+
<option name="myItemId" value="lib" />
|
219
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
220
|
+
</PATH_ELEMENT>
|
221
|
+
</PATH>
|
222
|
+
</subPane>
|
223
|
+
</pane>
|
224
|
+
<pane id="Scope" />
|
225
|
+
<pane id="Scratches" />
|
226
|
+
</panes>
|
227
|
+
</component>
|
228
|
+
<component name="PropertiesComponent">
|
229
|
+
<property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
230
|
+
<property name="settings.editor.splitter.proportion" value="0.2" />
|
231
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
232
|
+
</component>
|
233
|
+
<component name="RunManager" selected="RSpec.CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB': can_palindrome">
|
234
|
+
<configuration default="false" name="CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB': can_palindrome" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
235
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
236
|
+
<module name="can_palindrome" />
|
237
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
238
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
239
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
240
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
241
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
242
|
+
<envs>
|
243
|
+
<env name="JRUBY_OPTS" value="-X+O" />
|
244
|
+
</envs>
|
245
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
246
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
247
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
248
|
+
<COVERAGE_PATTERN ENABLED="true">
|
249
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
250
|
+
</COVERAGE_PATTERN>
|
251
|
+
</EXTENSION>
|
252
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
253
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/can_palindrome_spec.rb" />
|
254
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
255
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
256
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB'" />
|
257
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
258
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
259
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
260
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
261
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
262
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
263
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
264
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
265
|
+
<method />
|
266
|
+
</configuration>
|
267
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
268
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
269
|
+
<module name="" />
|
270
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
271
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
272
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
273
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
274
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
275
|
+
<envs />
|
276
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
277
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
278
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
279
|
+
<COVERAGE_PATTERN ENABLED="true">
|
280
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
281
|
+
</COVERAGE_PATTERN>
|
282
|
+
</EXTENSION>
|
283
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
284
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
285
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
286
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
287
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
288
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
289
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
290
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
291
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
292
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
293
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
294
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
295
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
296
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
297
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
298
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
299
|
+
<method />
|
300
|
+
</configuration>
|
301
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
302
|
+
<method />
|
303
|
+
</configuration>
|
304
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
305
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
306
|
+
<module name="" />
|
307
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
308
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
309
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
310
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
311
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
312
|
+
<envs />
|
313
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
314
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
315
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
316
|
+
<COVERAGE_PATTERN ENABLED="true">
|
317
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
318
|
+
</COVERAGE_PATTERN>
|
319
|
+
</EXTENSION>
|
320
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
321
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
322
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
323
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
324
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
325
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
326
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
327
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
328
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
329
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
330
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
331
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
332
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
333
|
+
<method />
|
334
|
+
</configuration>
|
335
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
336
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
337
|
+
<module name="" />
|
338
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
339
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
340
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
341
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
342
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
343
|
+
<envs />
|
344
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
345
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
346
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
347
|
+
<COVERAGE_PATTERN ENABLED="true">
|
348
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
349
|
+
</COVERAGE_PATTERN>
|
350
|
+
</EXTENSION>
|
351
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
352
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
353
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
354
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
355
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
356
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
357
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
358
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
359
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
360
|
+
<method />
|
361
|
+
</configuration>
|
362
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
363
|
+
<method />
|
364
|
+
</configuration>
|
365
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
366
|
+
<command value="run-script" />
|
367
|
+
<scripts />
|
368
|
+
<node-interpreter value="project" />
|
369
|
+
<envs />
|
370
|
+
<method />
|
371
|
+
</configuration>
|
372
|
+
<list size="1">
|
373
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB': can_palindrome" />
|
374
|
+
</list>
|
375
|
+
<recent_temporary>
|
376
|
+
<list size="1">
|
377
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.CanPalindrome case insensitive return true for 'BoB', 'BBo', 'oBB': can_palindrome" />
|
378
|
+
</list>
|
379
|
+
</recent_temporary>
|
380
|
+
</component>
|
381
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
382
|
+
<option name="remove_strategy" value="false" />
|
383
|
+
</component>
|
384
|
+
<component name="TaskManager">
|
385
|
+
<task active="true" id="Default" summary="Default task">
|
386
|
+
<changelist id="5d980e79-9d31-4453-89b2-4b0e769a96be" name="Default" comment="" />
|
387
|
+
<created>1468464501241</created>
|
388
|
+
<option name="number" value="Default" />
|
389
|
+
<option name="presentableId" value="Default" />
|
390
|
+
<updated>1468464501241</updated>
|
391
|
+
<workItem from="1468464502389" duration="2409000" />
|
392
|
+
</task>
|
393
|
+
<servers />
|
394
|
+
</component>
|
395
|
+
<component name="TimeTrackingManager">
|
396
|
+
<option name="totallyTimeSpent" value="2409000" />
|
397
|
+
</component>
|
398
|
+
<component name="ToolWindowManager">
|
399
|
+
<frame x="398" y="59" width="1522" height="949" extended-state="0" />
|
400
|
+
<editor active="true" />
|
401
|
+
<layout>
|
402
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3153745" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
403
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
404
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
405
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
406
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
407
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.34216335" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
408
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
409
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
410
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
411
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
412
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
413
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
414
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
415
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
416
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
417
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
418
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
419
|
+
</layout>
|
420
|
+
</component>
|
421
|
+
<component name="VcsContentAnnotationSettings">
|
422
|
+
<option name="myLimit" value="2678400000" />
|
423
|
+
</component>
|
424
|
+
<component name="XDebuggerManager">
|
425
|
+
<breakpoint-manager />
|
426
|
+
<watches-manager />
|
427
|
+
</component>
|
428
|
+
<component name="editorHistoryManager">
|
429
|
+
<entry file="file://$PROJECT_DIR$/.rspec">
|
430
|
+
<provider selected="true" editor-type-id="text-editor">
|
431
|
+
<state relative-caret-position="0">
|
432
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
433
|
+
<folding />
|
434
|
+
</state>
|
435
|
+
</provider>
|
436
|
+
</entry>
|
437
|
+
<entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
|
438
|
+
<provider editor-type-id="MarkdownFxPreviewEditor">
|
439
|
+
<state />
|
440
|
+
</provider>
|
441
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
|
442
|
+
<state split_layout="FIRST">
|
443
|
+
<first_editor relative-caret-position="0">
|
444
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
445
|
+
<folding />
|
446
|
+
</first_editor>
|
447
|
+
<second_editor />
|
448
|
+
</state>
|
449
|
+
</provider>
|
450
|
+
</entry>
|
451
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
452
|
+
<provider selected="true" editor-type-id="text-editor">
|
453
|
+
<state relative-caret-position="0">
|
454
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
455
|
+
<folding />
|
456
|
+
</state>
|
457
|
+
</provider>
|
458
|
+
</entry>
|
459
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
460
|
+
<provider selected="true" editor-type-id="text-editor">
|
461
|
+
<state relative-caret-position="0">
|
462
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
463
|
+
<folding />
|
464
|
+
</state>
|
465
|
+
</provider>
|
466
|
+
</entry>
|
467
|
+
<entry file="file://$PROJECT_DIR$/spec/can_palindrome_spec.rb">
|
468
|
+
<provider selected="true" editor-type-id="text-editor">
|
469
|
+
<state relative-caret-position="540">
|
470
|
+
<caret line="36" column="0" selection-start-line="36" selection-start-column="0" selection-end-line="36" selection-end-column="0" />
|
471
|
+
<folding />
|
472
|
+
</state>
|
473
|
+
</provider>
|
474
|
+
</entry>
|
475
|
+
<entry file="file://$PROJECT_DIR$/lib/can_palindrome.rb">
|
476
|
+
<provider selected="true" editor-type-id="text-editor">
|
477
|
+
<state relative-caret-position="285">
|
478
|
+
<caret line="19" column="18" selection-start-line="19" selection-start-column="4" selection-end-line="19" selection-end-column="18" />
|
479
|
+
<folding />
|
480
|
+
</state>
|
481
|
+
</provider>
|
482
|
+
</entry>
|
483
|
+
<entry file="file://$PROJECT_DIR$/lib/can_palindrome/version.rb">
|
484
|
+
<provider selected="true" editor-type-id="text-editor">
|
485
|
+
<state relative-caret-position="15">
|
486
|
+
<caret line="1" column="2" selection-start-line="1" selection-start-column="2" selection-end-line="1" selection-end-column="2" />
|
487
|
+
<folding />
|
488
|
+
</state>
|
489
|
+
</provider>
|
490
|
+
</entry>
|
491
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
492
|
+
<provider editor-type-id="MarkdownFxPreviewEditor">
|
493
|
+
<state />
|
494
|
+
</provider>
|
495
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
|
496
|
+
<state split_layout="FIRST">
|
497
|
+
<first_editor relative-caret-position="360">
|
498
|
+
<caret line="24" column="0" selection-start-line="24" selection-start-column="0" selection-end-line="24" selection-end-column="0" />
|
499
|
+
<folding />
|
500
|
+
</first_editor>
|
501
|
+
<second_editor />
|
502
|
+
</state>
|
503
|
+
</provider>
|
504
|
+
</entry>
|
505
|
+
<entry file="file://$PROJECT_DIR$/can_palindrome.gemspec">
|
506
|
+
<provider selected="true" editor-type-id="text-editor">
|
507
|
+
<state relative-caret-position="343">
|
508
|
+
<caret line="24" column="67" selection-start-line="24" selection-start-column="67" selection-end-line="24" selection-end-column="67" />
|
509
|
+
<folding />
|
510
|
+
</state>
|
511
|
+
</provider>
|
512
|
+
</entry>
|
513
|
+
</component>
|
514
|
+
</project>
|
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at TODO: Write your email address. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 TODO: Write your name
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
# CanPalindrome
|
2
|
+
|
3
|
+
Takes a string as input, and ouputs true if that string is a permutation (anagram) of a palindrome.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'can_palindrome'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install can_palindrome
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
can use can_palindrome or can_it_palindrome
|
23
|
+
can_palindrome('bob') => true
|
24
|
+
can_it_palindrome('bob') => true
|
25
|
+
|
26
|
+
can_it_palindrome('bbo') => true
|
27
|
+
can_it_palindrome('cat') => false
|
28
|
+
|
29
|
+
can_it_palindrome('tacocat') => true
|
30
|
+
can_it_palindrome('coattac') => true
|
31
|
+
can_it_palindrome('tacocato') => true
|
32
|
+
can_it_palindrome('ccttaco') => false
|
33
|
+
|
34
|
+
**By default it is case sensitive however an optional param can be passed.**
|
35
|
+
|
36
|
+
can_it_palindrome('BoB', false) => true
|
37
|
+
can_it_palindrome('BBo', false) => true
|
38
|
+
can_it_palindrome('Bob', false) => false
|
39
|
+
|
40
|
+
can_it_palindrome('BoB', true) => true
|
41
|
+
can_it_palindrome('BBo', true) => true
|
42
|
+
can_it_palindrome('Bob', true) => true
|
43
|
+
|
44
|
+
## Development
|
45
|
+
|
46
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
47
|
+
|
48
|
+
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).
|
49
|
+
|
50
|
+
## Contributing
|
51
|
+
|
52
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/rootedbox/can_palindrome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
53
|
+
|
54
|
+
|
55
|
+
## License
|
56
|
+
|
57
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
58
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "can_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
|
data/bin/setup
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'can_palindrome/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "can_palindrome"
|
8
|
+
spec.version = CanPalindrome::VERSION
|
9
|
+
spec.authors = ["Jason Jacobs"]
|
10
|
+
spec.email = ["nerfnerd@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Takes a string as input, and ouputs true if that string is a permutation (anagram) of a palindrome.}
|
13
|
+
spec.description = %q{Takes a string as input, and ouputs true if that string is a permutation (anagram) of a palindrome.}
|
14
|
+
spec.homepage = "https://github.com/rootedbox/can_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
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.12"
|
31
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
32
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
33
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require "can_palindrome/version"
|
2
|
+
|
3
|
+
def pair_count(string)
|
4
|
+
string.chars.select{ |char| (string.count(char) % 2 == 0) }.uniq.count
|
5
|
+
end
|
6
|
+
|
7
|
+
def can_it_palindrome(string, case_sensitive = true)
|
8
|
+
is_even = (string.length % 2 == 0)
|
9
|
+
string.upcase! if !case_sensitive
|
10
|
+
|
11
|
+
if is_even
|
12
|
+
return true if (string.length / 2) == pair_count(string)
|
13
|
+
else
|
14
|
+
return true if ((string.length - 1) / 2) == pair_count(string)
|
15
|
+
end
|
16
|
+
|
17
|
+
return false
|
18
|
+
end
|
19
|
+
|
20
|
+
def can_palindrome(string, case_sensitive = true)
|
21
|
+
can_it_palindrome(string, case_sensitive)
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,106 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: can_palindrome
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jason Jacobs
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-14 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.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
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: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
description: Takes a string as input, and ouputs true if that string is a permutation
|
56
|
+
(anagram) of a palindrome.
|
57
|
+
email:
|
58
|
+
- nerfnerd@gmail.com
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".idea/can_palindrome.iml"
|
65
|
+
- ".idea/misc.xml"
|
66
|
+
- ".idea/modules.xml"
|
67
|
+
- ".idea/workspace.xml"
|
68
|
+
- ".rspec"
|
69
|
+
- ".travis.yml"
|
70
|
+
- CODE_OF_CONDUCT.md
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE.txt
|
73
|
+
- README.md
|
74
|
+
- Rakefile
|
75
|
+
- bin/console
|
76
|
+
- bin/setup
|
77
|
+
- can_palindrome.gemspec
|
78
|
+
- lib/can_palindrome.rb
|
79
|
+
- lib/can_palindrome/version.rb
|
80
|
+
homepage: https://github.com/rootedbox/can_palindrome
|
81
|
+
licenses:
|
82
|
+
- MIT
|
83
|
+
metadata:
|
84
|
+
allowed_push_host: https://rubygems.org
|
85
|
+
post_install_message:
|
86
|
+
rdoc_options: []
|
87
|
+
require_paths:
|
88
|
+
- lib
|
89
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
requirements: []
|
100
|
+
rubyforge_project:
|
101
|
+
rubygems_version: 2.5.1
|
102
|
+
signing_key:
|
103
|
+
specification_version: 4
|
104
|
+
summary: Takes a string as input, and ouputs true if that string is a permutation
|
105
|
+
(anagram) of a palindrome.
|
106
|
+
test_files: []
|