search_pi 1.0.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/misc.xml +48 -0
- data/.idea/modules.xml +8 -0
- data/.idea/search_pi.iml +32 -0
- data/.idea/workspace.xml +570 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/searchpi +24 -0
- data/lib/search_pi.rb +23 -0
- data/lib/search_pi/version.rb +3 -0
- data/search_pi.gemspec +22 -0
- data/test/search_pi_test.rb +35 -0
- data/test/ts_search_pi.rb +2 -0
- metadata +89 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: de72759028844406e2d838e2d28ca279f56692bc
|
4
|
+
data.tar.gz: f3217ddd72329ce89352671258e53712fa94732b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ba3e57e117fc3ac6be37c6bbbc53f31d74d628ce3882a23679622baefaa2428f4b95ad17de6ae33702b6a31a54eed7c5a04023d1355998ee3f5f310a177d8704
|
7
|
+
data.tar.gz: c2ea4104105f81b9a07379dd044d8e7b5ec92c1ca858259bb8df8c24988f513f2b2c6359b34e77daa746424a63a3f58e1b41d635b08ac1f3d36ca65441b9eae5
|
data/.gitignore
ADDED
data/.idea/misc.xml
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectInspectionProfilesVisibleTreeState">
|
4
|
+
<entry key="Project Default">
|
5
|
+
<profile-state>
|
6
|
+
<expanded-state>
|
7
|
+
<State>
|
8
|
+
<id />
|
9
|
+
</State>
|
10
|
+
<State>
|
11
|
+
<id>Ignore</id>
|
12
|
+
</State>
|
13
|
+
<State>
|
14
|
+
<id>JavaScript</id>
|
15
|
+
</State>
|
16
|
+
<State>
|
17
|
+
<id>Potentially confusing code constructsJavaScript</id>
|
18
|
+
</State>
|
19
|
+
<State>
|
20
|
+
<id>Probable bugsJavaScript</id>
|
21
|
+
</State>
|
22
|
+
<State>
|
23
|
+
<id>Spelling</id>
|
24
|
+
</State>
|
25
|
+
<State>
|
26
|
+
<id>XML</id>
|
27
|
+
</State>
|
28
|
+
</expanded-state>
|
29
|
+
<selected-state>
|
30
|
+
<State>
|
31
|
+
<id>Action Cable</id>
|
32
|
+
</State>
|
33
|
+
</selected-state>
|
34
|
+
</profile-state>
|
35
|
+
</entry>
|
36
|
+
</component>
|
37
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
38
|
+
<OptionsSetting value="true" id="Add" />
|
39
|
+
<OptionsSetting value="true" id="Remove" />
|
40
|
+
<OptionsSetting value="true" id="Checkout" />
|
41
|
+
<OptionsSetting value="true" id="Update" />
|
42
|
+
<OptionsSetting value="true" id="Status" />
|
43
|
+
<OptionsSetting value="true" id="Edit" />
|
44
|
+
<ConfirmationsSetting value="0" id="Add" />
|
45
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
46
|
+
</component>
|
47
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.3.1-p112" project-jdk-type="RUBY_SDK" />
|
48
|
+
</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/search_pi.iml" filepath="$PROJECT_DIR$/.idea/search_pi.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/search_pi.iml
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="ModuleRunConfigurationManager">
|
4
|
+
<configuration default="false" name="IRB console: search_pi" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
|
5
|
+
<module name="search_pi" />
|
6
|
+
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
7
|
+
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
8
|
+
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
9
|
+
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
10
|
+
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
11
|
+
<envs />
|
12
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
13
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
14
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
15
|
+
<COVERAGE_PATTERN ENABLED="true">
|
16
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
17
|
+
</COVERAGE_PATTERN>
|
18
|
+
</EXTENSION>
|
19
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
|
20
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
|
21
|
+
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
22
|
+
<method />
|
23
|
+
</configuration>
|
24
|
+
</component>
|
25
|
+
<component name="NewModuleRootManager">
|
26
|
+
<content url="file://$MODULE_DIR$" />
|
27
|
+
<orderEntry type="inheritedJdk" />
|
28
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.13.3, ruby-2.3.1-p112) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, ruby-2.3.1-p112) [gem]" level="application" />
|
31
|
+
</component>
|
32
|
+
</module>
|
data/.idea/workspace.xml
ADDED
@@ -0,0 +1,570 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="20882407-1c4e-4e18-b974-115019b01373" name="Default" comment="" />
|
5
|
+
<ignored path="search_pi.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="CoverageDataManager">
|
16
|
+
<SUITE FILE_PATH="coverage/search_pi@IRB_console__search_pi.coverage" NAME="IRB console: search_pi Coverage Results" MODIFIED="1477508217492" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="search_pi" />
|
17
|
+
</component>
|
18
|
+
<component name="CreatePatchCommitExecutor">
|
19
|
+
<option name="PATCH_PATH" value="" />
|
20
|
+
</component>
|
21
|
+
<component name="FavoritesManager">
|
22
|
+
<favorites_list name="search_pi" />
|
23
|
+
</component>
|
24
|
+
<component name="FileEditorManager">
|
25
|
+
<splitter split-orientation="horizontal" split-proportion="0.5">
|
26
|
+
<split-first>
|
27
|
+
<leaf>
|
28
|
+
<file leaf-file-name="search_pi.rb" pinned="false" current-in-tab="true">
|
29
|
+
<entry file="file://$PROJECT_DIR$/lib/search_pi.rb">
|
30
|
+
<provider selected="true" editor-type-id="text-editor">
|
31
|
+
<state relative-caret-position="240">
|
32
|
+
<caret line="16" column="98" selection-start-line="16" selection-start-column="98" selection-end-line="16" selection-end-column="98" />
|
33
|
+
<folding />
|
34
|
+
</state>
|
35
|
+
</provider>
|
36
|
+
</entry>
|
37
|
+
</file>
|
38
|
+
<file leaf-file-name="search_pi_test.rb" pinned="false" current-in-tab="false">
|
39
|
+
<entry file="file://$PROJECT_DIR$/test/search_pi_test.rb">
|
40
|
+
<provider selected="true" editor-type-id="text-editor">
|
41
|
+
<state relative-caret-position="120">
|
42
|
+
<caret line="8" column="16" selection-start-line="8" selection-start-column="16" selection-end-line="8" selection-end-column="16" />
|
43
|
+
<folding />
|
44
|
+
</state>
|
45
|
+
</provider>
|
46
|
+
</entry>
|
47
|
+
</file>
|
48
|
+
<file leaf-file-name="ts_search_pi.rb" pinned="false" current-in-tab="false">
|
49
|
+
<entry file="file://$PROJECT_DIR$/test/ts_search_pi.rb">
|
50
|
+
<provider selected="true" editor-type-id="text-editor">
|
51
|
+
<state relative-caret-position="15">
|
52
|
+
<caret line="1" column="33" selection-start-line="1" selection-start-column="33" selection-end-line="1" selection-end-column="33" />
|
53
|
+
<folding />
|
54
|
+
</state>
|
55
|
+
</provider>
|
56
|
+
</entry>
|
57
|
+
</file>
|
58
|
+
<file leaf-file-name="search_pi.gemspec" pinned="false" current-in-tab="false">
|
59
|
+
<entry file="file://$PROJECT_DIR$/search_pi.gemspec">
|
60
|
+
<provider selected="true" editor-type-id="text-editor">
|
61
|
+
<state relative-caret-position="240">
|
62
|
+
<caret line="16" column="33" selection-start-line="16" selection-start-column="33" selection-end-line="16" selection-end-column="33" />
|
63
|
+
<folding />
|
64
|
+
</state>
|
65
|
+
</provider>
|
66
|
+
</entry>
|
67
|
+
</file>
|
68
|
+
<file leaf-file-name="searchpi" pinned="false" current-in-tab="false">
|
69
|
+
<entry file="file://$PROJECT_DIR$/bin/searchpi">
|
70
|
+
<provider selected="true" editor-type-id="text-editor">
|
71
|
+
<state relative-caret-position="90">
|
72
|
+
<caret line="18" column="36" selection-start-line="18" selection-start-column="36" selection-end-line="18" selection-end-column="36" />
|
73
|
+
<folding />
|
74
|
+
</state>
|
75
|
+
</provider>
|
76
|
+
</entry>
|
77
|
+
</file>
|
78
|
+
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
79
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
80
|
+
<provider selected="true" editor-type-id="text-editor">
|
81
|
+
<state relative-caret-position="60">
|
82
|
+
<caret line="4" column="35" selection-start-line="4" selection-start-column="35" selection-end-line="4" selection-end-column="35" />
|
83
|
+
<folding />
|
84
|
+
</state>
|
85
|
+
</provider>
|
86
|
+
</entry>
|
87
|
+
</file>
|
88
|
+
</leaf>
|
89
|
+
</split-first>
|
90
|
+
<split-second>
|
91
|
+
<leaf>
|
92
|
+
<file leaf-file-name="searchpi" pinned="false" current-in-tab="true">
|
93
|
+
<entry file="file://$PROJECT_DIR$/bin/searchpi">
|
94
|
+
<provider selected="true" editor-type-id="text-editor">
|
95
|
+
<state relative-caret-position="270">
|
96
|
+
<caret line="18" column="25" selection-start-line="18" selection-start-column="25" selection-end-line="18" selection-end-column="25" />
|
97
|
+
<folding />
|
98
|
+
</state>
|
99
|
+
</provider>
|
100
|
+
</entry>
|
101
|
+
</file>
|
102
|
+
</leaf>
|
103
|
+
</split-second>
|
104
|
+
</splitter>
|
105
|
+
</component>
|
106
|
+
<component name="FileTemplateManagerImpl">
|
107
|
+
<option name="RECENT_TEMPLATES">
|
108
|
+
<list>
|
109
|
+
<option value="TestUnit Test Template" />
|
110
|
+
</list>
|
111
|
+
</option>
|
112
|
+
</component>
|
113
|
+
<component name="IdeDocumentHistory">
|
114
|
+
<option name="CHANGED_PATHS">
|
115
|
+
<list>
|
116
|
+
<option value="$PROJECT_DIR$/search_pi.gemspec" />
|
117
|
+
<option value="$PROJECT_DIR$/test/search_pi_ts.rb" />
|
118
|
+
<option value="$PROJECT_DIR$/test/ts_search_pi.rb" />
|
119
|
+
<option value="$PROJECT_DIR$/test/search_pi_test.rb" />
|
120
|
+
<option value="$PROJECT_DIR$/Rakefile" />
|
121
|
+
<option value="$PROJECT_DIR$/lib/search_pi.rb" />
|
122
|
+
<option value="$PROJECT_DIR$/bin/searchpi" />
|
123
|
+
</list>
|
124
|
+
</option>
|
125
|
+
</component>
|
126
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
127
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
128
|
+
<component name="JsGulpfileManager">
|
129
|
+
<detection-done>true</detection-done>
|
130
|
+
<sorting>DEFINITION_ORDER</sorting>
|
131
|
+
</component>
|
132
|
+
<component name="ProjectFrameBounds">
|
133
|
+
<option name="x" value="-4" />
|
134
|
+
<option name="y" value="28" />
|
135
|
+
<option name="width" value="1928" />
|
136
|
+
<option name="height" value="1022" />
|
137
|
+
</component>
|
138
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
139
|
+
<OptionsSetting value="true" id="Add" />
|
140
|
+
<OptionsSetting value="true" id="Remove" />
|
141
|
+
<OptionsSetting value="true" id="Checkout" />
|
142
|
+
<OptionsSetting value="true" id="Update" />
|
143
|
+
<OptionsSetting value="true" id="Status" />
|
144
|
+
<OptionsSetting value="true" id="Edit" />
|
145
|
+
<ConfirmationsSetting value="0" id="Add" />
|
146
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
147
|
+
</component>
|
148
|
+
<component name="ProjectView">
|
149
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
150
|
+
<flattenPackages />
|
151
|
+
<showMembers />
|
152
|
+
<showModules />
|
153
|
+
<showLibraryContents />
|
154
|
+
<hideEmptyPackages />
|
155
|
+
<abbreviatePackageNames />
|
156
|
+
<autoscrollToSource />
|
157
|
+
<autoscrollFromSource />
|
158
|
+
<sortByType />
|
159
|
+
<manualOrder />
|
160
|
+
<foldersAlwaysOnTop value="true" />
|
161
|
+
</navigator>
|
162
|
+
<panes>
|
163
|
+
<pane id="Scope" />
|
164
|
+
<pane id="Scratches" />
|
165
|
+
<pane id="ProjectPane">
|
166
|
+
<subPane>
|
167
|
+
<PATH>
|
168
|
+
<PATH_ELEMENT>
|
169
|
+
<option name="myItemId" value="search_pi" />
|
170
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
171
|
+
</PATH_ELEMENT>
|
172
|
+
</PATH>
|
173
|
+
<PATH>
|
174
|
+
<PATH_ELEMENT>
|
175
|
+
<option name="myItemId" value="search_pi" />
|
176
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
177
|
+
</PATH_ELEMENT>
|
178
|
+
<PATH_ELEMENT>
|
179
|
+
<option name="myItemId" value="search_pi" />
|
180
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
181
|
+
</PATH_ELEMENT>
|
182
|
+
</PATH>
|
183
|
+
<PATH>
|
184
|
+
<PATH_ELEMENT>
|
185
|
+
<option name="myItemId" value="search_pi" />
|
186
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
187
|
+
</PATH_ELEMENT>
|
188
|
+
<PATH_ELEMENT>
|
189
|
+
<option name="myItemId" value="search_pi" />
|
190
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
191
|
+
</PATH_ELEMENT>
|
192
|
+
<PATH_ELEMENT>
|
193
|
+
<option name="myItemId" value="test" />
|
194
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
195
|
+
</PATH_ELEMENT>
|
196
|
+
</PATH>
|
197
|
+
<PATH>
|
198
|
+
<PATH_ELEMENT>
|
199
|
+
<option name="myItemId" value="search_pi" />
|
200
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
201
|
+
</PATH_ELEMENT>
|
202
|
+
<PATH_ELEMENT>
|
203
|
+
<option name="myItemId" value="search_pi" />
|
204
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
205
|
+
</PATH_ELEMENT>
|
206
|
+
<PATH_ELEMENT>
|
207
|
+
<option name="myItemId" value="lib" />
|
208
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
209
|
+
</PATH_ELEMENT>
|
210
|
+
</PATH>
|
211
|
+
<PATH>
|
212
|
+
<PATH_ELEMENT>
|
213
|
+
<option name="myItemId" value="search_pi" />
|
214
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
215
|
+
</PATH_ELEMENT>
|
216
|
+
<PATH_ELEMENT>
|
217
|
+
<option name="myItemId" value="search_pi" />
|
218
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
219
|
+
</PATH_ELEMENT>
|
220
|
+
<PATH_ELEMENT>
|
221
|
+
<option name="myItemId" value="lib" />
|
222
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
223
|
+
</PATH_ELEMENT>
|
224
|
+
<PATH_ELEMENT>
|
225
|
+
<option name="myItemId" value="search_pi" />
|
226
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
227
|
+
</PATH_ELEMENT>
|
228
|
+
</PATH>
|
229
|
+
<PATH>
|
230
|
+
<PATH_ELEMENT>
|
231
|
+
<option name="myItemId" value="search_pi" />
|
232
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
233
|
+
</PATH_ELEMENT>
|
234
|
+
<PATH_ELEMENT>
|
235
|
+
<option name="myItemId" value="search_pi" />
|
236
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
237
|
+
</PATH_ELEMENT>
|
238
|
+
<PATH_ELEMENT>
|
239
|
+
<option name="myItemId" value="bin" />
|
240
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
241
|
+
</PATH_ELEMENT>
|
242
|
+
</PATH>
|
243
|
+
</subPane>
|
244
|
+
</pane>
|
245
|
+
</panes>
|
246
|
+
</component>
|
247
|
+
<component name="PropertiesComponent">
|
248
|
+
<property name="settings.editor.selected.configurable" value="preferences.externalResources" />
|
249
|
+
<property name="settings.editor.splitter.proportion" value="0.2" />
|
250
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
251
|
+
<property name="js-jscs-nodeInterpreter" value="/usr/bin/node" />
|
252
|
+
</component>
|
253
|
+
<component name="RecentsManager">
|
254
|
+
<key name="MoveFile.RECENT_KEYS">
|
255
|
+
<recent name="$PROJECT_DIR$" />
|
256
|
+
</key>
|
257
|
+
</component>
|
258
|
+
<component name="RunManager" selected="IRB console.IRB console: search_pi">
|
259
|
+
<configuration default="false" name="IRB console: search_pi" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
|
260
|
+
<module name="search_pi" />
|
261
|
+
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
262
|
+
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
263
|
+
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
264
|
+
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
265
|
+
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
266
|
+
<envs />
|
267
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
268
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
269
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
270
|
+
<COVERAGE_PATTERN ENABLED="true">
|
271
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
272
|
+
</COVERAGE_PATTERN>
|
273
|
+
</EXTENSION>
|
274
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$APPLICATION_HOME_DIR$/rb/testing/runner/irb.rb" />
|
275
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
|
276
|
+
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
277
|
+
<method />
|
278
|
+
</configuration>
|
279
|
+
<configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
|
280
|
+
<predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
|
281
|
+
<module name="" />
|
282
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
283
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
284
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
285
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
286
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
287
|
+
<envs />
|
288
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
289
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
290
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
291
|
+
<COVERAGE_PATTERN ENABLED="true">
|
292
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
293
|
+
</COVERAGE_PATTERN>
|
294
|
+
</EXTENSION>
|
295
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
|
296
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
297
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
298
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
299
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
|
300
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
|
301
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
|
302
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
303
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
304
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
|
305
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
306
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
307
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
308
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
|
309
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
|
310
|
+
<CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
|
311
|
+
<method />
|
312
|
+
</configuration>
|
313
|
+
<configuration default="true" type="IrbRunConfigurationType" factoryName="IRB console">
|
314
|
+
<module name="" />
|
315
|
+
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
316
|
+
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
317
|
+
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
318
|
+
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
319
|
+
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
320
|
+
<envs />
|
321
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
322
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
323
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
324
|
+
<COVERAGE_PATTERN ENABLED="true">
|
325
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
326
|
+
</COVERAGE_PATTERN>
|
327
|
+
</EXTENSION>
|
328
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
329
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
330
|
+
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
331
|
+
<method />
|
332
|
+
</configuration>
|
333
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
334
|
+
<method />
|
335
|
+
</configuration>
|
336
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
337
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
338
|
+
<module name="" />
|
339
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
340
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
341
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
342
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
343
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
344
|
+
<envs />
|
345
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
346
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
347
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
348
|
+
<COVERAGE_PATTERN ENABLED="true">
|
349
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
350
|
+
</COVERAGE_PATTERN>
|
351
|
+
</EXTENSION>
|
352
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
353
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
354
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
355
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
356
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
357
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
358
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
359
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
360
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
361
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
362
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
363
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
364
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
365
|
+
<method />
|
366
|
+
</configuration>
|
367
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
368
|
+
<module name="" />
|
369
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
370
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
371
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
372
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
373
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
374
|
+
<envs />
|
375
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
376
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
377
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
378
|
+
<COVERAGE_PATTERN ENABLED="true">
|
379
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
380
|
+
</COVERAGE_PATTERN>
|
381
|
+
</EXTENSION>
|
382
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
383
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
384
|
+
<method />
|
385
|
+
</configuration>
|
386
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
387
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
388
|
+
<module name="" />
|
389
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
390
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
391
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
392
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
393
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
394
|
+
<envs />
|
395
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
396
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
397
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
398
|
+
<COVERAGE_PATTERN ENABLED="true">
|
399
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
400
|
+
</COVERAGE_PATTERN>
|
401
|
+
</EXTENSION>
|
402
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
403
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
404
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
405
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
406
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
407
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
408
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
409
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
410
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
411
|
+
<method />
|
412
|
+
</configuration>
|
413
|
+
<configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
|
414
|
+
<method />
|
415
|
+
</configuration>
|
416
|
+
<configuration default="true" type="js.build_tools.npm" factoryName="npm">
|
417
|
+
<command value="run-script" />
|
418
|
+
<scripts />
|
419
|
+
<node-interpreter value="project" />
|
420
|
+
<envs />
|
421
|
+
<method />
|
422
|
+
</configuration>
|
423
|
+
<list size="1">
|
424
|
+
<item index="0" class="java.lang.String" itemvalue="IRB console.IRB console: search_pi" />
|
425
|
+
</list>
|
426
|
+
<recent_temporary>
|
427
|
+
<list size="1">
|
428
|
+
<item index="0" class="java.lang.String" itemvalue="IRB console.IRB console: search_pi" />
|
429
|
+
</list>
|
430
|
+
</recent_temporary>
|
431
|
+
</component>
|
432
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
433
|
+
<option name="remove_strategy" value="false" />
|
434
|
+
</component>
|
435
|
+
<component name="TaskManager">
|
436
|
+
<task active="true" id="Default" summary="Default task">
|
437
|
+
<changelist id="20882407-1c4e-4e18-b974-115019b01373" name="Default" comment="" />
|
438
|
+
<created>1477505819798</created>
|
439
|
+
<option name="number" value="Default" />
|
440
|
+
<option name="presentableId" value="Default" />
|
441
|
+
<updated>1477505819798</updated>
|
442
|
+
<workItem from="1477505821184" duration="4460000" />
|
443
|
+
</task>
|
444
|
+
<servers />
|
445
|
+
</component>
|
446
|
+
<component name="TimeTrackingManager">
|
447
|
+
<option name="totallyTimeSpent" value="4460000" />
|
448
|
+
</component>
|
449
|
+
<component name="TodoView">
|
450
|
+
<todo-panel id="selected-file">
|
451
|
+
<is-autoscroll-to-source value="true" />
|
452
|
+
</todo-panel>
|
453
|
+
<todo-panel id="all">
|
454
|
+
<are-packages-shown value="true" />
|
455
|
+
<is-autoscroll-to-source value="true" />
|
456
|
+
</todo-panel>
|
457
|
+
</component>
|
458
|
+
<component name="ToolWindowManager">
|
459
|
+
<frame x="-4" y="28" width="1928" height="1022" extended-state="6" />
|
460
|
+
<editor active="true" />
|
461
|
+
<layout>
|
462
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.12100213" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
463
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32899022" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
464
|
+
<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" />
|
465
|
+
<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" />
|
466
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32899022" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
467
|
+
<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" />
|
468
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.330076" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
469
|
+
<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" />
|
470
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32756758" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
471
|
+
<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" />
|
472
|
+
<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" />
|
473
|
+
<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" />
|
474
|
+
<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" />
|
475
|
+
<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" />
|
476
|
+
<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" />
|
477
|
+
<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" />
|
478
|
+
<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" />
|
479
|
+
</layout>
|
480
|
+
</component>
|
481
|
+
<component name="Vcs.Log.UiProperties">
|
482
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
483
|
+
<collection />
|
484
|
+
</option>
|
485
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
486
|
+
<collection />
|
487
|
+
</option>
|
488
|
+
</component>
|
489
|
+
<component name="VcsContentAnnotationSettings">
|
490
|
+
<option name="myLimit" value="2678400000" />
|
491
|
+
</component>
|
492
|
+
<component name="XDebuggerManager">
|
493
|
+
<breakpoint-manager />
|
494
|
+
<watches-manager />
|
495
|
+
</component>
|
496
|
+
<component name="editorHistoryManager">
|
497
|
+
<entry file="file://$PROJECT_DIR$/lib/search_pi/version.rb">
|
498
|
+
<provider selected="true" editor-type-id="text-editor">
|
499
|
+
<state relative-caret-position="0">
|
500
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
501
|
+
<folding />
|
502
|
+
</state>
|
503
|
+
</provider>
|
504
|
+
</entry>
|
505
|
+
<entry file="file://$PROJECT_DIR$/bin/setup">
|
506
|
+
<provider selected="true" editor-type-id="text-editor">
|
507
|
+
<state relative-caret-position="0">
|
508
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
509
|
+
<folding />
|
510
|
+
</state>
|
511
|
+
</provider>
|
512
|
+
</entry>
|
513
|
+
<entry file="file://$PROJECT_DIR$/bin/console">
|
514
|
+
<provider selected="true" editor-type-id="text-editor">
|
515
|
+
<state relative-caret-position="0">
|
516
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
517
|
+
<folding />
|
518
|
+
</state>
|
519
|
+
</provider>
|
520
|
+
</entry>
|
521
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
522
|
+
<provider selected="true" editor-type-id="text-editor">
|
523
|
+
<state relative-caret-position="60">
|
524
|
+
<caret line="4" column="35" selection-start-line="4" selection-start-column="35" selection-end-line="4" selection-end-column="35" />
|
525
|
+
<folding />
|
526
|
+
</state>
|
527
|
+
</provider>
|
528
|
+
</entry>
|
529
|
+
<entry file="file://$PROJECT_DIR$/test/ts_search_pi.rb">
|
530
|
+
<provider selected="true" editor-type-id="text-editor">
|
531
|
+
<state relative-caret-position="15">
|
532
|
+
<caret line="1" column="33" selection-start-line="1" selection-start-column="33" selection-end-line="1" selection-end-column="33" />
|
533
|
+
<folding />
|
534
|
+
</state>
|
535
|
+
</provider>
|
536
|
+
</entry>
|
537
|
+
<entry file="file://$PROJECT_DIR$/test/search_pi_test.rb">
|
538
|
+
<provider selected="true" editor-type-id="text-editor">
|
539
|
+
<state relative-caret-position="120">
|
540
|
+
<caret line="8" column="16" selection-start-line="8" selection-start-column="16" selection-end-line="8" selection-end-column="16" />
|
541
|
+
<folding />
|
542
|
+
</state>
|
543
|
+
</provider>
|
544
|
+
</entry>
|
545
|
+
<entry file="file://$PROJECT_DIR$/search_pi.gemspec">
|
546
|
+
<provider selected="true" editor-type-id="text-editor">
|
547
|
+
<state relative-caret-position="240">
|
548
|
+
<caret line="16" column="33" selection-start-line="16" selection-start-column="33" selection-end-line="16" selection-end-column="33" />
|
549
|
+
<folding />
|
550
|
+
</state>
|
551
|
+
</provider>
|
552
|
+
</entry>
|
553
|
+
<entry file="file://$PROJECT_DIR$/lib/search_pi.rb">
|
554
|
+
<provider selected="true" editor-type-id="text-editor">
|
555
|
+
<state relative-caret-position="240">
|
556
|
+
<caret line="16" column="98" selection-start-line="16" selection-start-column="98" selection-end-line="16" selection-end-column="98" />
|
557
|
+
<folding />
|
558
|
+
</state>
|
559
|
+
</provider>
|
560
|
+
</entry>
|
561
|
+
<entry file="file://$PROJECT_DIR$/bin/searchpi">
|
562
|
+
<provider selected="true" editor-type-id="text-editor">
|
563
|
+
<state relative-caret-position="270">
|
564
|
+
<caret line="18" column="25" selection-start-line="18" selection-start-column="25" selection-end-line="18" selection-end-column="25" />
|
565
|
+
<folding />
|
566
|
+
</state>
|
567
|
+
</provider>
|
568
|
+
</entry>
|
569
|
+
</component>
|
570
|
+
</project>
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at filalex77@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 Alex Filonenko
|
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,41 @@
|
|
1
|
+
# SearchPi
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/search_pi`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'search_pi'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install search_pi
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
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).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/search_pi. 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.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
+
|
data/Rakefile
ADDED
data/bin/searchpi
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'search_pi'
|
3
|
+
include SearchPi
|
4
|
+
|
5
|
+
raise ArgumentException, "Please, do NOT search for zeroes!" if ARGV[0] == 0
|
6
|
+
res = find(pi(1000), ARGV[0])
|
7
|
+
unless res.nil?
|
8
|
+
last = (res[:match_pos] - 1).to_s[-1]
|
9
|
+
suffix = case last
|
10
|
+
when "1"
|
11
|
+
'st'
|
12
|
+
when "2"
|
13
|
+
'nd'
|
14
|
+
when "3"
|
15
|
+
'rd'
|
16
|
+
else
|
17
|
+
'th'
|
18
|
+
end
|
19
|
+
puts "Found #{ARGV[0]} on #{res[:match_pos] - 1}#{suffix} decimal character of PI!"
|
20
|
+
puts "...#{res[:pre_match]}---#{res[:match]}---#{res[:post_match]}"
|
21
|
+
exit 0
|
22
|
+
end
|
23
|
+
puts 'Not found in 1000-precision PI :C'
|
24
|
+
exit 1
|
data/lib/search_pi.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require_relative "search_pi/version"
|
2
|
+
require 'bigdecimal/math'
|
3
|
+
|
4
|
+
module SearchPi
|
5
|
+
include BigMath
|
6
|
+
|
7
|
+
def pi(precision)
|
8
|
+
BigDecimal(PI(precision))
|
9
|
+
end
|
10
|
+
|
11
|
+
def find(number, pattern)
|
12
|
+
source = number.to_s
|
13
|
+
regex = Regexp.new pattern.to_s
|
14
|
+
match_pos = source.index regex
|
15
|
+
return nil if match_pos.nil?
|
16
|
+
pre_match = source[( (match_pos - 10) >= 0 ? (match_pos - 10) : 0 )..(match_pos-1)]
|
17
|
+
post_match = source[(match_pos + pattern.to_s.size + 1)..(match_pos + pattern.to_s.size + 11)]
|
18
|
+
{pre_match: pre_match,
|
19
|
+
match_pos: match_pos,
|
20
|
+
post_match: post_match,
|
21
|
+
match: pattern}
|
22
|
+
end
|
23
|
+
end
|
data/search_pi.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'search_pi/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "search_pi"
|
8
|
+
spec.version = SearchPi::VERSION
|
9
|
+
spec.authors = ["Alex Filonenko"]
|
10
|
+
spec.email = ["filalex77@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Making fun with PI. For no reason.}
|
13
|
+
spec.homepage = 'http://github.com/filalex77/search_pi'
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($\)
|
17
|
+
spec.executables = ["searchpi"]
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require_relative '../lib/search_pi'
|
3
|
+
|
4
|
+
class SearchPiTest < Test::Unit::TestCase
|
5
|
+
include SearchPi
|
6
|
+
# Called before every test method runs. Can be used
|
7
|
+
# to set up fixture information.
|
8
|
+
def setup
|
9
|
+
# Do nothing
|
10
|
+
end
|
11
|
+
|
12
|
+
# Called after every test method runs. Can be used to tear
|
13
|
+
# down fixture information.
|
14
|
+
def teardown
|
15
|
+
# Do nothing
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_find_basic
|
19
|
+
pi = pi(20)
|
20
|
+
res = find(pi, 653)
|
21
|
+
assert_not_nil res
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_fail_basic
|
25
|
+
pi = pi(20)
|
26
|
+
res = find(pi, 9999)
|
27
|
+
assert_nil res
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_feinmann
|
31
|
+
pi = pi(1000)
|
32
|
+
res = find(pi, 999999)
|
33
|
+
assert_not_nil res
|
34
|
+
end
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: search_pi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alex Filonenko
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-26 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.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
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
|
+
description:
|
42
|
+
email:
|
43
|
+
- filalex77@gmail.com
|
44
|
+
executables:
|
45
|
+
- searchpi
|
46
|
+
extensions: []
|
47
|
+
extra_rdoc_files: []
|
48
|
+
files:
|
49
|
+
- ".gitignore"
|
50
|
+
- ".idea/misc.xml"
|
51
|
+
- ".idea/modules.xml"
|
52
|
+
- ".idea/search_pi.iml"
|
53
|
+
- ".idea/workspace.xml"
|
54
|
+
- CODE_OF_CONDUCT.md
|
55
|
+
- Gemfile
|
56
|
+
- LICENSE.txt
|
57
|
+
- README.md
|
58
|
+
- Rakefile
|
59
|
+
- bin/searchpi
|
60
|
+
- lib/search_pi.rb
|
61
|
+
- lib/search_pi/version.rb
|
62
|
+
- search_pi.gemspec
|
63
|
+
- test/search_pi_test.rb
|
64
|
+
- test/ts_search_pi.rb
|
65
|
+
homepage: http://github.com/filalex77/search_pi
|
66
|
+
licenses:
|
67
|
+
- MIT
|
68
|
+
metadata: {}
|
69
|
+
post_install_message:
|
70
|
+
rdoc_options: []
|
71
|
+
require_paths:
|
72
|
+
- lib
|
73
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
requirements: []
|
84
|
+
rubyforge_project:
|
85
|
+
rubygems_version: 2.6.7
|
86
|
+
signing_key:
|
87
|
+
specification_version: 4
|
88
|
+
summary: Making fun with PI. For no reason.
|
89
|
+
test_files: []
|