shapeshift-api 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.idea/inspectionProfiles/Project_Default.xml +5 -0
- data/.idea/misc.xml +4 -0
- data/.idea/modules.xml +8 -0
- data/.idea/shapeshift-api.iml +14 -0
- data/.idea/vcs.xml +6 -0
- data/.idea/workspace.xml +342 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/shapeshift/api.rb +58 -0
- data/lib/shapeshift/api/version.rb +5 -0
- data/shapeshift-api.gemspec +27 -0
- metadata +103 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 35d39a92e4f16b597b3c3e399a919dd7965d32d1
|
|
4
|
+
data.tar.gz: 8c38110bc29df5f7b394bd539d1dea22edfb8bdc
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: c7748655352f1507bef9fedbbe434b596d04dcf7413034f4c274b92fa6590d27bc7a800e5e31256fc7ec4e05f818a438bdfd498a15c8174f57171451d3de2669
|
|
7
|
+
data.tar.gz: 5b5437c961cbaa2186bfd681bbb50c928cf1ecccee3d5f2235be571afd2ccf68a9b334490310d1ef599d0d249e62cd1c3870fe8e0977cbe2c14c1d89be8de3de
|
data/.gitignore
ADDED
data/.idea/misc.xml
ADDED
data/.idea/modules.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/shapeshift-api.iml" filepath="$PROJECT_DIR$/.idea/shapeshift-api.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,14 @@
|
|
|
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="RVM: ruby-2.3.3" jdkType="RUBY_SDK" />
|
|
9
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.14.6, RVM: ruby-2.3.3) [gem]" level="application" />
|
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, RVM: ruby-2.3.3) [gem]" level="application" />
|
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.3.3) [gem]" level="application" />
|
|
13
|
+
</component>
|
|
14
|
+
</module>
|
data/.idea/vcs.xml
ADDED
data/.idea/workspace.xml
ADDED
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ChangeListManager">
|
|
4
|
+
<list default="true" id="4c5fb49c-8ab8-4afa-82eb-9942cc99274c" name="Default" comment="">
|
|
5
|
+
<change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
|
|
6
|
+
<change type="DELETED" beforePath="$PROJECT_DIR$/shapeshift-api-0.1.0.gem" afterPath="" />
|
|
7
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
|
8
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/shapeshift-api.gemspec" afterPath="$PROJECT_DIR$/shapeshift-api.gemspec" />
|
|
9
|
+
</list>
|
|
10
|
+
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
|
11
|
+
<option name="TRACKING_ENABLED" value="true" />
|
|
12
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
13
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
14
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
15
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
16
|
+
</component>
|
|
17
|
+
<component name="FileEditorManager">
|
|
18
|
+
<leaf>
|
|
19
|
+
<file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
|
|
20
|
+
<entry file="file://$PROJECT_DIR$/lib/shapeshift/api/version.rb">
|
|
21
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
22
|
+
<state relative-caret-position="75">
|
|
23
|
+
<caret line="5" column="0" lean-forward="true" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
|
24
|
+
<folding />
|
|
25
|
+
</state>
|
|
26
|
+
</provider>
|
|
27
|
+
</entry>
|
|
28
|
+
</file>
|
|
29
|
+
<file leaf-file-name="api.rb" pinned="false" current-in-tab="false">
|
|
30
|
+
<entry file="file://$PROJECT_DIR$/lib/shapeshift/api.rb">
|
|
31
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
32
|
+
<state relative-caret-position="318">
|
|
33
|
+
<caret line="54" column="7" lean-forward="true" selection-start-line="54" selection-start-column="7" selection-end-line="54" selection-end-column="7" />
|
|
34
|
+
<folding />
|
|
35
|
+
</state>
|
|
36
|
+
</provider>
|
|
37
|
+
</entry>
|
|
38
|
+
</file>
|
|
39
|
+
<file leaf-file-name="README.md" pinned="false" current-in-tab="false">
|
|
40
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
|
41
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
42
|
+
<state split_layout="SPLIT">
|
|
43
|
+
<first_editor relative-caret-position="225">
|
|
44
|
+
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
|
45
|
+
<folding />
|
|
46
|
+
</first_editor>
|
|
47
|
+
<second_editor />
|
|
48
|
+
</state>
|
|
49
|
+
</provider>
|
|
50
|
+
</entry>
|
|
51
|
+
</file>
|
|
52
|
+
<file leaf-file-name="Gemfile" pinned="false" current-in-tab="false">
|
|
53
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
54
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
55
|
+
<state relative-caret-position="0">
|
|
56
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
57
|
+
<folding />
|
|
58
|
+
</state>
|
|
59
|
+
</provider>
|
|
60
|
+
</entry>
|
|
61
|
+
</file>
|
|
62
|
+
<file leaf-file-name="Rakefile" pinned="false" current-in-tab="false">
|
|
63
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
64
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
65
|
+
<state relative-caret-position="0">
|
|
66
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
67
|
+
<folding />
|
|
68
|
+
</state>
|
|
69
|
+
</provider>
|
|
70
|
+
</entry>
|
|
71
|
+
</file>
|
|
72
|
+
<file leaf-file-name="shapeshift-api.gemspec" pinned="false" current-in-tab="false">
|
|
73
|
+
<entry file="file://$PROJECT_DIR$/shapeshift-api.gemspec">
|
|
74
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
75
|
+
<state relative-caret-position="210">
|
|
76
|
+
<caret line="14" column="28" lean-forward="false" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
|
|
77
|
+
<folding />
|
|
78
|
+
</state>
|
|
79
|
+
</provider>
|
|
80
|
+
</entry>
|
|
81
|
+
</file>
|
|
82
|
+
<file leaf-file-name="LICENSE.txt" pinned="false" current-in-tab="true">
|
|
83
|
+
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
|
84
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
85
|
+
<state relative-caret-position="0">
|
|
86
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
87
|
+
<folding />
|
|
88
|
+
</state>
|
|
89
|
+
</provider>
|
|
90
|
+
</entry>
|
|
91
|
+
</file>
|
|
92
|
+
</leaf>
|
|
93
|
+
</component>
|
|
94
|
+
<component name="Git.Settings">
|
|
95
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
96
|
+
</component>
|
|
97
|
+
<component name="IdeDocumentHistory">
|
|
98
|
+
<option name="CHANGED_PATHS">
|
|
99
|
+
<list>
|
|
100
|
+
<option value="$PROJECT_DIR$/lib/shapeshift/api.rb" />
|
|
101
|
+
<option value="$PROJECT_DIR$/README.md" />
|
|
102
|
+
<option value="$PROJECT_DIR$/shapeshift-api.gemspec" />
|
|
103
|
+
</list>
|
|
104
|
+
</option>
|
|
105
|
+
</component>
|
|
106
|
+
<component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
107
|
+
<component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
|
|
108
|
+
<component name="JsGulpfileManager">
|
|
109
|
+
<detection-done>true</detection-done>
|
|
110
|
+
<sorting>DEFINITION_ORDER</sorting>
|
|
111
|
+
</component>
|
|
112
|
+
<component name="ProjectFrameBounds">
|
|
113
|
+
<option name="x" value="1354" />
|
|
114
|
+
<option name="y" value="205" />
|
|
115
|
+
<option name="width" value="1393" />
|
|
116
|
+
<option name="height" value="823" />
|
|
117
|
+
</component>
|
|
118
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
|
119
|
+
<component name="ProjectView">
|
|
120
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
|
121
|
+
<flattenPackages />
|
|
122
|
+
<showMembers />
|
|
123
|
+
<showModules />
|
|
124
|
+
<showLibraryContents />
|
|
125
|
+
<hideEmptyPackages />
|
|
126
|
+
<abbreviatePackageNames />
|
|
127
|
+
<autoscrollToSource />
|
|
128
|
+
<autoscrollFromSource />
|
|
129
|
+
<sortByType />
|
|
130
|
+
<manualOrder />
|
|
131
|
+
<foldersAlwaysOnTop value="true" />
|
|
132
|
+
</navigator>
|
|
133
|
+
<panes>
|
|
134
|
+
<pane id="Scope" />
|
|
135
|
+
<pane id="Scratches" />
|
|
136
|
+
<pane id="ProjectPane">
|
|
137
|
+
<subPane>
|
|
138
|
+
<expand>
|
|
139
|
+
<path>
|
|
140
|
+
<item name="shapeshift-api" type="b2602c69:ProjectViewProjectNode" />
|
|
141
|
+
<item name="shapeshift-api" type="462c0819:PsiDirectoryNode" />
|
|
142
|
+
</path>
|
|
143
|
+
<path>
|
|
144
|
+
<item name="shapeshift-api" type="b2602c69:ProjectViewProjectNode" />
|
|
145
|
+
<item name="shapeshift-api" type="462c0819:PsiDirectoryNode" />
|
|
146
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
147
|
+
</path>
|
|
148
|
+
<path>
|
|
149
|
+
<item name="shapeshift-api" type="b2602c69:ProjectViewProjectNode" />
|
|
150
|
+
<item name="shapeshift-api" type="462c0819:PsiDirectoryNode" />
|
|
151
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
152
|
+
<item name="shapeshift" type="462c0819:PsiDirectoryNode" />
|
|
153
|
+
</path>
|
|
154
|
+
<path>
|
|
155
|
+
<item name="shapeshift-api" type="b2602c69:ProjectViewProjectNode" />
|
|
156
|
+
<item name="shapeshift-api" type="462c0819:PsiDirectoryNode" />
|
|
157
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
|
158
|
+
<item name="shapeshift" type="462c0819:PsiDirectoryNode" />
|
|
159
|
+
<item name="api" type="462c0819:PsiDirectoryNode" />
|
|
160
|
+
</path>
|
|
161
|
+
<path>
|
|
162
|
+
<item name="shapeshift-api" type="b2602c69:ProjectViewProjectNode" />
|
|
163
|
+
<item name="shapeshift-api" type="462c0819:PsiDirectoryNode" />
|
|
164
|
+
<item name="test" type="462c0819:PsiDirectoryNode" />
|
|
165
|
+
</path>
|
|
166
|
+
<path>
|
|
167
|
+
<item name="shapeshift-api" type="b2602c69:ProjectViewProjectNode" />
|
|
168
|
+
<item name="shapeshift-api" type="462c0819:PsiDirectoryNode" />
|
|
169
|
+
<item name="test" type="462c0819:PsiDirectoryNode" />
|
|
170
|
+
<item name="shapeshift" type="462c0819:PsiDirectoryNode" />
|
|
171
|
+
</path>
|
|
172
|
+
</expand>
|
|
173
|
+
<select />
|
|
174
|
+
</subPane>
|
|
175
|
+
</pane>
|
|
176
|
+
</panes>
|
|
177
|
+
</component>
|
|
178
|
+
<component name="PropertiesComponent">
|
|
179
|
+
<property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
|
180
|
+
<property name="options.splitter.main.proportions" value="0.3" />
|
|
181
|
+
<property name="options.splitter.details.proportions" value="0.2" />
|
|
182
|
+
<property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
|
|
183
|
+
<property name="WebServerToolWindowFactoryState" value="true" />
|
|
184
|
+
</component>
|
|
185
|
+
<component name="RecentsManager">
|
|
186
|
+
<key name="CopyFile.RECENT_KEYS">
|
|
187
|
+
<recent name="$PROJECT_DIR$" />
|
|
188
|
+
</key>
|
|
189
|
+
</component>
|
|
190
|
+
<component name="RunDashboard">
|
|
191
|
+
<option name="ruleStates">
|
|
192
|
+
<list>
|
|
193
|
+
<RuleState>
|
|
194
|
+
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
|
195
|
+
</RuleState>
|
|
196
|
+
<RuleState>
|
|
197
|
+
<option name="name" value="StatusDashboardGroupingRule" />
|
|
198
|
+
</RuleState>
|
|
199
|
+
</list>
|
|
200
|
+
</option>
|
|
201
|
+
</component>
|
|
202
|
+
<component name="ShelveChangesManager" show_recycled="false">
|
|
203
|
+
<option name="remove_strategy" value="false" />
|
|
204
|
+
</component>
|
|
205
|
+
<component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
|
|
206
|
+
<component name="TaskManager">
|
|
207
|
+
<task active="true" id="Default" summary="Default task">
|
|
208
|
+
<changelist id="4c5fb49c-8ab8-4afa-82eb-9942cc99274c" name="Default" comment="" />
|
|
209
|
+
<created>1512726713853</created>
|
|
210
|
+
<option name="number" value="Default" />
|
|
211
|
+
<option name="presentableId" value="Default" />
|
|
212
|
+
<updated>1512726713853</updated>
|
|
213
|
+
<workItem from="1512726715970" duration="1095000" />
|
|
214
|
+
</task>
|
|
215
|
+
<task id="LOCAL-00001" summary="module self">
|
|
216
|
+
<created>1512727460634</created>
|
|
217
|
+
<option name="number" value="00001" />
|
|
218
|
+
<option name="presentableId" value="LOCAL-00001" />
|
|
219
|
+
<option name="project" value="LOCAL" />
|
|
220
|
+
<updated>1512727460634</updated>
|
|
221
|
+
</task>
|
|
222
|
+
<task id="LOCAL-00002" summary="readme added">
|
|
223
|
+
<created>1512727512645</created>
|
|
224
|
+
<option name="number" value="00002" />
|
|
225
|
+
<option name="presentableId" value="LOCAL-00002" />
|
|
226
|
+
<option name="project" value="LOCAL" />
|
|
227
|
+
<updated>1512727512645</updated>
|
|
228
|
+
</task>
|
|
229
|
+
<task id="LOCAL-00003" summary="push gem">
|
|
230
|
+
<created>1512727763528</created>
|
|
231
|
+
<option name="number" value="00003" />
|
|
232
|
+
<option name="presentableId" value="LOCAL-00003" />
|
|
233
|
+
<option name="project" value="LOCAL" />
|
|
234
|
+
<updated>1512727763528</updated>
|
|
235
|
+
</task>
|
|
236
|
+
<option name="localTasksCounter" value="4" />
|
|
237
|
+
<servers />
|
|
238
|
+
</component>
|
|
239
|
+
<component name="TimeTrackingManager">
|
|
240
|
+
<option name="totallyTimeSpent" value="1095000" />
|
|
241
|
+
</component>
|
|
242
|
+
<component name="ToolWindowManager">
|
|
243
|
+
<frame x="1354" y="205" width="1393" height="823" extended-state="0" />
|
|
244
|
+
<layout>
|
|
245
|
+
<window_info id="Remote Host" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
246
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.22871947" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
247
|
+
<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" />
|
|
248
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
|
249
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
250
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3502747" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
|
251
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
252
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
|
253
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
|
254
|
+
<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" />
|
|
255
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
|
256
|
+
<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" />
|
|
257
|
+
<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" />
|
|
258
|
+
<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" />
|
|
259
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
|
260
|
+
<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" />
|
|
261
|
+
<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" />
|
|
262
|
+
<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" />
|
|
263
|
+
</layout>
|
|
264
|
+
</component>
|
|
265
|
+
<component name="TypeScriptGeneratedFilesManager">
|
|
266
|
+
<option name="version" value="1" />
|
|
267
|
+
</component>
|
|
268
|
+
<component name="VcsContentAnnotationSettings">
|
|
269
|
+
<option name="myLimit" value="2678400000" />
|
|
270
|
+
</component>
|
|
271
|
+
<component name="VcsManagerConfiguration">
|
|
272
|
+
<MESSAGE value="module self" />
|
|
273
|
+
<MESSAGE value="readme added" />
|
|
274
|
+
<MESSAGE value="push gem" />
|
|
275
|
+
<option name="LAST_COMMIT_MESSAGE" value="push gem" />
|
|
276
|
+
</component>
|
|
277
|
+
<component name="XDebuggerManager">
|
|
278
|
+
<breakpoint-manager />
|
|
279
|
+
<watches-manager />
|
|
280
|
+
</component>
|
|
281
|
+
<component name="editorHistoryManager">
|
|
282
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
|
283
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
284
|
+
<state relative-caret-position="0">
|
|
285
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
286
|
+
<folding />
|
|
287
|
+
</state>
|
|
288
|
+
</provider>
|
|
289
|
+
</entry>
|
|
290
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
|
291
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
292
|
+
<state relative-caret-position="0">
|
|
293
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
294
|
+
<folding />
|
|
295
|
+
</state>
|
|
296
|
+
</provider>
|
|
297
|
+
</entry>
|
|
298
|
+
<entry file="file://$PROJECT_DIR$/lib/shapeshift/api/version.rb">
|
|
299
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
300
|
+
<state relative-caret-position="75">
|
|
301
|
+
<caret line="5" column="0" lean-forward="true" selection-start-line="5" selection-start-column="0" selection-end-line="5" selection-end-column="0" />
|
|
302
|
+
<folding />
|
|
303
|
+
</state>
|
|
304
|
+
</provider>
|
|
305
|
+
</entry>
|
|
306
|
+
<entry file="file://$PROJECT_DIR$/lib/shapeshift/api.rb">
|
|
307
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
308
|
+
<state relative-caret-position="318">
|
|
309
|
+
<caret line="54" column="7" lean-forward="true" selection-start-line="54" selection-start-column="7" selection-end-line="54" selection-end-column="7" />
|
|
310
|
+
<folding />
|
|
311
|
+
</state>
|
|
312
|
+
</provider>
|
|
313
|
+
</entry>
|
|
314
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
|
315
|
+
<provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
|
|
316
|
+
<state split_layout="SPLIT">
|
|
317
|
+
<first_editor relative-caret-position="225">
|
|
318
|
+
<caret line="15" column="0" lean-forward="true" selection-start-line="15" selection-start-column="0" selection-end-line="15" selection-end-column="0" />
|
|
319
|
+
<folding />
|
|
320
|
+
</first_editor>
|
|
321
|
+
<second_editor />
|
|
322
|
+
</state>
|
|
323
|
+
</provider>
|
|
324
|
+
</entry>
|
|
325
|
+
<entry file="file://$PROJECT_DIR$/shapeshift-api.gemspec">
|
|
326
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
327
|
+
<state relative-caret-position="210">
|
|
328
|
+
<caret line="14" column="28" lean-forward="false" selection-start-line="14" selection-start-column="28" selection-end-line="14" selection-end-column="28" />
|
|
329
|
+
<folding />
|
|
330
|
+
</state>
|
|
331
|
+
</provider>
|
|
332
|
+
</entry>
|
|
333
|
+
<entry file="file://$PROJECT_DIR$/LICENSE.txt">
|
|
334
|
+
<provider selected="true" editor-type-id="text-editor">
|
|
335
|
+
<state relative-caret-position="0">
|
|
336
|
+
<caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
|
337
|
+
<folding />
|
|
338
|
+
</state>
|
|
339
|
+
</provider>
|
|
340
|
+
</entry>
|
|
341
|
+
</component>
|
|
342
|
+
</project>
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 astudnev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Shapeshift::Api
|
|
2
|
+
|
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/shapeshift/api`. To experiment with that code, run `bin/console` for an interactive prompt.
|
|
4
|
+
|
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's Gemfile:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem 'shapeshift-api'
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
$ bundle
|
|
18
|
+
|
|
19
|
+
Or install it yourself as:
|
|
20
|
+
|
|
21
|
+
$ gem install shapeshift-api
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Shapeshift::Api.coins
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
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.
|
|
32
|
+
|
|
33
|
+
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).
|
|
34
|
+
|
|
35
|
+
## Contributing
|
|
36
|
+
|
|
37
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/shapeshift-api.
|
|
38
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "shapeshift/api"
|
|
5
|
+
|
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
|
8
|
+
|
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
10
|
+
# require "pry"
|
|
11
|
+
# Pry.start
|
|
12
|
+
|
|
13
|
+
require "irb"
|
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
require "shapeshift/api/version"
|
|
2
|
+
require 'net/http'
|
|
3
|
+
|
|
4
|
+
module Shapeshift
|
|
5
|
+
module Api
|
|
6
|
+
|
|
7
|
+
def self.coins
|
|
8
|
+
get 'getcoins'
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
#
|
|
12
|
+
# minimum, limit - measured in from_symbol
|
|
13
|
+
# rate = from_symbol / to_symbol
|
|
14
|
+
# minerFee - measured in to_symbol
|
|
15
|
+
#
|
|
16
|
+
def self.rate from_symbol, to_symbol = 'btc'
|
|
17
|
+
get "marketinfo/#{pair(from_symbol, to_symbol)}"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def self.quote amount_to, from_symbol, to_symbol = 'btc'
|
|
21
|
+
post 'sendamount', {amount: amount_to, pair: pair(from_symbol, to_symbol)}
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
# {"success"=>{"orderId"=>"23902010-5280-499c-8065-50ff3fc9f24a",
|
|
25
|
+
# "pair"=>"eth_gnt", "withdrawal"=>"0xd7170547046adc91b5cdf39bc04ad70e95d0a825",
|
|
26
|
+
# "withdrawalAmount"=>"30", "deposit"=>"0x553beec262e0ab11dfe43f7d60dc1f51f03e4398",
|
|
27
|
+
# "depositAmount"=>"0.02696698", "expiration"=>1512726449980, "quotedRate"=>"1557.46037437",
|
|
28
|
+
# "maxLimit"=>11.57075248, "apiPubKey"=>"shapeshift", "minerFee"=>"12"}}
|
|
29
|
+
#
|
|
30
|
+
def self.sendamount amount_to, address_to, from_symbol, to_symbol = 'btc'
|
|
31
|
+
post 'sendamount', {amount: amount_to, withdrawal: address_to, pair: pair(from_symbol, to_symbol)}
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# {"status"=>"no_deposits", "address"=>"0x553beec262e0ab11dfe43f7d60dc1f51f03e4398"}
|
|
35
|
+
def self.status address
|
|
36
|
+
get "txStat/#{address}"
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
private
|
|
41
|
+
|
|
42
|
+
def self.pair from_symbol, to_symbol
|
|
43
|
+
"#{from_symbol.to_s.downcase}_#{to_symbol.to_s.downcase}"
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
def self.get method_args
|
|
47
|
+
r = Net::HTTP.get(URI.parse("https://shapeshift.io/#{method_args}"))
|
|
48
|
+
JSON.parse(r)
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def self.post method, args
|
|
53
|
+
r = Net::HTTP.post_form(URI.parse("https://shapeshift.io/#{method}"), args)
|
|
54
|
+
JSON.parse(r.body)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'shapeshift/api/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "shapeshift-api"
|
|
8
|
+
spec.version = Shapeshift::Api::VERSION
|
|
9
|
+
spec.authors = ["astudnev"]
|
|
10
|
+
spec.email = ["astudnev@gmail.com"]
|
|
11
|
+
|
|
12
|
+
spec.summary = %q{Shapeshift crypto exchange API wrapper.}
|
|
13
|
+
spec.description = %q{Allows transfer one crypto currency into another.}
|
|
14
|
+
spec.homepage = "https://izx.io"
|
|
15
|
+
spec.license = "MIT"
|
|
16
|
+
|
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
18
|
+
f.match(%r{^(test|spec|features)/})
|
|
19
|
+
end
|
|
20
|
+
spec.bindir = "exe"
|
|
21
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
22
|
+
spec.require_paths = ["lib"]
|
|
23
|
+
|
|
24
|
+
spec.add_development_dependency "bundler", "~> 1.14"
|
|
25
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
26
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
|
27
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: shapeshift-api
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.1.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- astudnev
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2017-12-08 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.14'
|
|
20
|
+
type: :development
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '1.14'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rake
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '10.0'
|
|
34
|
+
type: :development
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '10.0'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: minitest
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '5.0'
|
|
48
|
+
type: :development
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '5.0'
|
|
55
|
+
description: Allows transfer one crypto currency into another.
|
|
56
|
+
email:
|
|
57
|
+
- astudnev@gmail.com
|
|
58
|
+
executables: []
|
|
59
|
+
extensions: []
|
|
60
|
+
extra_rdoc_files: []
|
|
61
|
+
files:
|
|
62
|
+
- ".gitignore"
|
|
63
|
+
- ".idea/inspectionProfiles/Project_Default.xml"
|
|
64
|
+
- ".idea/misc.xml"
|
|
65
|
+
- ".idea/modules.xml"
|
|
66
|
+
- ".idea/shapeshift-api.iml"
|
|
67
|
+
- ".idea/vcs.xml"
|
|
68
|
+
- ".idea/workspace.xml"
|
|
69
|
+
- ".travis.yml"
|
|
70
|
+
- Gemfile
|
|
71
|
+
- LICENSE.txt
|
|
72
|
+
- README.md
|
|
73
|
+
- Rakefile
|
|
74
|
+
- bin/console
|
|
75
|
+
- bin/setup
|
|
76
|
+
- lib/shapeshift/api.rb
|
|
77
|
+
- lib/shapeshift/api/version.rb
|
|
78
|
+
- shapeshift-api.gemspec
|
|
79
|
+
homepage: https://izx.io
|
|
80
|
+
licenses:
|
|
81
|
+
- MIT
|
|
82
|
+
metadata: {}
|
|
83
|
+
post_install_message:
|
|
84
|
+
rdoc_options: []
|
|
85
|
+
require_paths:
|
|
86
|
+
- lib
|
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
88
|
+
requirements:
|
|
89
|
+
- - ">="
|
|
90
|
+
- !ruby/object:Gem::Version
|
|
91
|
+
version: '0'
|
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - ">="
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '0'
|
|
97
|
+
requirements: []
|
|
98
|
+
rubyforge_project:
|
|
99
|
+
rubygems_version: 2.6.10
|
|
100
|
+
signing_key:
|
|
101
|
+
specification_version: 4
|
|
102
|
+
summary: Shapeshift crypto exchange API wrapper.
|
|
103
|
+
test_files: []
|