coinswitch 0.1.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: cce042d942f0d2b15f3b5fd689e0559785f4aa5390504262ce9cb5e977465e3c
4
+ data.tar.gz: 3f622b18d7d8f2e24baf83372df3a0384ebf47f2c7af7b73b36481fd9850c26c
5
+ SHA512:
6
+ metadata.gz: 4f8ef4491dac0c86393c9c89c02ed82787ddaddc1d33ffa8cfec64081b347f7f6caa1ff352e5d0c3afb5c3f8bb6370214283305970e5ee659525c40fc2f52c8d
7
+ data.tar.gz: d78b477ae3b7ea4ddd59e6ca47619332bb282181085176cb314cd9ccccfaf4db00b522e9a510f75257d68ce0eeef93861c823658fef9916f2f6ee3b03b812e04
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="jdk" jdkName="ruby-2.6.3-p62" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v2.0.2, ruby-2.6.3-p62) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="httparty (v0.17.1, ruby-2.6.3-p62) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="ipify (v1.0.0, ruby-2.6.3-p62) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.3, ruby-2.6.3-p62) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2019.1009, ruby-2.6.3-p62) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.13.0, ruby-2.6.3-p62) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="multi_xml (v0.6.0, ruby-2.6.3-p62) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, ruby-2.6.3-p62) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="retriable (v3.1.2, ruby-2.6.3-p62) [gem]" level="application" />
19
+ </component>
20
+ </module>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-2.4.3-p205" project-jdk-type="RUBY_SDK" />
4
+ </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/coinswitch.iml" filepath="$PROJECT_DIR$/.idea/coinswitch.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,623 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="d443a070-a781-4787-b22b-de170359fbea" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/coinswitch/version.rb" afterPath="$PROJECT_DIR$/lib/coinswitch/version.rb" />
7
+ </list>
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/coinswitch@coinswitch.coverage" NAME="coinswitch Coverage Results" MODIFIED="1575385108495" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="coinswitch" />
17
+ <SUITE FILE_PATH="coverage/coinswitch@Run_test__coinswitch_test___coinswitch.coverage" NAME="Run test 'coinswitch_test': coinswitch Coverage Results" MODIFIED="1575305581097" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="coinswitch" />
18
+ <SUITE FILE_PATH="coverage/coinswitch@test_it_gets_supported_coins__coinswitch.coverage" NAME="test_it_gets_supported_coins: coinswitch Coverage Results" MODIFIED="1575305560211" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="coinswitch" />
19
+ </component>
20
+ <component name="FileEditorManager">
21
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
22
+ <file leaf-file-name="coinswitch.gemspec" pinned="false" current-in-tab="false">
23
+ <entry file="file://$PROJECT_DIR$/coinswitch.gemspec">
24
+ <provider selected="true" editor-type-id="text-editor">
25
+ <state relative-caret-position="498">
26
+ <caret line="30" column="29" lean-forward="true" selection-start-line="30" selection-start-column="29" selection-end-line="30" selection-end-column="29" />
27
+ <folding />
28
+ </state>
29
+ </provider>
30
+ </entry>
31
+ </file>
32
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
33
+ <entry file="file://$PROJECT_DIR$/lib/coinswitch/version.rb">
34
+ <provider selected="true" editor-type-id="text-editor">
35
+ <state relative-caret-position="17">
36
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
37
+ <folding />
38
+ </state>
39
+ </provider>
40
+ </entry>
41
+ </file>
42
+ </leaf>
43
+ </component>
44
+ <component name="Git.Settings">
45
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
46
+ </component>
47
+ <component name="IdeDocumentHistory">
48
+ <option name="CHANGED_PATHS">
49
+ <list>
50
+ <option value="$PROJECT_DIR$/Gemfile" />
51
+ <option value="$PROJECT_DIR$/coinswitch.gemspec" />
52
+ <option value="$PROJECT_DIR$/test/coinswitch_test.rb" />
53
+ <option value="$PROJECT_DIR$/lib/coinswitch.rb" />
54
+ <option value="$PROJECT_DIR$/README.md" />
55
+ <option value="$PROJECT_DIR$/lib/coinswitch/version.rb" />
56
+ </list>
57
+ </option>
58
+ </component>
59
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
60
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
61
+ <component name="JsGulpfileManager">
62
+ <detection-done>true</detection-done>
63
+ <sorting>DEFINITION_ORDER</sorting>
64
+ </component>
65
+ <component name="ProjectFrameBounds" extendedState="6">
66
+ <option name="x" value="793" />
67
+ <option name="width" value="814" />
68
+ <option name="height" value="867" />
69
+ </component>
70
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
71
+ <component name="ProjectView">
72
+ <navigator currentView="ProjectPane" proportions="" version="1">
73
+ <flattenPackages />
74
+ <showMembers />
75
+ <showModules />
76
+ <showLibraryContents />
77
+ <hideEmptyPackages />
78
+ <abbreviatePackageNames />
79
+ <autoscrollToSource />
80
+ <autoscrollFromSource />
81
+ <sortByType />
82
+ <manualOrder />
83
+ <foldersAlwaysOnTop value="true" />
84
+ </navigator>
85
+ <panes>
86
+ <pane id="ProjectPane">
87
+ <subPane>
88
+ <expand>
89
+ <path>
90
+ <item name="coinswitch" type="b2602c69:ProjectViewProjectNode" />
91
+ <item name="coinswitch" type="462c0819:PsiDirectoryNode" />
92
+ </path>
93
+ <path>
94
+ <item name="coinswitch" type="b2602c69:ProjectViewProjectNode" />
95
+ <item name="coinswitch" type="462c0819:PsiDirectoryNode" />
96
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
97
+ </path>
98
+ <path>
99
+ <item name="coinswitch" type="b2602c69:ProjectViewProjectNode" />
100
+ <item name="coinswitch" type="462c0819:PsiDirectoryNode" />
101
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
102
+ <item name="coinswitch" type="462c0819:PsiDirectoryNode" />
103
+ </path>
104
+ <path>
105
+ <item name="coinswitch" type="b2602c69:ProjectViewProjectNode" />
106
+ <item name="coinswitch" type="462c0819:PsiDirectoryNode" />
107
+ <item name="test" type="462c0819:PsiDirectoryNode" />
108
+ </path>
109
+ </expand>
110
+ <select />
111
+ </subPane>
112
+ </pane>
113
+ <pane id="Scratches" />
114
+ <pane id="Scope" />
115
+ </panes>
116
+ </component>
117
+ <component name="PropertiesComponent">
118
+ <property name="WebServerToolWindowFactoryState" value="false" />
119
+ <property name="editorconfig.notification" value="spaces" />
120
+ </component>
121
+ <component name="RunDashboard">
122
+ <option name="ruleStates">
123
+ <list>
124
+ <RuleState>
125
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
126
+ </RuleState>
127
+ <RuleState>
128
+ <option name="name" value="StatusDashboardGroupingRule" />
129
+ </RuleState>
130
+ </list>
131
+ </option>
132
+ </component>
133
+ <component name="RunManager" selected="Ruby.coinswitch">
134
+ <configuration name="Run test 'coinswitch_test': coinswitch" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
135
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
136
+ <module name="coinswitch" />
137
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
138
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
139
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
140
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
141
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
142
+ <envs>
143
+ <env name="JRUBY_OPTS" value="-X+O" />
144
+ </envs>
145
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
146
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
147
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
148
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
149
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/coinswitch_test.rb" />
150
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
151
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
152
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
153
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
154
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
155
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
156
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
157
+ </configuration>
158
+ <configuration name="coinswitch" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
159
+ <module name="coinswitch" />
160
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
161
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
162
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
163
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
164
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
165
+ <envs />
166
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
167
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
168
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
169
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/coinswitch.rb" />
170
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
171
+ </configuration>
172
+ <configuration name="test_it_gets_supported_coins: coinswitch" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest" temporary="true">
173
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
174
+ <module name="coinswitch" />
175
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) -Ilib:test" />
176
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
177
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
178
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
179
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
180
+ <envs>
181
+ <env name="JRUBY_OPTS" value="-X+O" />
182
+ </envs>
183
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
184
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
185
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov" />
186
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
187
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/test/coinswitch_test.rb" />
188
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
189
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="test_it_gets_supported_coins" />
190
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_METHOD" />
191
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
192
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
193
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
194
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
195
+ </configuration>
196
+ <list size="3">
197
+ <item index="0" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_gets_supported_coins: coinswitch" />
198
+ <item index="1" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'coinswitch_test': coinswitch" />
199
+ <item index="2" class="java.lang.String" itemvalue="Ruby.coinswitch" />
200
+ </list>
201
+ <recent_temporary>
202
+ <list size="3">
203
+ <item index="0" class="java.lang.String" itemvalue="Ruby.coinswitch" />
204
+ <item index="1" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.Run test 'coinswitch_test': coinswitch" />
205
+ <item index="2" class="java.lang.String" itemvalue="Test::Unit/Shoulda/Minitest.test_it_gets_supported_coins: coinswitch" />
206
+ </list>
207
+ </recent_temporary>
208
+ </component>
209
+ <component name="ShelveChangesManager" show_recycled="false">
210
+ <option name="remove_strategy" value="false" />
211
+ </component>
212
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
213
+ <component name="TaskManager">
214
+ <task active="true" id="Default" summary="Default task">
215
+ <changelist id="d443a070-a781-4787-b22b-de170359fbea" name="Default" comment="" />
216
+ <created>1575117905580</created>
217
+ <option name="number" value="Default" />
218
+ <option name="presentableId" value="Default" />
219
+ <updated>1575117905580</updated>
220
+ <workItem from="1575117907281" duration="4584000" />
221
+ <workItem from="1575298158603" duration="7776000" />
222
+ <workItem from="1575379013472" duration="7176000" />
223
+ <workItem from="1575580317351" duration="5011000" />
224
+ </task>
225
+ <task id="LOCAL-00001" summary="added changelog">
226
+ <created>1575299538942</created>
227
+ <option name="number" value="00001" />
228
+ <option name="presentableId" value="LOCAL-00001" />
229
+ <option name="project" value="LOCAL" />
230
+ <updated>1575299538942</updated>
231
+ </task>
232
+ <task id="LOCAL-00002" summary="added changelog url">
233
+ <created>1575299863039</created>
234
+ <option name="number" value="00002" />
235
+ <option name="presentableId" value="LOCAL-00002" />
236
+ <option name="project" value="LOCAL" />
237
+ <updated>1575299863039</updated>
238
+ </task>
239
+ <task id="LOCAL-00003" summary="added httparty dependency.">
240
+ <created>1575303715201</created>
241
+ <option name="number" value="00003" />
242
+ <option name="presentableId" value="LOCAL-00003" />
243
+ <option name="project" value="LOCAL" />
244
+ <updated>1575303715201</updated>
245
+ </task>
246
+ <task id="LOCAL-00004" summary="added coinslist test">
247
+ <created>1575303803569</created>
248
+ <option name="number" value="00004" />
249
+ <option name="presentableId" value="LOCAL-00004" />
250
+ <option name="project" value="LOCAL" />
251
+ <updated>1575303803569</updated>
252
+ </task>
253
+ <task id="LOCAL-00005" summary="added skeleton.">
254
+ <created>1575303832115</created>
255
+ <option name="number" value="00005" />
256
+ <option name="presentableId" value="LOCAL-00005" />
257
+ <option name="project" value="LOCAL" />
258
+ <updated>1575303832115</updated>
259
+ </task>
260
+ <task id="LOCAL-00006" summary="added more tests.">
261
+ <created>1575305495272</created>
262
+ <option name="number" value="00006" />
263
+ <option name="presentableId" value="LOCAL-00006" />
264
+ <option name="project" value="LOCAL" />
265
+ <updated>1575305495273</updated>
266
+ </task>
267
+ <task id="LOCAL-00007" summary="set test_helper to require_relative instead of require.">
268
+ <created>1575305670707</created>
269
+ <option name="number" value="00007" />
270
+ <option name="presentableId" value="LOCAL-00007" />
271
+ <option name="project" value="LOCAL" />
272
+ <updated>1575305670707</updated>
273
+ </task>
274
+ <task id="LOCAL-00008" summary="changed offer to rate.">
275
+ <created>1575305854928</created>
276
+ <option name="number" value="00008" />
277
+ <option name="presentableId" value="LOCAL-00008" />
278
+ <option name="project" value="LOCAL" />
279
+ <updated>1575305854928</updated>
280
+ </task>
281
+ <task id="LOCAL-00009" summary="wrote coins,coins_list,pairs,rate functions.">
282
+ <created>1575382690788</created>
283
+ <option name="number" value="00009" />
284
+ <option name="presentableId" value="LOCAL-00009" />
285
+ <option name="project" value="LOCAL" />
286
+ <updated>1575382690788</updated>
287
+ </task>
288
+ <task id="LOCAL-00010" summary="corrected rate method.">
289
+ <created>1575382779607</created>
290
+ <option name="number" value="00010" />
291
+ <option name="presentableId" value="LOCAL-00010" />
292
+ <option name="project" value="LOCAL" />
293
+ <updated>1575382779607</updated>
294
+ </task>
295
+ <task id="LOCAL-00011" summary="filled in some test parameters.">
296
+ <created>1575385627496</created>
297
+ <option name="number" value="00011" />
298
+ <option name="presentableId" value="LOCAL-00011" />
299
+ <option name="project" value="LOCAL" />
300
+ <updated>1575385627496</updated>
301
+ </task>
302
+ <task id="LOCAL-00012" summary="implemented order,orderid,orders parameters.">
303
+ <created>1575385706844</created>
304
+ <option name="number" value="00012" />
305
+ <option name="presentableId" value="LOCAL-00012" />
306
+ <option name="project" value="LOCAL" />
307
+ <updated>1575385706844</updated>
308
+ </task>
309
+ <task id="LOCAL-00013" summary="added documentation.">
310
+ <created>1575386169096</created>
311
+ <option name="number" value="00013" />
312
+ <option name="presentableId" value="LOCAL-00013" />
313
+ <option name="project" value="LOCAL" />
314
+ <updated>1575386169096</updated>
315
+ </task>
316
+ <task id="LOCAL-00014" summary="added documentation.added json.parse to all post output. implemented bulk rate.">
317
+ <created>1575586375756</created>
318
+ <option name="number" value="00014" />
319
+ <option name="presentableId" value="LOCAL-00014" />
320
+ <option name="project" value="LOCAL" />
321
+ <updated>1575586375756</updated>
322
+ </task>
323
+ <option name="localTasksCounter" value="15" />
324
+ <servers />
325
+ </component>
326
+ <component name="TestHistory">
327
+ <history-entry file="Run_test_'coinswitch_test'__coinswitch - 2019.12.02 at 16h 53m 11s.xml">
328
+ <configuration name="Run test 'coinswitch_test': coinswitch" configurationId="TestUnitRunConfigurationType" />
329
+ </history-entry>
330
+ <history-entry file="test_it_gets_supported_coins__coinswitch - 2019.12.02 at 16h 52m 41s.xml">
331
+ <configuration name="test_it_gets_supported_coins: coinswitch" configurationId="TestUnitRunConfigurationType" />
332
+ </history-entry>
333
+ </component>
334
+ <component name="TimeTrackingManager">
335
+ <option name="totallyTimeSpent" value="24547000" />
336
+ </component>
337
+ <component name="ToolWindowManager">
338
+ <frame x="-8" y="-8" width="1616" height="876" extended-state="6" />
339
+ <editor active="true" />
340
+ <layout>
341
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.12532134" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
342
+ <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" />
343
+ <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="7" side_tool="true" content_ui="tabs" />
344
+ <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="3" side_tool="false" content_ui="tabs" />
345
+ <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="7" side_tool="false" content_ui="tabs" />
346
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32987013" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
347
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.5225464" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
348
+ <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.32987013" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
349
+ <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="2" side_tool="true" content_ui="tabs" />
350
+ <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" />
351
+ <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" />
352
+ <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32987013" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
353
+ <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" />
354
+ <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" />
355
+ <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" />
356
+ <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" />
357
+ <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" />
358
+ <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" />
359
+ </layout>
360
+ </component>
361
+ <component name="TypeScriptGeneratedFilesManager">
362
+ <option name="version" value="1" />
363
+ </component>
364
+ <component name="VcsContentAnnotationSettings">
365
+ <option name="myLimit" value="2678400000" />
366
+ </component>
367
+ <component name="VcsManagerConfiguration">
368
+ <MESSAGE value="added changelog" />
369
+ <MESSAGE value="added changelog url" />
370
+ <MESSAGE value="added httparty dependency." />
371
+ <MESSAGE value="added coinslist test" />
372
+ <MESSAGE value="added skeleton." />
373
+ <MESSAGE value="added more tests." />
374
+ <MESSAGE value="set test_helper to require_relative instead of require." />
375
+ <MESSAGE value="changed offer to rate." />
376
+ <MESSAGE value="wrote coins,coins_list,pairs,rate functions." />
377
+ <MESSAGE value="corrected rate method." />
378
+ <MESSAGE value="filled in some test parameters." />
379
+ <MESSAGE value="implemented order,orderid,orders parameters." />
380
+ <MESSAGE value="added documentation." />
381
+ <MESSAGE value="added documentation.added json.parse to all post output. implemented bulk rate." />
382
+ <option name="LAST_COMMIT_MESSAGE" value="added documentation.added json.parse to all post output. implemented bulk rate." />
383
+ </component>
384
+ <component name="XDebuggerManager">
385
+ <breakpoint-manager />
386
+ <watches-manager />
387
+ </component>
388
+ <component name="editorHistoryManager">
389
+ <entry file="file://$PROJECT_DIR$/test/coinswitch_test.rb">
390
+ <provider selected="true" editor-type-id="text-editor">
391
+ <state relative-caret-position="663">
392
+ <caret line="39" column="33" lean-forward="false" selection-start-line="39" selection-start-column="33" selection-end-line="39" selection-end-column="33" />
393
+ <folding />
394
+ </state>
395
+ </provider>
396
+ </entry>
397
+ <entry file="file://C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/httparty-0.17.1/lib/httparty.rb">
398
+ <provider selected="true" editor-type-id="text-editor">
399
+ <state relative-caret-position="8874">
400
+ <caret line="522" column="8" lean-forward="false" selection-start-line="522" selection-start-column="8" selection-end-line="522" selection-end-column="8" />
401
+ <folding />
402
+ </state>
403
+ </provider>
404
+ </entry>
405
+ <entry file="file://C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/httparty-0.17.1/lib/httparty/request.rb">
406
+ <provider selected="true" editor-type-id="text-editor">
407
+ <state relative-caret-position="102">
408
+ <caret line="6" column="19" lean-forward="false" selection-start-line="6" selection-start-column="19" selection-end-line="6" selection-end-column="19" />
409
+ <folding />
410
+ </state>
411
+ </provider>
412
+ </entry>
413
+ <entry file="file://$PROJECT_DIR$/Gemfile">
414
+ <provider selected="true" editor-type-id="text-editor">
415
+ <state relative-caret-position="34">
416
+ <caret line="2" column="0" lean-forward="false" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
417
+ <folding />
418
+ </state>
419
+ </provider>
420
+ </entry>
421
+ <entry file="file://$PROJECT_DIR$/coinswitch.gemspec">
422
+ <provider selected="true" editor-type-id="text-editor">
423
+ <state relative-caret-position="527">
424
+ <caret line="31" column="31" lean-forward="false" selection-start-line="31" selection-start-column="31" selection-end-line="31" selection-end-column="31" />
425
+ <folding />
426
+ </state>
427
+ </provider>
428
+ </entry>
429
+ <entry file="file://$PROJECT_DIR$/lib/coinswitch.rb">
430
+ <provider selected="true" editor-type-id="text-editor">
431
+ <state relative-caret-position="986">
432
+ <caret line="58" column="61" lean-forward="true" selection-start-line="58" selection-start-column="61" selection-end-line="58" selection-end-column="61" />
433
+ <folding />
434
+ </state>
435
+ </provider>
436
+ </entry>
437
+ <entry file="file://$PROJECT_DIR$/CHANGELOG.md">
438
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
439
+ <state split_layout="SPLIT">
440
+ <first_editor relative-caret-position="0">
441
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
442
+ <folding />
443
+ </first_editor>
444
+ <second_editor />
445
+ </state>
446
+ </provider>
447
+ </entry>
448
+ <entry file="file://$PROJECT_DIR$/test/coinswitch_test.rb">
449
+ <provider selected="true" editor-type-id="text-editor">
450
+ <state relative-caret-position="0">
451
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
452
+ <folding />
453
+ </state>
454
+ </provider>
455
+ </entry>
456
+ <entry file="file://$PROJECT_DIR$/lib/coinswitch.rb">
457
+ <provider selected="true" editor-type-id="text-editor">
458
+ <state relative-caret-position="221">
459
+ <caret line="13" column="9" lean-forward="true" selection-start-line="13" selection-start-column="9" selection-end-line="13" selection-end-column="9" />
460
+ <folding />
461
+ </state>
462
+ </provider>
463
+ </entry>
464
+ <entry file="file://$PROJECT_DIR$/coinswitch.gemspec">
465
+ <provider selected="true" editor-type-id="text-editor">
466
+ <state relative-caret-position="527">
467
+ <caret line="31" column="31" lean-forward="false" selection-start-line="31" selection-start-column="31" selection-end-line="31" selection-end-column="31" />
468
+ <folding />
469
+ </state>
470
+ </provider>
471
+ </entry>
472
+ <entry file="file://$PROJECT_DIR$/Gemfile">
473
+ <provider selected="true" editor-type-id="text-editor">
474
+ <state relative-caret-position="34">
475
+ <caret line="2" column="0" lean-forward="false" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
476
+ <folding />
477
+ </state>
478
+ </provider>
479
+ </entry>
480
+ <entry file="file://$PROJECT_DIR$/CHANGELOG.md">
481
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
482
+ <state split_layout="SPLIT">
483
+ <first_editor relative-caret-position="0">
484
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
485
+ <folding />
486
+ </first_editor>
487
+ <second_editor />
488
+ </state>
489
+ </provider>
490
+ </entry>
491
+ <entry file="file://$PROJECT_DIR$/test/coinswitch_test.rb">
492
+ <provider selected="true" editor-type-id="text-editor">
493
+ <state relative-caret-position="170">
494
+ <caret line="10" column="5" lean-forward="false" selection-start-line="10" selection-start-column="5" selection-end-line="10" selection-end-column="5" />
495
+ <folding />
496
+ </state>
497
+ </provider>
498
+ </entry>
499
+ <entry file="file://$PROJECT_DIR$/lib/coinswitch.rb">
500
+ <provider selected="true" editor-type-id="text-editor">
501
+ <state relative-caret-position="136">
502
+ <caret line="8" column="31" lean-forward="false" selection-start-line="8" selection-start-column="31" selection-end-line="8" selection-end-column="31" />
503
+ <folding />
504
+ </state>
505
+ </provider>
506
+ </entry>
507
+ <entry file="file://$PROJECT_DIR$/Gemfile">
508
+ <provider selected="true" editor-type-id="text-editor">
509
+ <state relative-caret-position="34">
510
+ <caret line="2" column="0" lean-forward="false" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
511
+ <folding />
512
+ </state>
513
+ </provider>
514
+ </entry>
515
+ <entry file="file://$PROJECT_DIR$/coinswitch.gemspec">
516
+ <provider selected="true" editor-type-id="text-editor">
517
+ <state relative-caret-position="170">
518
+ <caret line="10" column="76" lean-forward="false" selection-start-line="10" selection-start-column="76" selection-end-line="10" selection-end-column="76" />
519
+ <folding />
520
+ </state>
521
+ </provider>
522
+ </entry>
523
+ <entry file="file://$PROJECT_DIR$/CHANGELOG.md">
524
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
525
+ <state split_layout="SPLIT">
526
+ <first_editor relative-caret-position="0">
527
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
528
+ <folding />
529
+ </first_editor>
530
+ <second_editor />
531
+ </state>
532
+ </provider>
533
+ </entry>
534
+ <entry file="file://C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/httparty-0.17.1/lib/httparty/request/body.rb">
535
+ <provider selected="true" editor-type-id="text-editor">
536
+ <state relative-caret-position="34">
537
+ <caret line="2" column="7" lean-forward="false" selection-start-line="2" selection-start-column="7" selection-end-line="2" selection-end-column="7" />
538
+ </state>
539
+ </provider>
540
+ </entry>
541
+ <entry file="file://C:/Ruby26-x64/lib/ruby/2.6.0/net/http/requests.rb">
542
+ <provider selected="true" editor-type-id="text-editor">
543
+ <state relative-caret-position="239">
544
+ <caret line="23" column="17" lean-forward="false" selection-start-line="23" selection-start-column="17" selection-end-line="23" selection-end-column="17" />
545
+ </state>
546
+ </provider>
547
+ </entry>
548
+ <entry file="file://C:/Ruby26-x64/lib/ruby/2.6.0/delegate.rb">
549
+ <provider selected="true" editor-type-id="text-editor">
550
+ <state relative-caret-position="6647">
551
+ <caret line="391" column="8" lean-forward="false" selection-start-line="391" selection-start-column="8" selection-end-line="391" selection-end-column="8" />
552
+ </state>
553
+ </provider>
554
+ </entry>
555
+ <entry file="file://$PROJECT_DIR$/Gemfile">
556
+ <provider selected="true" editor-type-id="text-editor">
557
+ <state relative-caret-position="34">
558
+ <caret line="2" column="0" lean-forward="false" selection-start-line="2" selection-start-column="0" selection-end-line="2" selection-end-column="0" />
559
+ <folding />
560
+ </state>
561
+ </provider>
562
+ </entry>
563
+ <entry file="file://C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/httparty-0.17.1/lib/httparty/request.rb">
564
+ <provider selected="true" editor-type-id="text-editor">
565
+ <state relative-caret-position="17">
566
+ <caret line="6" column="19" lean-forward="false" selection-start-line="6" selection-start-column="19" selection-end-line="6" selection-end-column="19" />
567
+ <folding />
568
+ </state>
569
+ </provider>
570
+ </entry>
571
+ <entry file="file://C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/httparty-0.17.1/lib/httparty.rb">
572
+ <provider selected="true" editor-type-id="text-editor">
573
+ <state relative-caret-position="17">
574
+ <caret line="522" column="8" lean-forward="false" selection-start-line="522" selection-start-column="8" selection-end-line="522" selection-end-column="8" />
575
+ <folding />
576
+ </state>
577
+ </provider>
578
+ </entry>
579
+ <entry file="file://$PROJECT_DIR$/README.md">
580
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
581
+ <state split_layout="SPLIT">
582
+ <first_editor relative-caret-position="51">
583
+ <caret line="3" column="0" lean-forward="false" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
584
+ <folding />
585
+ </first_editor>
586
+ <second_editor />
587
+ </state>
588
+ </provider>
589
+ </entry>
590
+ <entry file="file://$PROJECT_DIR$/lib/coinswitch.rb">
591
+ <provider selected="true" editor-type-id="text-editor">
592
+ <state relative-caret-position="-68">
593
+ <caret line="14" column="6" lean-forward="false" selection-start-line="14" selection-start-column="6" selection-end-line="14" selection-end-column="77" />
594
+ <folding />
595
+ </state>
596
+ </provider>
597
+ </entry>
598
+ <entry file="file://$PROJECT_DIR$/test/coinswitch_test.rb">
599
+ <provider selected="true" editor-type-id="text-editor">
600
+ <state relative-caret-position="549">
601
+ <caret line="39" column="33" lean-forward="false" selection-start-line="39" selection-start-column="33" selection-end-line="39" selection-end-column="33" />
602
+ <folding />
603
+ </state>
604
+ </provider>
605
+ </entry>
606
+ <entry file="file://$PROJECT_DIR$/coinswitch.gemspec">
607
+ <provider selected="true" editor-type-id="text-editor">
608
+ <state relative-caret-position="498">
609
+ <caret line="30" column="29" lean-forward="true" selection-start-line="30" selection-start-column="29" selection-end-line="30" selection-end-column="29" />
610
+ <folding />
611
+ </state>
612
+ </provider>
613
+ </entry>
614
+ <entry file="file://$PROJECT_DIR$/lib/coinswitch/version.rb">
615
+ <provider selected="true" editor-type-id="text-editor">
616
+ <state relative-caret-position="17">
617
+ <caret line="1" column="18" lean-forward="false" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
618
+ <folding />
619
+ </state>
620
+ </provider>
621
+ </entry>
622
+ </component>
623
+ </project>
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.2
File without changes
@@ -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 JesusisLord33333@outlook.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
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in coinswitch.gemspec
4
+ gemspec
5
+
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Jason Crockett
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,62 @@
1
+ # Coinswitch
2
+
3
+ A simple wrapper round httparty requests for coinswitch.
4
+ no errors that can be thrown are included yet.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'coinswitch'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install coinswitch
21
+
22
+ ## Usage
23
+
24
+ explore the gem to an overview of the methods.
25
+
26
+
27
+ `
28
+ require 'coinswitch'
29
+ client = Coinswitch::Dynamic::DynamicClient.new
30
+ puts client.orderid('11111111-6c9e-4c53-9a6d-55e089aebd04')`
31
+
32
+ this will use ipify to fetch your external ip and use the development sandbox credentials to make queries.
33
+ the resultant requests are passed through JSON.parse to create a ruby dict. Currently their is no error handling or errors.
34
+ the queries themselves are just httparty requests. simple to modify.
35
+
36
+ the current initialize for the DynamicClient Class looks like this:
37
+ `def initialize(ip_address=Ipify.ip,api_key=Coinswitch::SANDBOX_API_KEY)`
38
+ so dead simple. the methods are named after the endpoints which are described here:
39
+ https://developer.coinswitch.co/reference#instant-exchange-api with the exception of
40
+ `puts client.coins_list` which is a convenience feature i added. it returns an array of coins that can be traded.
41
+
42
+ right now this simple library just does the job and pull requests are welcomed.
43
+
44
+ its just a wrapper round httparty requests.
45
+
46
+ ## Development
47
+
48
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
49
+
50
+ 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).
51
+
52
+ ## Contributing
53
+
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/coinswitch. 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.
55
+
56
+ ## License
57
+
58
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
59
+
60
+ ## Code of Conduct
61
+
62
+ Everyone interacting in the Coinswitch project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/coinswitch/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "coinswitch"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,37 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "coinswitch/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "coinswitch"
7
+ spec.version = Coinswitch::VERSION
8
+ spec.authors = ["Jason Crockett"]
9
+ spec.email = ["JesusisLord33333@outlook.com"]
10
+
11
+ spec.summary = 'A ruby library implementation of the coinswitch api'
12
+ spec.description = 'A ruby library implementation of the coinswitch api'
13
+ spec.homepage = "https://github.com/adisciple50/coinswitch"
14
+ spec.license = "MIT"
15
+
16
+ # spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
17
+
18
+ spec.metadata["homepage_uri"] = spec.homepage
19
+ spec.metadata["source_code_uri"] = spec.homepage
20
+ spec.metadata["changelog_uri"] = "https://github.com/adisciple50/coinswitch/blob/master/CHANGELOG.md"
21
+
22
+ # Specify which files should be added to the gem when it is released.
23
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
24
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
25
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_dependency 'ipify'
32
+ spec.add_dependency 'httparty'
33
+
34
+ spec.add_development_dependency "bundler", "~> 2.0"
35
+ spec.add_development_dependency "rake", "~> 10.0"
36
+ spec.add_development_dependency "minitest", "~> 5.0"
37
+ end
@@ -0,0 +1,92 @@
1
+ require "coinswitch/version"
2
+ require 'ipify'
3
+ require 'httparty'
4
+
5
+ module Coinswitch
6
+ SANDBOX_API_KEY = 't41E6v16mG6xqOUK74E2F7Py6UVng4K6n1pO3Jig'
7
+ module Dynamic
8
+ class Error < StandardError; end
9
+ # Your code goes here...
10
+ class DynamicClient
11
+ ##
12
+ # This class is a request constructor for coinswitch. It is the client for the dynamic api endpoints.
13
+ include HTTParty
14
+ base_uri 'https://api.coinswitch.co/v2'
15
+ def initialize(ip_address=Ipify.ip,api_key=Coinswitch::SANDBOX_API_KEY)
16
+ ##
17
+ # This Initialises the client and populates the coins list
18
+
19
+ @ip_address = ip_address
20
+ @api_key = api_key
21
+ @coins = coins
22
+ end
23
+
24
+
25
+ attr_accessor
26
+
27
+
28
+
29
+ def coins
30
+ ##
31
+ # This gets a list of coins that are available for swapping
32
+ @@response = self.class.get('/coins',headers:{'x-api-key':@api_key,'x-user-ip':@ip_address})
33
+ return JSON.parse @@response.body
34
+ end
35
+
36
+ def coins_list
37
+ ##
38
+ # Gets ONLY a list of symbols available for trade.
39
+ @@coins_list = []
40
+ @@coins = self.coins
41
+ @@tomap = @@coins['data']
42
+ @@tomap.map{|x| @@coins_list << x["symbol"] }
43
+ return @@coins_list
44
+ end
45
+
46
+ def pairs(depositCoin,destinationCoin)
47
+ ##
48
+ # determines if pairs are valid if the response is ok
49
+ @@response = self.class.post('/pairs',
50
+ headers:{'x-api-key':@api_key,'x-user-ip':@ip_address},
51
+ body:JSON.unparse({'depositCoin'=> depositCoin,
52
+ 'destinationCoin' => destinationCoin}))
53
+ return JSON.parse @@response.body
54
+ end
55
+ def rate(depositCoin,destinationCoin)
56
+ @@response = self.class.post('/rate',
57
+ headers:{'x-api-key':@api_key,'x-user-ip':@ip_address},
58
+ body:JSON.unparse({'depositCoin'=> depositCoin,'destinationCoin' => destinationCoin})
59
+ )
60
+ return JSON.parse @@response.body
61
+ end
62
+
63
+ def order(depositCoin,destinationCoin,depositCoinAmount,destinationAddress,refundAddress,callbackUrl='')
64
+ @@response = self.class.post('/rate',
65
+ headers:{'x-api-key':@api_key,'x-user-ip':@ip_address},
66
+ body:JSON.unparse({'depositCoin'=> depositCoin,'destinationCoin' => destinationCoin, 'depositCoinAmount' => depositCoinAmount,'destinationAddress' => destinationAddress,'refundAddress' => refundAddress,'callbackUrl' => callbackUrl})
67
+ )
68
+ return JSON.parse @@response.body
69
+ end
70
+ def orderid(orderid)
71
+ @@response = self.class.get('/order/'+ orderid.to_s,headers:{'x-api-key':@api_key,'x-user-ip':@ip_address},query:{'orderid'=> orderid})
72
+ return JSON.parse @@response.body
73
+ end
74
+ def bulk_rate(input)
75
+ ##
76
+ # https://developer.coinswitch.co/reference#post-v2bulk-rate
77
+ @@response = self.class.post('/rate',
78
+ headers:{'x-api-key':@api_key,'x-user-ip':@ip_address},
79
+ body:JSON.unparse(input)
80
+ )
81
+ return JSON.parse @@response.body
82
+ end
83
+ def orders(start,count)
84
+ @@response = self.class.get('/coins',headers:{'x-api-key':@api_key,'x-user-ip':@ip_address},query:{'start'=> start,'count' => count})
85
+ return JSON.parse @@response.body
86
+ end
87
+ end
88
+ end
89
+ end
90
+
91
+ client = Coinswitch::Dynamic::DynamicClient.new
92
+ puts client.orderid('11111111-6c9e-4c53-9a6d-55e089aebd04')
@@ -0,0 +1,3 @@
1
+ module Coinswitch
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,134 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: coinswitch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Jason Crockett
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-12-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: ipify
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: httparty
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ description: A ruby library implementation of the coinswitch api
84
+ email:
85
+ - JesusisLord33333@outlook.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".gitignore"
91
+ - ".idea/coinswitch.iml"
92
+ - ".idea/misc.xml"
93
+ - ".idea/modules.xml"
94
+ - ".idea/vcs.xml"
95
+ - ".idea/workspace.xml"
96
+ - ".travis.yml"
97
+ - CHANGELOG.md
98
+ - CODE_OF_CONDUCT.md
99
+ - Gemfile
100
+ - LICENSE.txt
101
+ - README.md
102
+ - Rakefile
103
+ - bin/console
104
+ - bin/setup
105
+ - coinswitch.gemspec
106
+ - lib/coinswitch.rb
107
+ - lib/coinswitch/version.rb
108
+ homepage: https://github.com/adisciple50/coinswitch
109
+ licenses:
110
+ - MIT
111
+ metadata:
112
+ homepage_uri: https://github.com/adisciple50/coinswitch
113
+ source_code_uri: https://github.com/adisciple50/coinswitch
114
+ changelog_uri: https://github.com/adisciple50/coinswitch/blob/master/CHANGELOG.md
115
+ post_install_message:
116
+ rdoc_options: []
117
+ require_paths:
118
+ - lib
119
+ required_ruby_version: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ required_rubygems_version: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - ">="
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
129
+ requirements: []
130
+ rubygems_version: 3.0.3
131
+ signing_key:
132
+ specification_version: 4
133
+ summary: A ruby library implementation of the coinswitch api
134
+ test_files: []