icndb_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 60ee9bc6d3b0d8dae8a218e76752fe2038261edf
4
+ data.tar.gz: 65440e19e34fdbd9449b83d92f03999de3410fcd
5
+ SHA512:
6
+ metadata.gz: 95ae5155af2e245128c952f070e823aea28d27bab41fcd5ff39007b0f096d18efecb94a94f77ee3c44620868a894a1de70b3fb5bdd44d720d4abc7dff7f2fedd
7
+ data.tar.gz: 7efd74d21fd485a1cda106537c0bbf52bb554a11c336398115239c153783ce8a3aacc7f008dce20651c20a50bfb959c6a7b87d29abb49f98e040eab219387ba8
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1 @@
1
+ icndb_client
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="FacetManager">
4
+ <facet type="gem" name="Ruby 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="NewModuleRootManager">
13
+ <content url="file://$MODULE_DIR$" />
14
+ <orderEntry type="jdk" jdkName="RVM: ruby-2.2.1 [global]" jdkType="RUBY_SDK" />
15
+ <orderEntry type="sourceFolder" forTests="false" />
16
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.2.1 [global]) [gem]" level="application" />
17
+ </component>
18
+ </module>
@@ -0,0 +1,72 @@
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>CSS</id>
12
+ </State>
13
+ <State>
14
+ <id>Code style issuesJavaScript</id>
15
+ </State>
16
+ <State>
17
+ <id>Control flow issuesJavaScript</id>
18
+ </State>
19
+ <State>
20
+ <id>Cucumber</id>
21
+ </State>
22
+ <State>
23
+ <id>General</id>
24
+ </State>
25
+ <State>
26
+ <id>HAML</id>
27
+ </State>
28
+ <State>
29
+ <id>JavaScript</id>
30
+ </State>
31
+ <State>
32
+ <id>JavaScript function metricsJavaScript</id>
33
+ </State>
34
+ <State>
35
+ <id>JavaScript validity issuesJavaScript</id>
36
+ </State>
37
+ <State>
38
+ <id>Potentially confusing code constructsJavaScript</id>
39
+ </State>
40
+ <State>
41
+ <id>Probable bugsCSS</id>
42
+ </State>
43
+ <State>
44
+ <id>Probable bugsJavaScript</id>
45
+ </State>
46
+ <State>
47
+ <id>Ruby</id>
48
+ </State>
49
+ <State>
50
+ <id>SQL</id>
51
+ </State>
52
+ </expanded-state>
53
+ <selected-state>
54
+ <State>
55
+ <id>AWS CloudFormation Inspections</id>
56
+ </State>
57
+ </selected-state>
58
+ </profile-state>
59
+ </entry>
60
+ </component>
61
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
62
+ <OptionsSetting value="true" id="Add" />
63
+ <OptionsSetting value="true" id="Remove" />
64
+ <OptionsSetting value="true" id="Checkout" />
65
+ <OptionsSetting value="true" id="Update" />
66
+ <OptionsSetting value="true" id="Status" />
67
+ <OptionsSetting value="true" id="Edit" />
68
+ <ConfirmationsSetting value="0" id="Add" />
69
+ <ConfirmationsSetting value="0" id="Remove" />
70
+ </component>
71
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p551 [global]" project-jdk-type="RUBY_SDK" />
72
+ </project>
@@ -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/icndb_client.iml" filepath="$PROJECT_DIR$/.idea/icndb_client.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,443 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="2bdfbcfd-74d9-47e6-aa98-fd0d00cc5316" name="Default" comment="">
5
+ <change type="DELETED" beforePath="$PROJECT_DIR$/icndb_client-0.1.0.gem" afterPath="" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/icndb_client.gemspec" afterPath="$PROJECT_DIR$/icndb_client.gemspec" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
9
+ </list>
10
+ <ignored path="icndb_client.iws" />
11
+ <ignored path=".idea/workspace.xml" />
12
+ <ignored path=".idea/dataSources.local.xml" />
13
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
14
+ <option name="TRACKING_ENABLED" value="true" />
15
+ <option name="SHOW_DIALOG" value="false" />
16
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
17
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
18
+ <option name="LAST_RESOLUTION" value="IGNORE" />
19
+ </component>
20
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
21
+ <component name="CreatePatchCommitExecutor">
22
+ <option name="PATCH_PATH" value="" />
23
+ </component>
24
+ <component name="FavoritesManager">
25
+ <favorites_list name="icndb_client" />
26
+ </component>
27
+ <component name="FileEditorManager">
28
+ <splitter split-orientation="horizontal" split-proportion="0.44493008">
29
+ <split-first>
30
+ <leaf>
31
+ <file leaf-file-name="icndb.rb" pinned="false" current-in-tab="false">
32
+ <entry file="file://$PROJECT_DIR$/lib/icndb.rb">
33
+ <provider selected="true" editor-type-id="text-editor">
34
+ <state vertical-scroll-proportion="0.0">
35
+ <caret line="37" column="41" selection-start-line="37" selection-start-column="13" selection-end-line="37" selection-end-column="41" />
36
+ <folding />
37
+ </state>
38
+ </provider>
39
+ </entry>
40
+ </file>
41
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
42
+ <entry file="file://$PROJECT_DIR$/lib/icndb_client/version.rb">
43
+ <provider selected="true" editor-type-id="text-editor">
44
+ <state vertical-scroll-proportion="0.0">
45
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
46
+ <folding />
47
+ </state>
48
+ </provider>
49
+ </entry>
50
+ </file>
51
+ <file leaf-file-name="icndb_client.gemspec" pinned="false" current-in-tab="true">
52
+ <entry file="file://$PROJECT_DIR$/icndb_client.gemspec">
53
+ <provider selected="true" editor-type-id="text-editor">
54
+ <state vertical-scroll-proportion="0.22914219">
55
+ <caret line="13" column="80" selection-start-line="13" selection-start-column="80" selection-end-line="13" selection-end-column="80" />
56
+ <folding />
57
+ </state>
58
+ </provider>
59
+ </entry>
60
+ </file>
61
+ <file leaf-file-name="LICENSE.txt" pinned="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
63
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
64
+ <state />
65
+ </provider>
66
+ <provider selected="true" editor-type-id="text-editor">
67
+ <state vertical-scroll-proportion="-0.0">
68
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
69
+ <folding />
70
+ </state>
71
+ </provider>
72
+ </entry>
73
+ </file>
74
+ </leaf>
75
+ </split-first>
76
+ <split-second>
77
+ <leaf>
78
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
79
+ <entry file="file://$PROJECT_DIR$/README.md">
80
+ <provider selected="true" editor-type-id="text-editor">
81
+ <state vertical-scroll-proportion="0.47208738">
82
+ <caret line="41" column="33" selection-start-line="41" selection-start-column="33" selection-end-line="41" selection-end-column="33" />
83
+ <folding />
84
+ </state>
85
+ </provider>
86
+ </entry>
87
+ </file>
88
+ <file leaf-file-name="console" pinned="false" current-in-tab="false">
89
+ <entry file="file://$PROJECT_DIR$/bin/console">
90
+ <provider selected="true" editor-type-id="text-editor">
91
+ <state vertical-scroll-proportion="0.0">
92
+ <caret line="2" column="23" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
93
+ <folding />
94
+ </state>
95
+ </provider>
96
+ </entry>
97
+ </file>
98
+ <file leaf-file-name="setup" pinned="false" current-in-tab="false">
99
+ <entry file="file://$PROJECT_DIR$/bin/setup">
100
+ <provider selected="true" editor-type-id="text-editor">
101
+ <state vertical-scroll-proportion="0.0">
102
+ <caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
103
+ <folding />
104
+ </state>
105
+ </provider>
106
+ </entry>
107
+ </file>
108
+ </leaf>
109
+ </split-second>
110
+ </splitter>
111
+ </component>
112
+ <component name="Git.Settings">
113
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
114
+ </component>
115
+ <component name="IdeDocumentHistory">
116
+ <option name="CHANGED_PATHS">
117
+ <list>
118
+ <option value="$PROJECT_DIR$/lib/icndb_client.rb" />
119
+ <option value="$PROJECT_DIR$/lib/icndb.rb" />
120
+ <option value="$PROJECT_DIR$/icndb_client.gemspec" />
121
+ <option value="$PROJECT_DIR$/README.md" />
122
+ </list>
123
+ </option>
124
+ </component>
125
+ <component name="JsBuildToolGruntFileManager" detection-done="true" />
126
+ <component name="JsGulpfileManager">
127
+ <detection-done>true</detection-done>
128
+ </component>
129
+ <component name="NamedScopeManager">
130
+ <order />
131
+ </component>
132
+ <component name="ProjectFrameBounds">
133
+ <option name="width" value="1440" />
134
+ <option name="height" value="900" />
135
+ </component>
136
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
137
+ <OptionsSetting value="true" id="Add" />
138
+ <OptionsSetting value="true" id="Remove" />
139
+ <OptionsSetting value="true" id="Checkout" />
140
+ <OptionsSetting value="true" id="Update" />
141
+ <OptionsSetting value="true" id="Status" />
142
+ <OptionsSetting value="true" id="Edit" />
143
+ <ConfirmationsSetting value="0" id="Add" />
144
+ <ConfirmationsSetting value="0" id="Remove" />
145
+ </component>
146
+ <component name="ProjectView">
147
+ <navigator currentView="ProjectPane" proportions="" version="1">
148
+ <flattenPackages />
149
+ <showMembers />
150
+ <showModules />
151
+ <showLibraryContents />
152
+ <hideEmptyPackages />
153
+ <abbreviatePackageNames />
154
+ <autoscrollToSource />
155
+ <autoscrollFromSource />
156
+ <sortByType />
157
+ </navigator>
158
+ <panes>
159
+ <pane id="ProjectPane">
160
+ <subPane>
161
+ <PATH>
162
+ <PATH_ELEMENT>
163
+ <option name="myItemId" value="icndb_client" />
164
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
165
+ </PATH_ELEMENT>
166
+ </PATH>
167
+ <PATH>
168
+ <PATH_ELEMENT>
169
+ <option name="myItemId" value="icndb_client" />
170
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
171
+ </PATH_ELEMENT>
172
+ <PATH_ELEMENT>
173
+ <option name="myItemId" value="icndb_client" />
174
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
175
+ </PATH_ELEMENT>
176
+ </PATH>
177
+ <PATH>
178
+ <PATH_ELEMENT>
179
+ <option name="myItemId" value="icndb_client" />
180
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
181
+ </PATH_ELEMENT>
182
+ <PATH_ELEMENT>
183
+ <option name="myItemId" value="icndb_client" />
184
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
185
+ </PATH_ELEMENT>
186
+ <PATH_ELEMENT>
187
+ <option name="myItemId" value="lib" />
188
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
189
+ </PATH_ELEMENT>
190
+ </PATH>
191
+ <PATH>
192
+ <PATH_ELEMENT>
193
+ <option name="myItemId" value="icndb_client" />
194
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
195
+ </PATH_ELEMENT>
196
+ <PATH_ELEMENT>
197
+ <option name="myItemId" value="icndb_client" />
198
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
199
+ </PATH_ELEMENT>
200
+ <PATH_ELEMENT>
201
+ <option name="myItemId" value="lib" />
202
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
203
+ </PATH_ELEMENT>
204
+ <PATH_ELEMENT>
205
+ <option name="myItemId" value="icndb_client" />
206
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
207
+ </PATH_ELEMENT>
208
+ </PATH>
209
+ <PATH>
210
+ <PATH_ELEMENT>
211
+ <option name="myItemId" value="icndb_client" />
212
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
213
+ </PATH_ELEMENT>
214
+ <PATH_ELEMENT>
215
+ <option name="myItemId" value="icndb_client" />
216
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
217
+ </PATH_ELEMENT>
218
+ <PATH_ELEMENT>
219
+ <option name="myItemId" value="bin" />
220
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
221
+ </PATH_ELEMENT>
222
+ </PATH>
223
+ </subPane>
224
+ </pane>
225
+ <pane id="Scope" />
226
+ <pane id="Scratches" />
227
+ </panes>
228
+ </component>
229
+ <component name="PropertiesComponent">
230
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
231
+ <property name="settings.editor.splitter.proportion" value="0.2" />
232
+ <property name="last_opened_file_path" value="$PROJECT_DIR$/../../../../../../wazzeer/code/app/trunk" />
233
+ <property name="WebServerToolWindowFactoryState" value="false" />
234
+ <property name="FullScreen" value="true" />
235
+ </component>
236
+ <component name="RunManager">
237
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
238
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
239
+ <module name="" />
240
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
241
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
242
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
243
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
244
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
245
+ <envs />
246
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
247
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
248
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
249
+ <COVERAGE_PATTERN ENABLED="true">
250
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
251
+ </COVERAGE_PATTERN>
252
+ </EXTENSION>
253
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
254
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
255
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
256
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
257
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
258
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
259
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
260
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
261
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
262
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
263
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
264
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
265
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
266
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
267
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
268
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
269
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
270
+ <method />
271
+ </configuration>
272
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
273
+ <method />
274
+ </configuration>
275
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
276
+ <module name="" />
277
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
278
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
279
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
280
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
281
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
282
+ <envs />
283
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
284
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
285
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
286
+ <COVERAGE_PATTERN ENABLED="true">
287
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
288
+ </COVERAGE_PATTERN>
289
+ </EXTENSION>
290
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
291
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
292
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
293
+ <method />
294
+ </configuration>
295
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
296
+ <node-options />
297
+ <gulpfile />
298
+ <tasks />
299
+ <arguments />
300
+ <pass-parent-envs>true</pass-parent-envs>
301
+ <envs />
302
+ <method />
303
+ </configuration>
304
+ </component>
305
+ <component name="ShelveChangesManager" show_recycled="false" />
306
+ <component name="SvnConfiguration">
307
+ <configuration>$USER_HOME$/.subversion</configuration>
308
+ </component>
309
+ <component name="TaskManager">
310
+ <task active="true" id="Default" summary="Default task">
311
+ <changelist id="2bdfbcfd-74d9-47e6-aa98-fd0d00cc5316" name="Default" comment="" />
312
+ <created>1461299019084</created>
313
+ <option name="number" value="Default" />
314
+ <updated>1461299019084</updated>
315
+ </task>
316
+ <servers />
317
+ </component>
318
+ <component name="ToolWindowManager">
319
+ <frame x="0" y="0" width="1440" height="900" extended-state="6" />
320
+ <editor active="true" />
321
+ <layout>
322
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20555556" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
323
+ <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
324
+ <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
325
+ <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
326
+ <window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
327
+ <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
328
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
329
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
330
+ <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
331
+ <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
332
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3105802" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
333
+ <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
334
+ <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
335
+ <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
336
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
337
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
338
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32992035" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
339
+ <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
340
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
341
+ </layout>
342
+ </component>
343
+ <component name="Vcs.Log.UiProperties">
344
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
345
+ <collection />
346
+ </option>
347
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
348
+ <collection />
349
+ </option>
350
+ </component>
351
+ <component name="VcsContentAnnotationSettings">
352
+ <option name="myLimit" value="2678400000" />
353
+ </component>
354
+ <component name="XDebuggerManager">
355
+ <breakpoint-manager />
356
+ <watches-manager />
357
+ </component>
358
+ <component name="editorHistoryManager">
359
+ <entry file="file://$PROJECT_DIR$/lib/icndb.rb">
360
+ <provider selected="true" editor-type-id="text-editor">
361
+ <state vertical-scroll-proportion="0.0">
362
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
363
+ <folding />
364
+ </state>
365
+ </provider>
366
+ </entry>
367
+ <entry file="file://$PROJECT_DIR$/Gemfile">
368
+ <provider selected="true" editor-type-id="text-editor">
369
+ <state vertical-scroll-proportion="0.07050529">
370
+ <caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
371
+ <folding />
372
+ </state>
373
+ </provider>
374
+ </entry>
375
+ <entry file="file://$APPLICATION_HOME_DIR$/rubystubs22/array.rb">
376
+ <provider selected="true" editor-type-id="text-editor">
377
+ <state vertical-scroll-proportion="0.2467685">
378
+ <caret line="14" column="2" selection-start-line="14" selection-start-column="2" selection-end-line="14" selection-end-column="2" />
379
+ <folding />
380
+ </state>
381
+ </provider>
382
+ </entry>
383
+ <entry file="file://$PROJECT_DIR$/LICENSE.txt">
384
+ <provider editor-type-id="com.intellij.database.editor.CsvTableFileEditorProvider">
385
+ <state />
386
+ </provider>
387
+ <provider selected="true" editor-type-id="text-editor">
388
+ <state vertical-scroll-proportion="0.0">
389
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
390
+ <folding />
391
+ </state>
392
+ </provider>
393
+ </entry>
394
+ <entry file="file://$PROJECT_DIR$/bin/console">
395
+ <provider selected="true" editor-type-id="text-editor">
396
+ <state vertical-scroll-proportion="0.0">
397
+ <caret line="2" column="23" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
398
+ <folding />
399
+ </state>
400
+ </provider>
401
+ </entry>
402
+ <entry file="file://$PROJECT_DIR$/lib/icndb.rb">
403
+ <provider selected="true" editor-type-id="text-editor">
404
+ <state vertical-scroll-proportion="0.0">
405
+ <caret line="37" column="41" selection-start-line="37" selection-start-column="13" selection-end-line="37" selection-end-column="41" />
406
+ <folding />
407
+ </state>
408
+ </provider>
409
+ </entry>
410
+ <entry file="file://$PROJECT_DIR$/lib/icndb_client/version.rb">
411
+ <provider selected="true" editor-type-id="text-editor">
412
+ <state vertical-scroll-proportion="0.0">
413
+ <caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
414
+ <folding />
415
+ </state>
416
+ </provider>
417
+ </entry>
418
+ <entry file="file://$PROJECT_DIR$/bin/setup">
419
+ <provider selected="true" editor-type-id="text-editor">
420
+ <state vertical-scroll-proportion="0.0">
421
+ <caret line="7" column="0" selection-start-line="7" selection-start-column="0" selection-end-line="7" selection-end-column="0" />
422
+ <folding />
423
+ </state>
424
+ </provider>
425
+ </entry>
426
+ <entry file="file://$PROJECT_DIR$/icndb_client.gemspec">
427
+ <provider selected="true" editor-type-id="text-editor">
428
+ <state vertical-scroll-proportion="0.22914219">
429
+ <caret line="13" column="80" selection-start-line="13" selection-start-column="80" selection-end-line="13" selection-end-column="80" />
430
+ <folding />
431
+ </state>
432
+ </provider>
433
+ </entry>
434
+ <entry file="file://$PROJECT_DIR$/README.md">
435
+ <provider selected="true" editor-type-id="text-editor">
436
+ <state vertical-scroll-proportion="0.47208738">
437
+ <caret line="41" column="33" selection-start-line="41" selection-start-column="33" selection-end-line="41" selection-end-column="33" />
438
+ <folding />
439
+ </state>
440
+ </provider>
441
+ </entry>
442
+ </component>
443
+ </project>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.10.5
@@ -0,0 +1,13 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4
+
5
+ We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
6
+
7
+ Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
8
+
9
+ Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
10
+
11
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
12
+
13
+ This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in icndb_client.gemspec
4
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 abhilekh singh
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.
@@ -0,0 +1,64 @@
1
+ # A ruby wrapper for Icndb API.
2
+
3
+ ## Installation
4
+
5
+ Latest version `0.1.0`
6
+
7
+ Add the following to your **Gemfile**
8
+
9
+ gem 'icndb_client'
10
+
11
+ or
12
+
13
+ $ gem install icndb_client
14
+
15
+ ## Usage
16
+
17
+ ```ruby
18
+ require 'icndb'
19
+
20
+ # fetch all jokes
21
+ Icndb::Client.get_all_jokes
22
+
23
+ # fetch joke by id
24
+ Icndb::Client.get_jokes 5
25
+
26
+ # fetch all categories
27
+ Icndb::Client.get_categories
28
+
29
+ # fetch a random joke
30
+ Icndb::Client.get_random_joke
31
+
32
+ # fetch numberof random jokes
33
+ Icndb::Client.get_random_jokes 10
34
+
35
+ # fetch multiple jokes only of the given categories
36
+ Icndb::Client.get_jokes_categories_based ["nerdy","explicit"]
37
+
38
+ # fetch multiple jokes by excluding the given categories
39
+ Icndb::Client.get_jokes_exclude_categories ["nerdy","explicit"]
40
+ ```
41
+
42
+ Documentation about the icndb API:
43
+ http://www.icndb.com/api/
44
+
45
+
46
+ ## Contributing to chuck
47
+
48
+ * Check out the latest master to make sure the feature hasn't been implemented
49
+ or the bug hasn't been fixed yet.
50
+ * Check out the issue tracker to make sure someone already hasn't requested it
51
+ and/or contributed it.
52
+ * Fork the project.
53
+ * Start a feature/bugfix branch.
54
+ * Commit and push until you are happy with your contribution.
55
+ * Make sure to add tests for it. This is important so I don't break it in a
56
+ future version unintentionally.
57
+ * Please try not to mess with the Rakefile, version, or history. If you want to
58
+ have your own version, or is otherwise necessary, that is fine, but please
59
+ isolate to its own commit so I can cherry-pick around it.
60
+ ## License
61
+
62
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
63
+
64
+
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "icndb_client"
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
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'icndb_client/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "icndb_client"
8
+ spec.version = Icndb::VERSION
9
+ spec.authors = ["abhilekh singh"]
10
+ spec.email = ["abhilekhsingh041992@gmail.com"]
11
+
12
+ spec.summary = %q{Ruby gem to interact with the icndb REST API.}
13
+ spec.description = %q{This gem makes it simple to interact with the official icndb REST API.}
14
+ spec.homepage = "https://github.com/abhilekhsingh041992/icndb-ruby-client"
15
+ spec.license = "MIT"
16
+
17
+
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = "exe"
20
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_development_dependency "bundler", "~> 1.10"
24
+ spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency 'rspec', '~> 3.4'
26
+
27
+ spec.add_dependency 'httparty', '~> 0.13.7'
28
+ end
@@ -0,0 +1,54 @@
1
+ require 'icndb_client/version'
2
+ require 'rubygems'
3
+ require 'httparty'
4
+ require 'json'
5
+
6
+ module Icndb
7
+ class Client
8
+ include HTTParty
9
+ base_uri 'api.icndb.com'
10
+ default_params :output => 'json'
11
+ format :json
12
+
13
+
14
+ def self.get_categories
15
+ request("/categories")
16
+ end
17
+
18
+ def self.get_all_jokes
19
+ request("/jokes")
20
+ end
21
+
22
+ def self.get_jokes(count=1)
23
+ request("/jokes/#{count}")
24
+ end
25
+
26
+ def self.get_random_joke
27
+ request("/jokes/random")
28
+ end
29
+
30
+ def self.get_random_jokes(count=1)
31
+ request("/jokes/random/#{count}")
32
+ end
33
+
34
+ def self.get_jokes_categories_based(categories=[], count=1)
35
+ request("/jokes/random/#{count}?limitTo=#{categories}")
36
+ end
37
+
38
+ def self.get_jokes_exclude_categories(categories=[], count=1)
39
+ request("/jokes/random/#{count}?exclude=#{categories}")
40
+ end
41
+
42
+ private
43
+
44
+ def self.request(path)
45
+ response = get(path)
46
+ if response.success?
47
+ JSON.parse(response.body)
48
+ else
49
+ raise response.response
50
+ end
51
+ end
52
+
53
+ end
54
+ end
@@ -0,0 +1,3 @@
1
+ module Icndb
2
+ VERSION = "0.1.0"
3
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: icndb_client
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - abhilekh singh
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2016-05-01 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.10'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.10'
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.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.4'
55
+ - !ruby/object:Gem::Dependency
56
+ name: httparty
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.13.7
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.13.7
69
+ description: This gem makes it simple to interact with the official icndb REST API.
70
+ email:
71
+ - abhilekhsingh041992@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".idea/.name"
78
+ - ".idea/.rakeTasks"
79
+ - ".idea/icndb_client.iml"
80
+ - ".idea/misc.xml"
81
+ - ".idea/modules.xml"
82
+ - ".idea/vcs.xml"
83
+ - ".idea/workspace.xml"
84
+ - ".rspec"
85
+ - ".travis.yml"
86
+ - CODE_OF_CONDUCT.md
87
+ - Gemfile
88
+ - LICENSE.txt
89
+ - README.md
90
+ - Rakefile
91
+ - bin/console
92
+ - bin/setup
93
+ - icndb_client.gemspec
94
+ - lib/icndb.rb
95
+ - lib/icndb_client/version.rb
96
+ homepage: https://github.com/abhilekhsingh041992/icndb-ruby-client
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.4.8
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: Ruby gem to interact with the icndb REST API.
120
+ test_files: []