qcs 0.2.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e95698411245e411accab9fc382288025923440f9d79f04b5c842323bff537f1
4
+ data.tar.gz: 58e866ac7e6461e9323a51e7019e1bfb2e47bfa5c8ed41ec8f2a5d5773dd66c7
5
+ SHA512:
6
+ metadata.gz: 7210579fd1e59ebb6cf161929b13eed2a4860083494edd3fc4ebda42149e3a03126d4abfb09c3d0a03254bf042807af8193931d6b49fb7b002fe86b843ab86a8
7
+ data.tar.gz: cca1b04d9f1a8705cdd996ee6ad2ef1226f840e508a047d1d5a7fb2b639b1c7b68200cc12c646374a88fb5d9f563be57a38c946050e82c868b6b3f8b74d63a9a
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
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 qcs-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 file" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install qcs-0.1.0.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install qcs-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 qcs-0.1.0.gem to http://mygemserver.com" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run tests" fullCmd="test" taksId="test" /><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,6 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
5
+ </profile>
6
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.2.5" project-jdk-type="RUBY_SDK" />
7
+ </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/qcs.iml" filepath="$PROJECT_DIR$/.idea/qcs.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
data/.idea/qcs.iml ADDED
@@ -0,0 +1,15 @@
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.2.5" jdkType="RUBY_SDK" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.6, RVM: ruby-2.2.5) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, RVM: ruby-2.2.5) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, RVM: ruby-2.2.5) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.4.2, RVM: ruby-2.2.5) [gem]" level="application" />
14
+ </component>
15
+ </module>
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,365 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="7f203195-85f3-44ce-b323-6e6fb929d9b8" name="Default Changelist" comment="" />
5
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6
+ <option name="SHOW_DIALOG" value="false" />
7
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
8
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
9
+ <option name="LAST_RESOLUTION" value="IGNORE" />
10
+ </component>
11
+ <component name="CoverageDataManager">
12
+ <SUITE FILE_PATH="coverage/qcs@qcs.rcov" NAME="qcs Coverage Results" MODIFIED="1543770402141" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/lib" MODULE_NAME="qcs" />
13
+ </component>
14
+ <component name="FUSProjectUsageTrigger">
15
+ <session id="-444759614">
16
+ <usages-collector id="statistics.lifecycle.project">
17
+ <counts>
18
+ <entry key="project.closed" value="1" />
19
+ <entry key="project.open.time.0" value="1" />
20
+ <entry key="project.open.time.4" value="1" />
21
+ <entry key="project.opened" value="2" />
22
+ </counts>
23
+ </usages-collector>
24
+ <usages-collector id="statistics.file.extensions.open">
25
+ <counts>
26
+ <entry key="console" value="1" />
27
+ <entry key="qcs" value="1" />
28
+ <entry key="rb" value="1" />
29
+ <entry key="setup" value="1" />
30
+ </counts>
31
+ </usages-collector>
32
+ <usages-collector id="statistics.file.types.open">
33
+ <counts>
34
+ <entry key="PLAIN_TEXT" value="1" />
35
+ <entry key="Ruby" value="3" />
36
+ </counts>
37
+ </usages-collector>
38
+ <usages-collector id="statistics.file.extensions.edit">
39
+ <counts>
40
+ <entry key="rb" value="742" />
41
+ </counts>
42
+ </usages-collector>
43
+ <usages-collector id="statistics.file.types.edit">
44
+ <counts>
45
+ <entry key="Ruby" value="742" />
46
+ </counts>
47
+ </usages-collector>
48
+ </session>
49
+ <session id="-44048856">
50
+ <usages-collector id="statistics.lifecycle.project">
51
+ <counts>
52
+ <entry key="project.closed" value="1" />
53
+ <entry key="project.open.time.1" value="1" />
54
+ <entry key="project.open.time.17" value="1" />
55
+ <entry key="project.opened" value="2" />
56
+ </counts>
57
+ </usages-collector>
58
+ <usages-collector id="statistics.file.extensions.edit">
59
+ <counts>
60
+ <entry key="rb" value="1078" />
61
+ </counts>
62
+ </usages-collector>
63
+ <usages-collector id="statistics.file.types.edit">
64
+ <counts>
65
+ <entry key="Ruby" value="1078" />
66
+ </counts>
67
+ </usages-collector>
68
+ <usages-collector id="statistics.file.extensions.open">
69
+ <counts>
70
+ <entry key="Gemfile" value="1" />
71
+ <entry key="gemspec" value="1" />
72
+ <entry key="lock" value="1" />
73
+ <entry key="rb" value="4" />
74
+ </counts>
75
+ </usages-collector>
76
+ <usages-collector id="statistics.file.types.open">
77
+ <counts>
78
+ <entry key="PLAIN_TEXT" value="1" />
79
+ <entry key="Ruby" value="6" />
80
+ </counts>
81
+ </usages-collector>
82
+ </session>
83
+ </component>
84
+ <component name="FileEditorManager">
85
+ <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
86
+ <file pinned="false" current-in-tab="false">
87
+ <entry file="file://$PROJECT_DIR$/bin/console">
88
+ <provider selected="true" editor-type-id="text-editor" />
89
+ </entry>
90
+ </file>
91
+ <file pinned="false" current-in-tab="false">
92
+ <entry file="file://$PROJECT_DIR$/bin/qcs">
93
+ <provider selected="true" editor-type-id="text-editor" />
94
+ </entry>
95
+ </file>
96
+ <file pinned="false" current-in-tab="true">
97
+ <entry file="file://$PROJECT_DIR$/lib/qcs.rb">
98
+ <provider selected="true" editor-type-id="text-editor">
99
+ <state relative-caret-position="1378">
100
+ <caret line="120" column="7" selection-start-line="120" selection-start-column="7" selection-end-line="120" selection-end-column="7" />
101
+ </state>
102
+ </provider>
103
+ </entry>
104
+ </file>
105
+ <file pinned="false" current-in-tab="false">
106
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.2.5/lib/ruby/2.2.0/optparse.rb">
107
+ <provider selected="true" editor-type-id="text-editor">
108
+ <state relative-caret-position="278">
109
+ <caret line="1586" column="6" selection-start-line="1586" selection-start-column="6" selection-end-line="1586" selection-end-column="6" />
110
+ </state>
111
+ </provider>
112
+ </entry>
113
+ </file>
114
+ <file pinned="false" current-in-tab="false">
115
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.2.5/lib/ruby/2.2.0/optionparser.rb">
116
+ <provider selected="true" editor-type-id="text-editor" />
117
+ </entry>
118
+ </file>
119
+ <file pinned="false" current-in-tab="false">
120
+ <entry file="file://$PROJECT_DIR$/Gemfile">
121
+ <provider selected="true" editor-type-id="text-editor" />
122
+ </entry>
123
+ </file>
124
+ <file pinned="false" current-in-tab="false">
125
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
126
+ <provider selected="true" editor-type-id="text-editor" />
127
+ </entry>
128
+ </file>
129
+ <file pinned="false" current-in-tab="false">
130
+ <entry file="file://$PROJECT_DIR$/qcs.gemspec">
131
+ <provider selected="true" editor-type-id="text-editor">
132
+ <state relative-caret-position="105">
133
+ <caret line="7" column="35" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="35" />
134
+ </state>
135
+ </provider>
136
+ </entry>
137
+ </file>
138
+ </leaf>
139
+ </component>
140
+ <component name="FindInProjectRecents">
141
+ <findStrings>
142
+ <find>top</find>
143
+ </findStrings>
144
+ </component>
145
+ <component name="Git.Settings">
146
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
147
+ </component>
148
+ <component name="IdeDocumentHistory">
149
+ <option name="CHANGED_PATHS">
150
+ <list>
151
+ <option value="$PROJECT_DIR$/lib/qcs/version.rb" />
152
+ <option value="$PROJECT_DIR$/lib/qcs.rb" />
153
+ </list>
154
+ </option>
155
+ </component>
156
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
157
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
158
+ <component name="JsGulpfileManager">
159
+ <detection-done>true</detection-done>
160
+ <sorting>DEFINITION_ORDER</sorting>
161
+ </component>
162
+ <component name="ProjectFrameBounds">
163
+ <option name="x" value="-156" />
164
+ <option name="y" value="-1041" />
165
+ <option name="width" value="1440" />
166
+ <option name="height" value="948" />
167
+ </component>
168
+ <component name="ProjectLevelVcsManager">
169
+ <ConfirmationsSetting value="2" id="Add" />
170
+ </component>
171
+ <component name="ProjectView">
172
+ <navigator proportions="" version="1">
173
+ <foldersAlwaysOnTop value="true" />
174
+ </navigator>
175
+ <panes>
176
+ <pane id="Scope" />
177
+ <pane id="ProjectPane">
178
+ <subPane>
179
+ <expand>
180
+ <path>
181
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
182
+ <item name="qcs" type="462c0819:PsiDirectoryNode" />
183
+ </path>
184
+ <path>
185
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
186
+ <item name="qcs" type="462c0819:PsiDirectoryNode" />
187
+ <item name="bin" type="462c0819:PsiDirectoryNode" />
188
+ </path>
189
+ <path>
190
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
191
+ <item name="qcs" type="462c0819:PsiDirectoryNode" />
192
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
193
+ </path>
194
+ <path>
195
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
196
+ <item name="qcs" type="462c0819:PsiDirectoryNode" />
197
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
198
+ <item name="qcs" type="462c0819:PsiDirectoryNode" />
199
+ </path>
200
+ <path>
201
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
202
+ <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
203
+ </path>
204
+ <path>
205
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
206
+ <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
207
+ <item name="&lt; RVM: ruby-2.2.5 &gt;" type="70bed36:NamedLibraryElementNode" />
208
+ </path>
209
+ <path>
210
+ <item name="qcs" type="b2602c69:ProjectViewProjectNode" />
211
+ <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
212
+ <item name="&lt; RVM: ruby-2.2.5 &gt;" type="70bed36:NamedLibraryElementNode" />
213
+ <item name="2.2.0" type="462c0819:PsiDirectoryNode" />
214
+ </path>
215
+ </expand>
216
+ <select />
217
+ </subPane>
218
+ </pane>
219
+ </panes>
220
+ </component>
221
+ <component name="PropertiesComponent">
222
+ <property name="WebServerToolWindowFactoryState" value="false" />
223
+ <property name="last_opened_file_path" value="$PROJECT_DIR$" />
224
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
225
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
226
+ <property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
227
+ </component>
228
+ <component name="RunDashboard">
229
+ <option name="ruleStates">
230
+ <list>
231
+ <RuleState>
232
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
233
+ </RuleState>
234
+ <RuleState>
235
+ <option name="name" value="StatusDashboardGroupingRule" />
236
+ </RuleState>
237
+ </list>
238
+ </option>
239
+ </component>
240
+ <component name="RunManager">
241
+ <configuration name="qcs" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
242
+ <module name="qcs" />
243
+ <RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="" />
244
+ <RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/lib" />
245
+ <RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
246
+ <RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
247
+ <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
248
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
249
+ <EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
250
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" track_test_folders="true" runner="rcov">
251
+ <COVERAGE_PATTERN ENABLED="true">
252
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
253
+ </COVERAGE_PATTERN>
254
+ </EXTENSION>
255
+ <RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/lib/qcs.rb" />
256
+ <RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
257
+ <method v="2" />
258
+ </configuration>
259
+ <recent_temporary>
260
+ <list>
261
+ <item itemvalue="Ruby.qcs" />
262
+ </list>
263
+ </recent_temporary>
264
+ </component>
265
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
266
+ <component name="SvnConfiguration">
267
+ <configuration />
268
+ </component>
269
+ <component name="TaskManager">
270
+ <task active="true" id="Default" summary="Default task">
271
+ <changelist id="7f203195-85f3-44ce-b323-6e6fb929d9b8" name="Default Changelist" comment="" />
272
+ <created>1543762709540</created>
273
+ <option name="number" value="Default" />
274
+ <option name="presentableId" value="Default" />
275
+ <updated>1543762709540</updated>
276
+ <workItem from="1543762710737" duration="3660000" />
277
+ <workItem from="1543770067630" duration="785000" />
278
+ <workItem from="1543806912161" duration="4936000" />
279
+ <workItem from="1543819182085" duration="3282000" />
280
+ </task>
281
+ <servers />
282
+ </component>
283
+ <component name="TimeTrackingManager">
284
+ <option name="totallyTimeSpent" value="12663000" />
285
+ </component>
286
+ <component name="ToolWindowManager">
287
+ <frame x="-156" y="-1041" width="1440" height="948" extended-state="0" />
288
+ <editor active="true" />
289
+ <layout>
290
+ <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.26037195" />
291
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
292
+ <window_info id="Favorites" order="2" side_tool="true" />
293
+ <window_info anchor="bottom" id="Message" order="0" />
294
+ <window_info anchor="bottom" id="Find" order="1" />
295
+ <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.0067873304" />
296
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
297
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
298
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
299
+ <window_info anchor="bottom" id="TODO" order="6" />
300
+ <window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
301
+ <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
302
+ <window_info anchor="bottom" id="Version Control" order="9" />
303
+ <window_info anchor="bottom" id="Terminal" order="10" weight="0.3297587" />
304
+ <window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
305
+ <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
306
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
307
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
308
+ <window_info anchor="right" id="Database" order="3" />
309
+ </layout>
310
+ </component>
311
+ <component name="TypeScriptGeneratedFilesManager">
312
+ <option name="version" value="1" />
313
+ </component>
314
+ <component name="VcsContentAnnotationSettings">
315
+ <option name="myLimit" value="2678400000" />
316
+ </component>
317
+ <component name="editorHistoryManager">
318
+ <entry file="file://$PROJECT_DIR$/bin/console">
319
+ <provider selected="true" editor-type-id="text-editor" />
320
+ </entry>
321
+ <entry file="file://$PROJECT_DIR$/bin/qcs">
322
+ <provider selected="true" editor-type-id="text-editor" />
323
+ </entry>
324
+ <entry file="file://$PROJECT_DIR$/Gemfile">
325
+ <provider selected="true" editor-type-id="text-editor" />
326
+ </entry>
327
+ <entry file="file://$PROJECT_DIR$/bin/setup">
328
+ <provider selected="true" editor-type-id="text-editor" />
329
+ </entry>
330
+ <entry file="file://$PROJECT_DIR$/lib/qcs/version.rb">
331
+ <provider selected="true" editor-type-id="text-editor">
332
+ <state relative-caret-position="15">
333
+ <caret line="1" column="9" selection-start-line="1" selection-start-column="2" selection-end-line="1" selection-end-column="9" />
334
+ </state>
335
+ </provider>
336
+ </entry>
337
+ <entry file="file://$PROJECT_DIR$/qcs.gemspec">
338
+ <provider selected="true" editor-type-id="text-editor">
339
+ <state relative-caret-position="105">
340
+ <caret line="7" column="35" selection-start-line="7" selection-start-column="23" selection-end-line="7" selection-end-column="35" />
341
+ </state>
342
+ </provider>
343
+ </entry>
344
+ <entry file="file://$PROJECT_DIR$/Gemfile.lock">
345
+ <provider selected="true" editor-type-id="text-editor" />
346
+ </entry>
347
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.2.5/lib/ruby/2.2.0/optionparser.rb">
348
+ <provider selected="true" editor-type-id="text-editor" />
349
+ </entry>
350
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-2.2.5/lib/ruby/2.2.0/optparse.rb">
351
+ <provider selected="true" editor-type-id="text-editor">
352
+ <state relative-caret-position="278">
353
+ <caret line="1586" column="6" selection-start-line="1586" selection-start-column="6" selection-end-line="1586" selection-end-column="6" />
354
+ </state>
355
+ </provider>
356
+ </entry>
357
+ <entry file="file://$PROJECT_DIR$/lib/qcs.rb">
358
+ <provider selected="true" editor-type-id="text-editor">
359
+ <state relative-caret-position="1378">
360
+ <caret line="120" column="7" selection-start-line="120" selection-start-column="7" selection-end-line="120" selection-end-column="7" />
361
+ </state>
362
+ </provider>
363
+ </entry>
364
+ </component>
365
+ </project>
data/.travis.yml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.2.5
7
+ before_install: gem install bundler -v 1.16.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 xiongbengang@meituan.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,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in qcs.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,24 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ qcs (0.2.0)
5
+ colorize (~> 0.8.1)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ colorize (0.8.1)
11
+ minitest (5.10.3)
12
+ rake (10.4.2)
13
+
14
+ PLATFORMS
15
+ ruby
16
+
17
+ DEPENDENCIES
18
+ bundler (~> 1.16)
19
+ minitest (~> 5.0)
20
+ qcs!
21
+ rake (~> 10.0)
22
+
23
+ BUNDLED WITH
24
+ 1.16.6
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 bengang
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,39 @@
1
+ # qcs
2
+
3
+ #### 项目介绍
4
+ {**以下是码云平台说明,您可以替换为您的项目简介**
5
+ 码云是开源中国推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
6
+ 无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
7
+
8
+ #### 软件架构
9
+ 软件架构说明
10
+
11
+
12
+ #### 安装教程
13
+
14
+ 1. xxxx
15
+ 2. xxxx
16
+ 3. xxxx
17
+
18
+ #### 使用说明
19
+
20
+ 1. xxxx
21
+ 2. xxxx
22
+ 3. xxxx
23
+
24
+ #### 参与贡献
25
+
26
+ 1. Fork 本项目
27
+ 2. 新建 Feat_xxx 分支
28
+ 3. 提交代码
29
+ 4. 新建 Pull Request
30
+
31
+
32
+ #### 码云特技
33
+
34
+ 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
35
+ 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
36
+ 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
37
+ 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
38
+ 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
39
+ 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "qcs"
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/qcs ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require "qcs"
3
+
4
+ main ARGV
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 Qcs
2
+ VERSION = "0.2.0"
3
+ end
data/lib/qcs.rb ADDED
@@ -0,0 +1,128 @@
1
+ require "qcs/version"
2
+ require 'json'
3
+ require 'optparse'
4
+ require 'colorize'
5
+
6
+ class RepoInfo
7
+ attr_accessor :name, :url, :branch
8
+
9
+ def initialize(name, url, branch)
10
+ @name = name
11
+ @url = url
12
+ @branch = branch
13
+ end
14
+ end
15
+
16
+ class QCS
17
+ attr_accessor :repos, :mainPro
18
+
19
+ def initialize(filePath)
20
+ fileText = IO.read(filePath)
21
+ @repos = Array.new
22
+ JSON.parse(fileText).each do |repo|
23
+ name = repo["name"]
24
+ url = repo["url"]
25
+ branch = repo["branch"]
26
+ parsed = RepoInfo.new(name, url, branch)
27
+ @repos.push(parsed)
28
+ if repo["isMain"] == 1
29
+ @mainPro = parsed
30
+ end
31
+ end
32
+ end
33
+
34
+ def pull
35
+ @repos.each do |repoInfo|
36
+ unless Dir.exist?(repoInfo.name)
37
+ clone(repoInfo)
38
+ return
39
+ end
40
+
41
+ Dir.chdir(repoInfo.name) do
42
+ hint = "pull out #{repoInfo.name} ..."
43
+ puts(hint.green)
44
+ result = `git pull`
45
+ puts result
46
+ end
47
+ end
48
+ end
49
+
50
+ def install
51
+ @repos.each do |repoInfo|
52
+ clone repoInfo
53
+ end
54
+ Dir.chdir(@mainPro.name) do
55
+ puts "pod install ... #{Dir.pwd}"
56
+ result = `pod install`
57
+ puts result
58
+ end
59
+ end
60
+
61
+ def clone(repoInfo)
62
+ unless Dir.exist?(repoInfo.name)
63
+ hint = "clone #{repoInfo.name} ..."
64
+ puts hint
65
+ result = `git clone -b #{repoInfo.branch} #{repoInfo.url} #{repoInfo.name}`
66
+ puts result
67
+ end
68
+ end
69
+
70
+ def checkout(branch)
71
+ @repos.each do |repoInfo|
72
+ Dir.chdir(repoInfo.name) do
73
+ hint = "check out #{repoInfo.name} ..."
74
+ puts(hint.green)
75
+ result = `git checkout #{branch}`
76
+ puts result
77
+ end
78
+ end
79
+ end
80
+ end
81
+
82
+ def main(args)
83
+ opt_parser = OptionParser.new do |opt|
84
+ opt.banner = "Usage: #{"qcs COMMAND".green} [#{"OPTIONS".green}]"
85
+ opt.separator " "
86
+ opt.separator "Commands"
87
+ opt.separator " "
88
+ opt.separator " #{"+ pull".green} Fetch from and integrate with another repository or a local branch"
89
+ opt.separator " #{"+ checkout".green} Switch branches or restore working tree files"
90
+ opt.separator " "
91
+ opt.separator "Options"
92
+ opt.separator " "
93
+ opt.on_tail("-h", "--help", "help") do
94
+ puts opt_parser
95
+ end
96
+ opt.on_tail("-v", "--version", "Show the version of the tool") do
97
+ puts Qcs::VERSION
98
+ end
99
+ end
100
+
101
+ qcs = QCS.new("repos.json")
102
+ action = args[0]
103
+ case action
104
+ when "install"
105
+ qcs.install
106
+ when "pull"
107
+ qcs.pull
108
+ when "checkout"
109
+ if args.count < 2
110
+ hint = "Invalid branch or commitId"
111
+ STDERR.puts(hint.red)
112
+ exit
113
+ end
114
+ branch = args[1]
115
+ qcs.checkout(branch)
116
+ else
117
+ list = opt_parser.candidate(args[0])
118
+ if list.empty?
119
+ puts opt_parser
120
+ exit
121
+ end
122
+ opt_parser.parse!(args)
123
+ end
124
+ end
125
+
126
+
127
+
128
+
data/qcs-0.1.0.gem ADDED
Binary file
data/qcs.gemspec ADDED
@@ -0,0 +1,43 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "qcs/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "qcs"
8
+ spec.version = Qcs::VERSION
9
+ spec.authors = ["bengang"]
10
+ spec.email = ["xiongbengang@meituan.com"]
11
+
12
+ spec.summary = %q{manage project qcs}
13
+ spec.description = %q{easy way to manage project qcs.}
14
+ spec.homepage = "https://gitee.com/bengang/qcs"
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"] = "http://mygemserver.com"
21
+
22
+ # spec.metadata["homepage_uri"] = spec.homepage
23
+ # spec.metadata["source_code_uri"] = "https://gitee.com/bengang/qcs.git"
24
+ # spec.metadata["changelog_uri"] = "https://gitee.com/bengang/qcs.git"
25
+ # else
26
+ # raise "RubyGems 2.0 or newer is required to protect against " \
27
+ # "public gem pushes."
28
+ # end
29
+
30
+ # Specify which files should be added to the gem when it is released.
31
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
32
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
33
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
34
+ end
35
+ spec.bindir = "bin"
36
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
37
+ spec.require_paths = ["lib"]
38
+
39
+ spec.add_development_dependency "bundler", "~> 1.16"
40
+ spec.add_development_dependency "rake", "~> 10.0"
41
+ spec.add_development_dependency "minitest", "~> 5.0"
42
+ spec.add_dependency "colorize", "~> 0.8.1"
43
+ end
metadata ADDED
@@ -0,0 +1,125 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: qcs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - bengang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-12-03 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'
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'
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
+ - !ruby/object:Gem::Dependency
56
+ name: colorize
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.8.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.8.1
69
+ description: easy way to manage project qcs.
70
+ email:
71
+ - xiongbengang@meituan.com
72
+ executables:
73
+ - console
74
+ - qcs
75
+ - setup
76
+ extensions: []
77
+ extra_rdoc_files: []
78
+ files:
79
+ - ".gitignore"
80
+ - ".idea/.rakeTasks"
81
+ - ".idea/inspectionProfiles/Project_Default.xml"
82
+ - ".idea/misc.xml"
83
+ - ".idea/modules.xml"
84
+ - ".idea/qcs.iml"
85
+ - ".idea/vcs.xml"
86
+ - ".idea/workspace.xml"
87
+ - ".travis.yml"
88
+ - CODE_OF_CONDUCT.md
89
+ - Gemfile
90
+ - Gemfile.lock
91
+ - LICENSE.txt
92
+ - README.md
93
+ - Rakefile
94
+ - bin/console
95
+ - bin/qcs
96
+ - bin/setup
97
+ - lib/qcs.rb
98
+ - lib/qcs/version.rb
99
+ - qcs-0.1.0.gem
100
+ - qcs.gemspec
101
+ homepage: https://gitee.com/bengang/qcs
102
+ licenses:
103
+ - MIT
104
+ metadata: {}
105
+ post_install_message:
106
+ rdoc_options: []
107
+ require_paths:
108
+ - lib
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ requirements: []
120
+ rubyforge_project:
121
+ rubygems_version: 2.7.8
122
+ signing_key:
123
+ specification_version: 4
124
+ summary: manage project qcs
125
+ test_files: []