2cdn 0.1.0

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: 09ac99c8274bc84b337a0173b978dae1c9411ad2
4
+ data.tar.gz: 11c6be3ed49a84aa294fc3c0e1639771cbe6a983
5
+ SHA512:
6
+ metadata.gz: fdcd7202e3056ee8df1904dc16c9d6014f6e8dc630046ae709cca06355c76fa7fca0836b00de77e1dcef81043b60428580f4e75b5848dfcf0697558f2aa74eb5
7
+ data.tar.gz: 7716c16ed81d8c0c8e875a3241a311a31ea4e80fac60e2600971506cc91fded2c4bd0c6789f76167d148832d3c027b5890be73a8fbb797b720e1613dfbcbcecf
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
@@ -0,0 +1,8 @@
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="RVM: ruby-2.1.5 [global]" jdkType="RUBY_SDK" />
6
+ <orderEntry type="sourceFolder" forTests="false" />
7
+ </component>
8
+ </module>
data/.idea/misc.xml ADDED
@@ -0,0 +1,14 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
4
+ <OptionsSetting value="true" id="Add" />
5
+ <OptionsSetting value="true" id="Remove" />
6
+ <OptionsSetting value="true" id="Checkout" />
7
+ <OptionsSetting value="true" id="Update" />
8
+ <OptionsSetting value="true" id="Status" />
9
+ <OptionsSetting value="true" id="Edit" />
10
+ <ConfirmationsSetting value="0" id="Add" />
11
+ <ConfirmationsSetting value="0" id="Remove" />
12
+ </component>
13
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p551 [global]" project-jdk-type="RUBY_SDK" />
14
+ </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/AutoAliCDN.iml" filepath="$PROJECT_DIR$/.idea/AutoAliCDN.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,490 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="d36b541e-976b-424c-9004-6c5dd6e4c4e8" name="Default" comment="">
5
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/AutoAliCDN.iml" />
6
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/misc.xml" />
7
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/modules.xml" />
8
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/vcs.xml" />
9
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
10
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.rspec" />
11
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/.travis.yml" />
12
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/CODE_OF_CONDUCT.md" />
13
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Gemfile" />
14
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/LICENSE.txt" />
15
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/Rakefile" />
16
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/auto_ali_cdn.gemspec" />
17
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/2cdn" />
18
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/console" />
19
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/bin/setup" />
20
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/auto-ali-cdn/version.rb" />
21
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/lib/auto_ali_cdn.rb" />
22
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/auto_ali_cdn_spec.rb" />
23
+ <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/spec/spec_helper.rb" />
24
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.gitignore" afterPath="$PROJECT_DIR$/.gitignore" />
25
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/README.md" afterPath="$PROJECT_DIR$/README.md" />
26
+ </list>
27
+ <ignored path="AutoAliCDN.iws" />
28
+ <ignored path=".idea/workspace.xml" />
29
+ <ignored path=".idea/dataSources.local.xml" />
30
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
31
+ <option name="TRACKING_ENABLED" value="true" />
32
+ <option name="SHOW_DIALOG" value="false" />
33
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
34
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
35
+ <option name="LAST_RESOLUTION" value="IGNORE" />
36
+ </component>
37
+ <component name="CreatePatchCommitExecutor">
38
+ <option name="PATCH_PATH" value="" />
39
+ </component>
40
+ <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
41
+ <component name="FavoritesManager">
42
+ <favorites_list name="AutoAliCDN" />
43
+ </component>
44
+ <component name="FileEditorManager">
45
+ <leaf>
46
+ <file leaf-file-name="2cdn" pinned="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/bin/2cdn">
48
+ <provider selected="true" editor-type-id="text-editor">
49
+ <state relative-caret-position="540">
50
+ <caret line="30" column="27" selection-start-line="30" selection-start-column="27" selection-end-line="30" selection-end-column="27" />
51
+ <folding />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="auto_ali_cdn.gemspec" pinned="false" current-in-tab="true">
57
+ <entry file="file://$PROJECT_DIR$/auto_ali_cdn.gemspec">
58
+ <provider selected="true" editor-type-id="text-editor">
59
+ <state relative-caret-position="108">
60
+ <caret line="6" column="28" selection-start-line="6" selection-start-column="28" selection-end-line="6" selection-end-column="28" />
61
+ <folding />
62
+ </state>
63
+ </provider>
64
+ </entry>
65
+ </file>
66
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
67
+ <entry file="file://$PROJECT_DIR$/lib/auto-ali-cdn/version.rb">
68
+ <provider selected="true" editor-type-id="text-editor">
69
+ <state relative-caret-position="18">
70
+ <caret line="1" column="2" selection-start-line="1" selection-start-column="2" selection-end-line="1" selection-end-column="2" />
71
+ <folding />
72
+ </state>
73
+ </provider>
74
+ </entry>
75
+ </file>
76
+ <file leaf-file-name="auto_ali_cdn.rb" pinned="false" current-in-tab="false">
77
+ <entry file="file://$PROJECT_DIR$/lib/auto_ali_cdn.rb">
78
+ <provider selected="true" editor-type-id="text-editor">
79
+ <state relative-caret-position="180">
80
+ <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
81
+ <folding />
82
+ </state>
83
+ </provider>
84
+ </entry>
85
+ </file>
86
+ </leaf>
87
+ </component>
88
+ <component name="FileTemplateManagerImpl">
89
+ <option name="RECENT_TEMPLATES">
90
+ <list>
91
+ <option value="Ruby Class Template" />
92
+ </list>
93
+ </option>
94
+ </component>
95
+ <component name="Git.Settings">
96
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
97
+ </component>
98
+ <component name="IdeDocumentHistory">
99
+ <option name="CHANGED_PATHS">
100
+ <list>
101
+ <option value="$PROJECT_DIR$/auto_ali_cdn.rb" />
102
+ <option value="$PROJECT_DIR$/AutoAliCDN.gemspec" />
103
+ <option value="$PROJECT_DIR$/lib/auto-ali-cdn.rb" />
104
+ <option value="$PROJECT_DIR$/bin/auto_ali_cdn" />
105
+ <option value="$PROJECT_DIR$/lib/auto_ali_cdn.rb" />
106
+ <option value="$PROJECT_DIR$/bin/auto-ali-cdn" />
107
+ <option value="$PROJECT_DIR$/bin/2cdn" />
108
+ <option value="$PROJECT_DIR$/auto_ali_cdn.gemspec" />
109
+ </list>
110
+ </option>
111
+ </component>
112
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
113
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
114
+ <component name="JsGulpfileManager">
115
+ <detection-done>true</detection-done>
116
+ <sorting>DEFINITION_ORDER</sorting>
117
+ </component>
118
+ <component name="ProjectFrameBounds">
119
+ <option name="x" value="4" />
120
+ <option name="y" value="23" />
121
+ <option name="width" value="1916" />
122
+ <option name="height" value="1057" />
123
+ </component>
124
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
125
+ <OptionsSetting value="true" id="Add" />
126
+ <OptionsSetting value="true" id="Remove" />
127
+ <OptionsSetting value="true" id="Checkout" />
128
+ <OptionsSetting value="true" id="Update" />
129
+ <OptionsSetting value="true" id="Status" />
130
+ <OptionsSetting value="true" id="Edit" />
131
+ <ConfirmationsSetting value="2" id="Add" />
132
+ <ConfirmationsSetting value="0" id="Remove" />
133
+ </component>
134
+ <component name="ProjectView">
135
+ <navigator currentView="ProjectPane" proportions="" version="1">
136
+ <flattenPackages />
137
+ <showMembers />
138
+ <showModules />
139
+ <showLibraryContents />
140
+ <hideEmptyPackages />
141
+ <abbreviatePackageNames />
142
+ <autoscrollToSource />
143
+ <autoscrollFromSource />
144
+ <sortByType />
145
+ <manualOrder />
146
+ <foldersAlwaysOnTop value="true" />
147
+ </navigator>
148
+ <panes>
149
+ <pane id="Scope">
150
+ <subPane subId="Project Files">
151
+ <PATH>
152
+ <PATH_ELEMENT USER_OBJECT="Root">
153
+ <option name="myItemId" value="" />
154
+ <option name="myItemType" value="" />
155
+ </PATH_ELEMENT>
156
+ </PATH>
157
+ </subPane>
158
+ </pane>
159
+ <pane id="Scratches" />
160
+ <pane id="ProjectPane">
161
+ <subPane>
162
+ <PATH>
163
+ <PATH_ELEMENT>
164
+ <option name="myItemId" value="AutoAliCDN" />
165
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
166
+ </PATH_ELEMENT>
167
+ </PATH>
168
+ <PATH>
169
+ <PATH_ELEMENT>
170
+ <option name="myItemId" value="AutoAliCDN" />
171
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
172
+ </PATH_ELEMENT>
173
+ <PATH_ELEMENT>
174
+ <option name="myItemId" value="AutoAliCDN" />
175
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
176
+ </PATH_ELEMENT>
177
+ </PATH>
178
+ <PATH>
179
+ <PATH_ELEMENT>
180
+ <option name="myItemId" value="AutoAliCDN" />
181
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
182
+ </PATH_ELEMENT>
183
+ <PATH_ELEMENT>
184
+ <option name="myItemId" value="AutoAliCDN" />
185
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
186
+ </PATH_ELEMENT>
187
+ <PATH_ELEMENT>
188
+ <option name="myItemId" value="lib" />
189
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
190
+ </PATH_ELEMENT>
191
+ </PATH>
192
+ <PATH>
193
+ <PATH_ELEMENT>
194
+ <option name="myItemId" value="AutoAliCDN" />
195
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
196
+ </PATH_ELEMENT>
197
+ <PATH_ELEMENT>
198
+ <option name="myItemId" value="AutoAliCDN" />
199
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
200
+ </PATH_ELEMENT>
201
+ <PATH_ELEMENT>
202
+ <option name="myItemId" value="lib" />
203
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
204
+ </PATH_ELEMENT>
205
+ <PATH_ELEMENT>
206
+ <option name="myItemId" value="auto-ali-cdn" />
207
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
208
+ </PATH_ELEMENT>
209
+ </PATH>
210
+ <PATH>
211
+ <PATH_ELEMENT>
212
+ <option name="myItemId" value="AutoAliCDN" />
213
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
214
+ </PATH_ELEMENT>
215
+ <PATH_ELEMENT>
216
+ <option name="myItemId" value="AutoAliCDN" />
217
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
218
+ </PATH_ELEMENT>
219
+ <PATH_ELEMENT>
220
+ <option name="myItemId" value="bin" />
221
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
222
+ </PATH_ELEMENT>
223
+ </PATH>
224
+ </subPane>
225
+ </pane>
226
+ </panes>
227
+ </component>
228
+ <component name="PropertiesComponent">
229
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
230
+ <property name="WebServerToolWindowFactoryState" value="false" />
231
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
232
+ <property name="settings.editor.splitter.proportion" value="0.2" />
233
+ <property name="js-jscs-nodeInterpreter" value="/usr/local/bin/node" />
234
+ </component>
235
+ <component name="RunManager">
236
+ <configuration default="true" type="CucumberRunConfigurationType" factoryName="Cucumber">
237
+ <predefined_log_file id="RUBY_CUCUMBER" enabled="true" />
238
+ <module name="" />
239
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
240
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
241
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
242
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
243
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
244
+ <envs />
245
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
246
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
247
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
248
+ <COVERAGE_PATTERN ENABLED="true">
249
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
250
+ </COVERAGE_PATTERN>
251
+ </EXTENSION>
252
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*.feature" />
253
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
254
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
255
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
256
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_TAGS_FILTER" VALUE="" />
257
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="TEST_NAME_FILTER" VALUE="" />
258
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_ARGS" VALUE="--color -r features" />
259
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
260
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
261
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="VERBOSE_OPTION" VALUE="false" />
262
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
263
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
264
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
265
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="CUCUMBER_RUNNER_PATH" VALUE="" />
266
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_RUNNER" VALUE="false" />
267
+ <CUCUMBER_RUN_CONFIG_SETTINGS_ID NAME="SETTINGS_VERSION" VALUE="2" />
268
+ <method />
269
+ </configuration>
270
+ <configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
271
+ <method />
272
+ </configuration>
273
+ <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
274
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
275
+ <module name="" />
276
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
277
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
278
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
279
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
280
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
281
+ <envs />
282
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
283
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
284
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
285
+ <COVERAGE_PATTERN ENABLED="true">
286
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
287
+ </COVERAGE_PATTERN>
288
+ </EXTENSION>
289
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
290
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
291
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
292
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
293
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
294
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
295
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
296
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
297
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
298
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
299
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
300
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
301
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
302
+ <method />
303
+ </configuration>
304
+ <configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
305
+ <module name="" />
306
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
307
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
308
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
309
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
310
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
311
+ <envs />
312
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
313
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
314
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
315
+ <COVERAGE_PATTERN ENABLED="true">
316
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
317
+ </COVERAGE_PATTERN>
318
+ </EXTENSION>
319
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
320
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
321
+ <method />
322
+ </configuration>
323
+ <configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
324
+ <predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
325
+ <module name="" />
326
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
327
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
328
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
329
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
330
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
331
+ <envs />
332
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
333
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
334
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
335
+ <COVERAGE_PATTERN ENABLED="true">
336
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
337
+ </COVERAGE_PATTERN>
338
+ </EXTENSION>
339
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
340
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
341
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
342
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
343
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
344
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
345
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
346
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
347
+ <RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
348
+ <method />
349
+ </configuration>
350
+ <configuration default="true" type="js.build_tools.gulp" factoryName="Gulp.js">
351
+ <method />
352
+ </configuration>
353
+ <configuration default="true" type="js.build_tools.npm" factoryName="npm">
354
+ <command value="run-script" />
355
+ <scripts />
356
+ <node-interpreter value="project" />
357
+ <envs />
358
+ <method />
359
+ </configuration>
360
+ </component>
361
+ <component name="ShelveChangesManager" show_recycled="false">
362
+ <option name="remove_strategy" value="false" />
363
+ </component>
364
+ <component name="TaskManager">
365
+ <task active="true" id="Default" summary="Default task">
366
+ <changelist id="d36b541e-976b-424c-9004-6c5dd6e4c4e8" name="Default" comment="" />
367
+ <created>1479542923884</created>
368
+ <option name="number" value="Default" />
369
+ <option name="presentableId" value="Default" />
370
+ <updated>1479542923884</updated>
371
+ <workItem from="1479542926311" duration="3407000" />
372
+ </task>
373
+ <servers />
374
+ </component>
375
+ <component name="TimeTrackingManager">
376
+ <option name="totallyTimeSpent" value="3407000" />
377
+ </component>
378
+ <component name="ToolWindowManager">
379
+ <frame x="4" y="23" width="1916" height="1057" extended-state="6" />
380
+ <editor active="true" />
381
+ <layout>
382
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.21237993" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
383
+ <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" />
384
+ <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" />
385
+ <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" />
386
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.3290735" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
387
+ <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" />
388
+ <window_info id="Run" 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="2" side_tool="false" content_ui="tabs" />
389
+ <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" />
390
+ <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" />
391
+ <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" />
392
+ <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" />
393
+ <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" />
394
+ <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" />
395
+ <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" />
396
+ <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" />
397
+ <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" />
398
+ <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" />
399
+ </layout>
400
+ </component>
401
+ <component name="Vcs.Log.UiProperties">
402
+ <option name="RECENTLY_FILTERED_USER_GROUPS">
403
+ <collection />
404
+ </option>
405
+ <option name="RECENTLY_FILTERED_BRANCH_GROUPS">
406
+ <collection />
407
+ </option>
408
+ </component>
409
+ <component name="VcsContentAnnotationSettings">
410
+ <option name="myLimit" value="2678400000" />
411
+ </component>
412
+ <component name="XDebuggerManager">
413
+ <breakpoint-manager />
414
+ <watches-manager />
415
+ </component>
416
+ <component name="editorHistoryManager">
417
+ <entry file="file://$PROJECT_DIR$/spec/auto_ali_cdn_spec.rb">
418
+ <provider selected="true" editor-type-id="text-editor">
419
+ <state relative-caret-position="162">
420
+ <caret line="9" column="4" selection-start-line="9" selection-start-column="4" selection-end-line="9" selection-end-column="4" />
421
+ <folding />
422
+ </state>
423
+ </provider>
424
+ </entry>
425
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
426
+ <provider selected="true" editor-type-id="text-editor">
427
+ <state relative-caret-position="0">
428
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
429
+ <folding />
430
+ </state>
431
+ </provider>
432
+ </entry>
433
+ <entry file="file://$PROJECT_DIR$/auto_ali_cdn.rb">
434
+ <provider selected="true" editor-type-id="text-editor">
435
+ <state relative-caret-position="36">
436
+ <caret line="2" column="11" selection-start-line="2" selection-start-column="11" selection-end-line="2" selection-end-column="11" />
437
+ <folding />
438
+ </state>
439
+ </provider>
440
+ </entry>
441
+ <entry file="file://$PROJECT_DIR$/bin/setup">
442
+ <provider selected="true" editor-type-id="text-editor">
443
+ <state relative-caret-position="0">
444
+ <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
445
+ <folding />
446
+ </state>
447
+ </provider>
448
+ </entry>
449
+ <entry file="file://$PROJECT_DIR$/bin/console">
450
+ <provider selected="true" editor-type-id="text-editor">
451
+ <state relative-caret-position="54">
452
+ <caret line="3" column="21" selection-start-line="3" selection-start-column="21" selection-end-line="3" selection-end-column="21" />
453
+ <folding />
454
+ </state>
455
+ </provider>
456
+ </entry>
457
+ <entry file="file://$PROJECT_DIR$/lib/auto_ali_cdn.rb">
458
+ <provider selected="true" editor-type-id="text-editor">
459
+ <state relative-caret-position="180">
460
+ <caret line="10" column="0" selection-start-line="10" selection-start-column="0" selection-end-line="10" selection-end-column="0" />
461
+ <folding />
462
+ </state>
463
+ </provider>
464
+ </entry>
465
+ <entry file="file://$PROJECT_DIR$/lib/auto-ali-cdn/version.rb">
466
+ <provider selected="true" editor-type-id="text-editor">
467
+ <state relative-caret-position="18">
468
+ <caret line="1" column="2" selection-start-line="1" selection-start-column="2" selection-end-line="1" selection-end-column="2" />
469
+ <folding />
470
+ </state>
471
+ </provider>
472
+ </entry>
473
+ <entry file="file://$PROJECT_DIR$/bin/2cdn">
474
+ <provider selected="true" editor-type-id="text-editor">
475
+ <state relative-caret-position="540">
476
+ <caret line="30" column="27" selection-start-line="30" selection-start-column="27" selection-end-line="30" selection-end-column="27" />
477
+ <folding />
478
+ </state>
479
+ </provider>
480
+ </entry>
481
+ <entry file="file://$PROJECT_DIR$/auto_ali_cdn.gemspec">
482
+ <provider selected="true" editor-type-id="text-editor">
483
+ <state relative-caret-position="108">
484
+ <caret line="6" column="28" selection-start-line="6" selection-start-column="28" selection-end-line="6" selection-end-column="28" />
485
+ <folding />
486
+ </state>
487
+ </provider>
488
+ </entry>
489
+ </component>
490
+ </project>
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.1.5
5
+ before_install: gem install bundler -v 1.13.6
@@ -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 xi.liu@abcomb.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,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in AutoAliCDN.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 木卯溪
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 liuxi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # AutoAliCDN
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/AutoAliCDN`. 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 'AutoAliCDN'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install AutoAliCDN
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]/AutoAliCDN. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -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,35 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'auto-ali-cdn/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "2cdn"
8
+ spec.version = AutoAliCDN::VERSION
9
+ spec.authors = ["liuxi"]
10
+ spec.email = ["15201280641@qq.com"]
11
+
12
+ spec.summary = %q{自动部署网站到服务器}
13
+ spec.description = %q{自动将本地代码上传到阿里云服务器}
14
+ spec.homepage = "https://github.com/mumaoxi/AutoAliCDN"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.executables = ["2cdn"]
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_development_dependency "bundler", "~> 1.13"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ spec.add_development_dependency "rspec", "~> 3.0"
35
+ end
data/bin/2cdn ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'auto_ali_cdn'
4
+
5
+ def help
6
+ puts <<-EOB
7
+ 2cdn v#{AutoAliCDN::VERSION}
8
+
9
+ Options:
10
+ -h, --help Show help
11
+ -V, --version Show program version
12
+
13
+ Basic usage:
14
+ 2cdn help # Show help
15
+ 2cdn upload # Upload resources to Aliyun Oss
16
+ EOB
17
+ end
18
+
19
+
20
+ if ARGV.empty? || ARGV[0] =~ /^(-h)|(--help)|(help)$/
21
+ help
22
+ exit
23
+ end
24
+
25
+ if ARGV[0] =~ /^(-v)|(--version)$/
26
+ puts AutoAliCDN::VERSION
27
+ exit
28
+ end
29
+
30
+ if ARGV[0] =~ /^upload$/
31
+ puts "current_path:#{`pwd`}"
32
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "auto_ali_cdn"
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
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,3 @@
1
+ module AutoAliCDN
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,12 @@
1
+ require "auto-ali-cdn/version"
2
+
3
+ module AutoAliCDN
4
+ # Your code goes here...
5
+ module_function
6
+
7
+ def test_c
8
+ puts 'test_cddd'
9
+ end
10
+
11
+
12
+ end
metadata ADDED
@@ -0,0 +1,108 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: 2cdn
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - liuxi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-11-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.13'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.13'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !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
+ description: "自动将本地代码上传到阿里云服务器"
56
+ email:
57
+ - 15201280641@qq.com
58
+ executables:
59
+ - 2cdn
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - ".gitignore"
64
+ - ".idea/AutoAliCDN.iml"
65
+ - ".idea/misc.xml"
66
+ - ".idea/modules.xml"
67
+ - ".idea/vcs.xml"
68
+ - ".idea/workspace.xml"
69
+ - ".rspec"
70
+ - ".travis.yml"
71
+ - CODE_OF_CONDUCT.md
72
+ - Gemfile
73
+ - LICENSE
74
+ - LICENSE.txt
75
+ - README.md
76
+ - Rakefile
77
+ - auto_ali_cdn.gemspec
78
+ - bin/2cdn
79
+ - bin/console
80
+ - bin/setup
81
+ - lib/auto-ali-cdn/version.rb
82
+ - lib/auto_ali_cdn.rb
83
+ homepage: https://github.com/mumaoxi/AutoAliCDN
84
+ licenses:
85
+ - MIT
86
+ metadata:
87
+ allowed_push_host: https://rubygems.org
88
+ post_install_message:
89
+ rdoc_options: []
90
+ require_paths:
91
+ - lib
92
+ required_ruby_version: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ requirements: []
103
+ rubyforge_project:
104
+ rubygems_version: 2.4.8
105
+ signing_key:
106
+ specification_version: 4
107
+ summary: "自动部署网站到服务器"
108
+ test_files: []