asset_definition_file_uploader 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c6e44d6cd09763e1688a2f35c83c8cd3b2ffe43
4
+ data.tar.gz: 1a98e8cbce776ad70e1bbfef0d8192b14d2da157
5
+ SHA512:
6
+ metadata.gz: a4d3136f57b3e15d35116832a6b03c5a6a7412b92cfbc6e3b94aa40886665df948c9867883d03c61fcd272c629d2c354c61bef1dfc3c65be840f320ada7a550a
7
+ data.tar.gz: 9f9b4e58bfcbda7ac6013fdbe39d2b4e80a993df2336bd4d6fef71c28c1931460d025694b7880eaa76d04944789d1ebaabc41d960a9a8349a6938cb44ec42d10
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.idea/.rakeTasks ADDED
@@ -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"><RakeTask description="Build asset_definition_file_uploader-0.1.0.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install asset_definition_file_uploader-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install asset_definition_file_uploader-0.1.0.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0 and build and push asset_definition_file_uploader-0.1.0.gem to TODO: Set to 'http://mygemserver.com'" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$" />
5
+ <orderEntry type="jdk" jdkName="rbenv: 2.3.1" jdkType="RUBY_SDK" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.0.pre.3, rbenv: 2.3.1) [gem]" level="application" />
8
+ <orderEntry type="library" scope="PROVIDED" name="domain_name (v0.5.20170404, rbenv: 2.3.1) [gem]" level="application" />
9
+ <orderEntry type="library" scope="PROVIDED" name="google_url_shortener (v1.1.0, rbenv: 2.3.1) [gem]" level="application" />
10
+ <orderEntry type="library" scope="PROVIDED" name="http-cookie (v1.0.3, rbenv: 2.3.1) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="json (v2.1.0, rbenv: 2.3.1) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="mime-types (v3.1, rbenv: 2.3.1) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="mime-types-data (v3.2016.0521, rbenv: 2.3.1) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="netrc (v0.11.0, rbenv: 2.3.1) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="rest-client (v2.0.2, rbenv: 2.3.1) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="trollop (v2.1.2, rbenv: 2.3.1) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="unf (v0.1.4, rbenv: 2.3.1) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="unf_ext (v0.0.7.4, rbenv: 2.3.1) [gem]" level="application" />
19
+ </component>
20
+ </module>
data/.idea/misc.xml ADDED
@@ -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="rbenv: 2.2.2" project-jdk-type="RUBY_SDK" />
4
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/asset_definition_file_uploader.iml" filepath="$PROJECT_DIR$/.idea/asset_definition_file_uploader.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/vcs.xml ADDED
@@ -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,440 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="0135e986-d7b4-4e64-9722-f9ccd27b766f" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
6
+ </list>
7
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
+ <option name="TRACKING_ENABLED" value="true" />
9
+ <option name="SHOW_DIALOG" value="false" />
10
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
+ <option name="LAST_RESOLUTION" value="IGNORE" />
13
+ </component>
14
+ <component name="CreatePatchCommitExecutor">
15
+ <option name="PATCH_PATH" value="" />
16
+ </component>
17
+ <component name="FileEditorManager">
18
+ <leaf>
19
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
20
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader/version.rb">
21
+ <provider selected="true" editor-type-id="text-editor">
22
+ <state relative-caret-position="45">
23
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
24
+ <folding />
25
+ </state>
26
+ </provider>
27
+ </entry>
28
+ </file>
29
+ </leaf>
30
+ </component>
31
+ <component name="FileTemplateManagerImpl">
32
+ <option name="RECENT_TEMPLATES">
33
+ <list>
34
+ <option value="Ruby Class Template" />
35
+ </list>
36
+ </option>
37
+ </component>
38
+ <component name="Git.Settings">
39
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
40
+ </component>
41
+ <component name="IdeDocumentHistory">
42
+ <option name="CHANGED_PATHS">
43
+ <list>
44
+ <option value="$PROJECT_DIR$/lib/asset_definition_file_uploader.rb" />
45
+ <option value="$PROJECT_DIR$/lib/asset_definition_file_uploader/core.rb" />
46
+ <option value="$PROJECT_DIR$/asset_definition_file_uploader.gemspec" />
47
+ <option value="$PROJECT_DIR$/Gemfile" />
48
+ <option value="$PROJECT_DIR$/lib/asset_definition_file_uploader/version.rb" />
49
+ </list>
50
+ </option>
51
+ </component>
52
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
53
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
54
+ <component name="JsGulpfileManager">
55
+ <detection-done>true</detection-done>
56
+ <sorting>DEFINITION_ORDER</sorting>
57
+ </component>
58
+ <component name="ProjectFrameBounds">
59
+ <option name="width" value="1280" />
60
+ <option name="height" value="800" />
61
+ </component>
62
+ <component name="ProjectView">
63
+ <navigator currentView="ProjectPane" proportions="" version="1">
64
+ <flattenPackages />
65
+ <showMembers />
66
+ <showModules />
67
+ <showLibraryContents />
68
+ <hideEmptyPackages />
69
+ <abbreviatePackageNames />
70
+ <autoscrollToSource />
71
+ <autoscrollFromSource />
72
+ <sortByType />
73
+ <manualOrder />
74
+ <foldersAlwaysOnTop value="true" />
75
+ </navigator>
76
+ <panes>
77
+ <pane id="Scratches" />
78
+ <pane id="ProjectPane">
79
+ <subPane>
80
+ <PATH>
81
+ <PATH_ELEMENT>
82
+ <option name="myItemId" value="asset_definition_file_uploader" />
83
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
84
+ </PATH_ELEMENT>
85
+ <PATH_ELEMENT>
86
+ <option name="myItemId" value="asset_definition_file_uploader" />
87
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
88
+ </PATH_ELEMENT>
89
+ </PATH>
90
+ <PATH>
91
+ <PATH_ELEMENT>
92
+ <option name="myItemId" value="asset_definition_file_uploader" />
93
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
94
+ </PATH_ELEMENT>
95
+ <PATH_ELEMENT>
96
+ <option name="myItemId" value="asset_definition_file_uploader" />
97
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
98
+ </PATH_ELEMENT>
99
+ <PATH_ELEMENT>
100
+ <option name="myItemId" value="lib" />
101
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
102
+ </PATH_ELEMENT>
103
+ </PATH>
104
+ <PATH>
105
+ <PATH_ELEMENT>
106
+ <option name="myItemId" value="asset_definition_file_uploader" />
107
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
108
+ </PATH_ELEMENT>
109
+ <PATH_ELEMENT>
110
+ <option name="myItemId" value="asset_definition_file_uploader" />
111
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
112
+ </PATH_ELEMENT>
113
+ <PATH_ELEMENT>
114
+ <option name="myItemId" value="lib" />
115
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
116
+ </PATH_ELEMENT>
117
+ <PATH_ELEMENT>
118
+ <option name="myItemId" value="asset_definition_file_uploader" />
119
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
120
+ </PATH_ELEMENT>
121
+ </PATH>
122
+ </subPane>
123
+ </pane>
124
+ <pane id="Scope" />
125
+ </panes>
126
+ </component>
127
+ <component name="PropertiesComponent">
128
+ <property name="WebServerToolWindowFactoryState" value="false" />
129
+ <property name="nodejs_interpreter_path" value="/usr/local/bin/node" />
130
+ <property name="js.eslint.eslintPackage" value="" />
131
+ <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
132
+ <property name="FullScreen" value="true" />
133
+ </component>
134
+ <component name="RunManager">
135
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
136
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
137
+ <module name="" />
138
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
139
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
140
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
141
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
142
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
143
+ <envs />
144
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
145
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
146
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
147
+ <COVERAGE_PATTERN ENABLED="true">
148
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
149
+ </COVERAGE_PATTERN>
150
+ </EXTENSION>
151
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
152
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
153
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
154
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
155
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
156
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
157
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
158
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
159
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
160
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
161
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
162
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
163
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
164
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
165
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
166
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
167
+ <method />
168
+ </configuration>
169
+ <configuration default="true" type="JavaScriptTestRunnerProtractor" factoryName="Protractor">
170
+ <config-file value="" />
171
+ <node-interpreter value="project" />
172
+ <envs />
173
+ <method />
174
+ </configuration>
175
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
176
+ <method />
177
+ </configuration>
178
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
179
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
180
+ <module name="" />
181
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
182
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
183
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
184
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
185
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
186
+ <envs />
187
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
188
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
189
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
190
+ <COVERAGE_PATTERN ENABLED="true">
191
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
192
+ </COVERAGE_PATTERN>
193
+ </EXTENSION>
194
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
195
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
196
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
197
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
198
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
199
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
200
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
201
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
202
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
203
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
204
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
205
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
206
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
207
+ <method />
208
+ </configuration>
209
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
210
+ <module name="" />
211
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
212
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
213
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
214
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
215
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
216
+ <envs />
217
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
218
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
219
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
220
+ <COVERAGE_PATTERN ENABLED="true">
221
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
222
+ </COVERAGE_PATTERN>
223
+ </EXTENSION>
224
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
225
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
226
+ <method />
227
+ </configuration>
228
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
229
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
230
+ <module name="" />
231
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
232
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
233
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
234
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
235
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
236
+ <envs />
237
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
238
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
239
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
240
+ <COVERAGE_PATTERN ENABLED="true">
241
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
242
+ </COVERAGE_PATTERN>
243
+ </EXTENSION>
244
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
245
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
246
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
247
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
248
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
249
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
250
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
251
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
252
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
253
+ <method />
254
+ </configuration>
255
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
256
+ <node-interpreter>project</node-interpreter>
257
+ <node-options />
258
+ <gulpfile />
259
+ <tasks />
260
+ <arguments />
261
+ <envs />
262
+ <method />
263
+ </configuration>
264
+ <configuration default="true" type="js.build_tools.npm" factoryName="npm">
265
+ <command value="run" />
266
+ <scripts />
267
+ <node-interpreter value="project" />
268
+ <envs />
269
+ <method />
270
+ </configuration>
271
+ </component>
272
+ <component name="ShelveChangesManager" show_recycled="false">
273
+ <option name="remove_strategy" value="false" />
274
+ </component>
275
+ <component name="TaskManager">
276
+ <task active="true" id="Default" summary="Default task">
277
+ <changelist id="0135e986-d7b4-4e64-9722-f9ccd27b766f" name="Default" comment="" />
278
+ <created>1512968803175</created>
279
+ <option name="number" value="Default" />
280
+ <option name="presentableId" value="Default" />
281
+ <updated>1512968803175</updated>
282
+ <workItem from="1512968804793" duration="1134000" />
283
+ <workItem from="1513003564514" duration="1695000" />
284
+ <workItem from="1513069920221" duration="458000" />
285
+ <workItem from="1513078369215" duration="6689000" />
286
+ </task>
287
+ <servers />
288
+ </component>
289
+ <component name="TimeTrackingManager">
290
+ <option name="totallyTimeSpent" value="9976000" />
291
+ </component>
292
+ <component name="ToolWindowManager">
293
+ <frame x="0" y="0" width="1280" height="800" extended-state="0" />
294
+ <editor active="false" />
295
+ <layout>
296
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
297
+ <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" />
298
+ <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" />
299
+ <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" />
300
+ <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" />
301
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3286908" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
302
+ <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" />
303
+ <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.2925" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
304
+ <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" />
305
+ <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" />
306
+ <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" />
307
+ <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" />
308
+ <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" />
309
+ <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" />
310
+ <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" />
311
+ <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" />
312
+ <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" />
313
+ </layout>
314
+ </component>
315
+ <component name="TypeScriptGeneratedFilesManager">
316
+ <option name="processedProjectFiles" value="true" />
317
+ </component>
318
+ <component name="VcsContentAnnotationSettings">
319
+ <option name="myLimit" value="2678400000" />
320
+ </component>
321
+ <component name="XDebuggerManager">
322
+ <breakpoint-manager />
323
+ <watches-manager />
324
+ </component>
325
+ <component name="editorHistoryManager">
326
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader/core.rb">
327
+ <provider selected="true" editor-type-id="text-editor">
328
+ <state relative-caret-position="1065">
329
+ <caret line="71" column="3" lean-forward="true" selection-start-line="71" selection-start-column="3" selection-end-line="71" selection-end-column="3" />
330
+ <folding>
331
+ <marker date="1513171304000" expanded="true" signature="10:2828" ph=" ... end" />
332
+ <marker date="1513171304000" expanded="true" signature="449:1042" ph=" ... end" />
333
+ <marker date="1513171304000" expanded="true" signature="1116:1373" ph=" ... end" />
334
+ <marker date="1513171304000" expanded="true" signature="1562:2080" ph=" ... end" />
335
+ <marker date="1513171304000" expanded="true" signature="2107:2398" ph=" ... end" />
336
+ <marker date="1513171304000" expanded="true" signature="2310:2351" ph="do ... end" />
337
+ <marker date="1513171304000" expanded="true" signature="2468:2683" ph=" ... end" />
338
+ <marker date="1513171304000" expanded="true" signature="2711:2824" ph=" ... end" />
339
+ </folding>
340
+ </state>
341
+ </provider>
342
+ </entry>
343
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader.rb">
344
+ <provider selected="true" editor-type-id="text-editor">
345
+ <state relative-caret-position="1080">
346
+ <caret line="72" column="5" lean-forward="true" selection-start-line="3" selection-start-column="2" selection-end-line="72" selection-end-column="5" />
347
+ <folding>
348
+ <marker date="1513152059000" expanded="true" signature="210:214" ph=" ... end" />
349
+ </folding>
350
+ </state>
351
+ </provider>
352
+ </entry>
353
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader.rb">
354
+ <provider selected="true" editor-type-id="text-editor">
355
+ <state relative-caret-position="495">
356
+ <caret line="33" column="5" lean-forward="true" selection-start-line="33" selection-start-column="5" selection-end-line="33" selection-end-column="5" />
357
+ <folding>
358
+ <marker date="1513152059000" expanded="true" signature="210:214" ph=" ... end" />
359
+ </folding>
360
+ </state>
361
+ </provider>
362
+ </entry>
363
+ <entry file="file://$PROJECT_DIR$/.gitignore">
364
+ <provider selected="true" editor-type-id="text-editor">
365
+ <state relative-caret-position="0">
366
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
367
+ <folding />
368
+ </state>
369
+ </provider>
370
+ </entry>
371
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader.rb">
372
+ <provider selected="true" editor-type-id="text-editor">
373
+ <state relative-caret-position="0">
374
+ <caret line="0" column="9" lean-forward="false" selection-start-line="0" selection-start-column="9" selection-end-line="0" selection-end-column="47" />
375
+ <folding>
376
+ <marker date="1513152059000" expanded="true" signature="210:214" ph=" ... end" />
377
+ </folding>
378
+ </state>
379
+ </provider>
380
+ </entry>
381
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader/core.rb">
382
+ <provider selected="true" editor-type-id="text-editor">
383
+ <state relative-caret-position="535">
384
+ <caret line="84" column="6" lean-forward="false" selection-start-line="84" selection-start-column="6" selection-end-line="84" selection-end-column="6" />
385
+ <folding>
386
+ <marker date="1513171304000" expanded="true" signature="10:2828" ph=" ... end" />
387
+ <marker date="1513171304000" expanded="true" signature="449:1042" ph=" ... end" />
388
+ <marker date="1513171304000" expanded="true" signature="1116:1373" ph=" ... end" />
389
+ <marker date="1513171304000" expanded="true" signature="1562:2080" ph=" ... end" />
390
+ <marker date="1513171304000" expanded="true" signature="2107:2398" ph=" ... end" />
391
+ <marker date="1513171304000" expanded="true" signature="2310:2351" ph="do ... end" />
392
+ <marker date="1513171304000" expanded="true" signature="2468:2683" ph=" ... end" />
393
+ <marker date="1513171304000" expanded="true" signature="2711:2824" ph=" ... end" />
394
+ </folding>
395
+ </state>
396
+ </provider>
397
+ </entry>
398
+ <entry file="file://$PROJECT_DIR$/CODE_OF_CONDUCT.md">
399
+ <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
400
+ <state split_layout="SPLIT">
401
+ <first_editor relative-caret-position="0">
402
+ <caret line="0" column="0" lean-forward="false" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
403
+ <folding />
404
+ </first_editor>
405
+ <second_editor />
406
+ </state>
407
+ </provider>
408
+ </entry>
409
+ <entry file="file://$PROJECT_DIR$/asset_definition_file_uploader.gemspec">
410
+ <provider selected="true" editor-type-id="text-editor">
411
+ <state relative-caret-position="195">
412
+ <caret line="13" column="24" lean-forward="false" selection-start-line="13" selection-start-column="24" selection-end-line="13" selection-end-column="24" />
413
+ <folding>
414
+ <marker date="1513171371000" expanded="true" signature="173:1328" ph="do ... end" />
415
+ <marker date="1513171371000" expanded="true" signature="930:982" ph="do ... end" />
416
+ <marker date="1513171371000" expanded="true" signature="1062:1086" ph="{ ... }" />
417
+ </folding>
418
+ </state>
419
+ </provider>
420
+ </entry>
421
+ <entry file="file://$PROJECT_DIR$/Gemfile">
422
+ <provider selected="true" editor-type-id="text-editor">
423
+ <state relative-caret-position="60">
424
+ <caret line="4" column="26" lean-forward="false" selection-start-line="4" selection-start-column="26" selection-end-line="4" selection-end-column="26" />
425
+ <folding>
426
+ <marker date="1513175081000" expanded="true" signature="51:99" ph="{ ... }" />
427
+ </folding>
428
+ </state>
429
+ </provider>
430
+ </entry>
431
+ <entry file="file://$PROJECT_DIR$/lib/asset_definition_file_uploader/version.rb">
432
+ <provider selected="true" editor-type-id="text-editor">
433
+ <state relative-caret-position="45">
434
+ <caret line="3" column="0" lean-forward="true" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
435
+ <folding />
436
+ </state>
437
+ </provider>
438
+ </entry>
439
+ </component>
440
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.16.0.pre.3
@@ -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 nishidaryu416@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ gem 'google_url_shortener'
data/Gemfile.lock ADDED
@@ -0,0 +1,33 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ domain_name (0.5.20170404)
5
+ unf (>= 0.0.5, < 1.0.0)
6
+ google_url_shortener (1.1.0)
7
+ json (>= 1.4.6)
8
+ rest-client (>= 1.6.7)
9
+ trollop (>= 1.16.2)
10
+ http-cookie (1.0.3)
11
+ domain_name (~> 0.5)
12
+ json (2.1.0)
13
+ mime-types (3.1)
14
+ mime-types-data (~> 3.2015)
15
+ mime-types-data (3.2016.0521)
16
+ netrc (0.11.0)
17
+ rest-client (2.0.2)
18
+ http-cookie (>= 1.0.2, < 2.0)
19
+ mime-types (>= 1.16, < 4.0)
20
+ netrc (~> 0.8)
21
+ trollop (2.1.2)
22
+ unf (0.1.4)
23
+ unf_ext
24
+ unf_ext (0.0.7.4)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ google_url_shortener
31
+
32
+ BUNDLED WITH
33
+ 1.16.0.pre.3
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 NishidaRyu416
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,43 @@
1
+ # AssetDefinitionFileUploader
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/asset_definition_file_uploader`. 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 'asset_definition_file_uploader'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install asset_definition_file_uploader
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/asset_definition_file_uploader. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the AssetDefinitionFileUploader project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/asset_definition_file_uploader/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -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,28 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "asset_definition_file_uploader/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "asset_definition_file_uploader"
8
+ spec.version = AssetDefinitionFileUploader::VERSION
9
+ spec.authors = ["NishidaRyu416"]
10
+ spec.email = ["nishidaryu416@gmail.com"]
11
+
12
+ spec.summary = %q{You can make the asset definition file that is used on open assets protocol with this gem easily}
13
+ spec.description = %q{This gem enables you to make the assets definition file easily but also you can upload the file you make with this gem or you make without this to gist.if you want to make the url you upload to short then this gem will help you as well}
14
+ spec.homepage = "https://ryu-nishida.blogspot.jp/"
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.16.a"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_dependency 'google_url_shortener'
28
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "asset_definition_file_uploader"
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,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,9 @@
1
+ require "asset_definition_file_uploader/version"
2
+ require "asset_definition_file_uploader/core"
3
+ require 'net/http'
4
+ require 'json'
5
+ require 'date'
6
+ require 'google_url_shortener'
7
+
8
+ module AssetDefinitionFileUploader
9
+ end
@@ -0,0 +1,86 @@
1
+ class Core
2
+ require 'net/http'
3
+ require 'json'
4
+ require 'date'
5
+ require 'google_url_shortener'
6
+
7
+ @uri = URI("https://api.github.com/gists")
8
+ FILE_NAME=Date.today.to_time
9
+
10
+ def make_upload_asset_definition_file(file_description,asset_ids,asset_name_short,asset_name,contract_url,issuer,asset_description,
11
+ description_mime,type,divisibility,link_to_website,icon_url,image_url,version,file_name=FILE_NAME)
12
+ asset_definition_file={
13
+ "asset_ids": asset_ids,
14
+ "name_short": asset_name_short,
15
+ "name": asset_name,
16
+ "contract_url": contract_url,
17
+ "issuer": issuer,
18
+ "description": asset_description,
19
+ "description_mime": description_mime,
20
+ "type": type,
21
+ "divisibility": divisibility,
22
+ "link_to_website": link_to_website,
23
+ "icon_url": icon_url,
24
+ "image_url": image_url,
25
+ "version": version
26
+ }
27
+ request=make_request_contents(file_description,file_name,asset_definition_file)
28
+ do_request(request)
29
+ end
30
+ def make_request_contents(file_description,content,file_name=FILE_NAME)
31
+ request_stuffs = {
32
+ 'description' => file_description,
33
+ 'public' => true,
34
+ 'files' => {
35
+ "#{file_name}.json" => {
36
+ 'content' => content.to_json
37
+ }
38
+ }
39
+ }
40
+ return request_stuffs
41
+ end
42
+ def make_asset_definition_file (asset_ids,asset_name_short,asset_name,contract_url,issuer,asset_description,description_mime,type,divisibility,link_to_website,icon_url,image_url,version)
43
+ asset_definition_file={
44
+ "asset_ids": asset_ids,
45
+ "name_short": asset_name_short,
46
+ "name": asset_name,
47
+ "contract_url": contract_url,
48
+ "issuer": issuer,
49
+ "description": asset_description,
50
+ "description_mime": description_mime,
51
+ "type": type,
52
+ "divisibility": divisibility,
53
+ "link_to_website": link_to_website,
54
+ "icon_url": icon_url,
55
+ "image_url": image_url,
56
+ "version": version
57
+ }
58
+ return asset_definition_file
59
+ end
60
+
61
+ def do_request(request)
62
+ request_stuffs=request
63
+ request_stuffs=request_stuffs.to_json
64
+ req = Net::HTTP::Post.new(@uri.path)
65
+ req.body = request_stuffs
66
+ res = Net::HTTP.start(@uri.hostname, @uri.port, :use_ssl => true) do |http|
67
+ http.request(req)
68
+ end
69
+ @response= res.body
70
+ return @response
71
+ end
72
+
73
+ def make_url_short(api_key,file_name=FILE_NAME,response=@response)
74
+ response=JSON.parse(response)
75
+ response=response["files"]["#{file_name}.json"]["raw_url"]
76
+ Google::UrlShortener::Base.api_key = api_key
77
+ url=Google::UrlShortener.shorten!(response)
78
+ return url
79
+ end
80
+
81
+ def shorten(api_key,url)
82
+ Google::UrlShortener::Base.api_key = api_key
83
+ url=Google::UrlShortener.shorten!(url)
84
+ return url
85
+ end
86
+ end
@@ -0,0 +1,3 @@
1
+ module AssetDefinitionFileUploader
2
+ VERSION = "0.1.1"
3
+ end
metadata ADDED
@@ -0,0 +1,124 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: asset_definition_file_uploader
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - NishidaRyu416
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-12-13 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.16.a
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.16.a
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: google_url_shortener
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: This gem enables you to make the assets definition file easily but also
70
+ you can upload the file you make with this gem or you make without this to gist.if
71
+ you want to make the url you upload to short then this gem will help you as well
72
+ email:
73
+ - nishidaryu416@gmail.com
74
+ executables: []
75
+ extensions: []
76
+ extra_rdoc_files: []
77
+ files:
78
+ - ".gitignore"
79
+ - ".idea/.rakeTasks"
80
+ - ".idea/asset_definition_file_uploader.iml"
81
+ - ".idea/misc.xml"
82
+ - ".idea/modules.xml"
83
+ - ".idea/vcs.xml"
84
+ - ".idea/workspace.xml"
85
+ - ".rspec"
86
+ - ".travis.yml"
87
+ - CODE_OF_CONDUCT.md
88
+ - Gemfile
89
+ - Gemfile.lock
90
+ - LICENSE.txt
91
+ - README.md
92
+ - Rakefile
93
+ - asset_definition_file_uploader.gemspec
94
+ - bin/console
95
+ - bin/setup
96
+ - lib/asset_definition_file_uploader.rb
97
+ - lib/asset_definition_file_uploader/core.rb
98
+ - lib/asset_definition_file_uploader/version.rb
99
+ homepage: https://ryu-nishida.blogspot.jp/
100
+ licenses:
101
+ - MIT
102
+ metadata: {}
103
+ post_install_message:
104
+ rdoc_options: []
105
+ require_paths:
106
+ - lib
107
+ required_ruby_version: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ requirements: []
118
+ rubyforge_project:
119
+ rubygems_version: 2.5.1
120
+ signing_key:
121
+ specification_version: 4
122
+ summary: You can make the asset definition file that is used on open assets protocol
123
+ with this gem easily
124
+ test_files: []