vam 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/vam.iml +26 -1
- data/.idea/workspace.xml +328 -5
- data/lib/vam/cli.rb +1 -2
- data/lib/vam/vam.rb +39 -3
- data/lib/vam/version.rb +1 -1
- data/vam.gemspec +5 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d00cd064591a60ed9bfdb7dff74b88cb4d6903fd
|
4
|
+
data.tar.gz: 2d4bfc0f70f41372cbc554971cfff080b586ac4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca2ab17c4f78595a193b80ea386338b2fe427d080c675ddf9676b4bc02fc093f9bdb28904e72afb535e49c3da6823444ca99a180e29baec5095c3f0ae5c7c152
|
7
|
+
data.tar.gz: b9474e2d8e6988e556d6afdd3fc38cf69c0440a52b2d7420651dc17ee983d1d66e436ee38b35d3f7610950b26f4080c74e4cf12fde443c5052834e9612acc3d8
|
data/.idea/vam.iml
CHANGED
@@ -9,6 +9,30 @@
|
|
9
9
|
</configuration>
|
10
10
|
</facet>
|
11
11
|
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="test" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
14
|
+
<module name="vam" />
|
15
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
17
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
22
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
23
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
24
|
+
<COVERAGE_PATTERN ENABLED="true">
|
25
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
26
|
+
</COVERAGE_PATTERN>
|
27
|
+
</EXTENSION>
|
28
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
29
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/test.rb" />
|
30
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
31
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
32
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
33
|
+
<method />
|
34
|
+
</configuration>
|
35
|
+
</component>
|
12
36
|
<component name="NewModuleRootManager">
|
13
37
|
<content url="file://$MODULE_DIR$">
|
14
38
|
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
@@ -16,7 +40,7 @@
|
|
16
40
|
<orderEntry type="jdk" jdkName="rbenv: 2.1.1" jdkType="RUBY_SDK" />
|
17
41
|
<orderEntry type="sourceFolder" forTests="false" />
|
18
42
|
<orderEntry type="module-library">
|
19
|
-
<library name="vam (v0.0.
|
43
|
+
<library name="vam (v0.0.2, /wrd/prj/vam) [path][gem]">
|
20
44
|
<CLASSES>
|
21
45
|
<root url="file://$MODULE_DIR$/bin" />
|
22
46
|
<root url="file://$MODULE_DIR$/lib" />
|
@@ -29,6 +53,7 @@
|
|
29
53
|
</SOURCES>
|
30
54
|
</library>
|
31
55
|
</orderEntry>
|
56
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.2, rbenv: 2.1.1) [gem]" level="application" />
|
32
57
|
<orderEntry type="library" scope="PROVIDED" name="colorize (v0.7.3, rbenv: 2.1.1) [gem]" level="application" />
|
33
58
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.3.1, rbenv: 2.1.1) [gem]" level="application" />
|
34
59
|
</component>
|
data/.idea/workspace.xml
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
+
<list default="true" id="c861b24b-c769-4b19-beef-e84d719951e5" name="Default" comment="" />
|
5
|
+
<ignored path="vam.iws" />
|
6
|
+
<ignored path=".idea/workspace.xml" />
|
4
7
|
<option name="TRACKING_ENABLED" value="true" />
|
5
8
|
<option name="SHOW_DIALOG" value="false" />
|
6
9
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -8,12 +11,63 @@
|
|
8
11
|
<option name="LAST_RESOLUTION" value="IGNORE" />
|
9
12
|
</component>
|
10
13
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
14
|
+
<component name="CoverageDataManager">
|
15
|
+
<SUITE FILE_PATH="coverage/vam@test.coverage" NAME="test Coverage Results" MODIFIED="1401874178806" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/test" MODULE_NAME="vam" />
|
16
|
+
</component>
|
11
17
|
<component name="CreatePatchCommitExecutor">
|
12
18
|
<option name="PATCH_PATH" value="" />
|
13
19
|
</component>
|
14
20
|
<component name="DaemonCodeAnalyzer">
|
15
21
|
<disable_hints />
|
16
22
|
</component>
|
23
|
+
<component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
|
24
|
+
<component name="FavoritesManager">
|
25
|
+
<favorites_list name="vam" />
|
26
|
+
</component>
|
27
|
+
<component name="FileEditorManager">
|
28
|
+
<leaf />
|
29
|
+
</component>
|
30
|
+
<component name="FindManager">
|
31
|
+
<FindUsagesManager>
|
32
|
+
<setting name="OPEN_NEW_TAB" value="true" />
|
33
|
+
</FindUsagesManager>
|
34
|
+
</component>
|
35
|
+
<component name="IdeDocumentHistory">
|
36
|
+
<option name="changedFiles">
|
37
|
+
<list>
|
38
|
+
<option value="$PROJECT_DIR$/lib/vam/version.rb" />
|
39
|
+
<option value="$PROJECT_DIR$/vam.gemspec" />
|
40
|
+
<option value="$PROJECT_DIR$/lib/vam/cli.rb" />
|
41
|
+
<option value="$PROJECT_DIR$/test/test.rb" />
|
42
|
+
<option value="$PROJECT_DIR$/lib/vam/vam.rb" />
|
43
|
+
</list>
|
44
|
+
</option>
|
45
|
+
</component>
|
46
|
+
<component name="ProjectFrameBounds">
|
47
|
+
<option name="x" value="4" />
|
48
|
+
<option name="y" value="22" />
|
49
|
+
<option name="width" value="1916" />
|
50
|
+
<option name="height" value="1058" />
|
51
|
+
</component>
|
52
|
+
<component name="ProjectInspectionProfilesVisibleTreeState">
|
53
|
+
<entry key="Project Default">
|
54
|
+
<profile-state>
|
55
|
+
<expanded-state>
|
56
|
+
<State>
|
57
|
+
<id />
|
58
|
+
</State>
|
59
|
+
<State>
|
60
|
+
<id>Spelling</id>
|
61
|
+
</State>
|
62
|
+
</expanded-state>
|
63
|
+
<selected-state>
|
64
|
+
<State>
|
65
|
+
<id>Spelling</id>
|
66
|
+
</State>
|
67
|
+
</selected-state>
|
68
|
+
</profile-state>
|
69
|
+
</entry>
|
70
|
+
</component>
|
17
71
|
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
18
72
|
<OptionsSetting value="true" id="Add" />
|
19
73
|
<OptionsSetting value="true" id="Remove" />
|
@@ -27,20 +81,239 @@
|
|
27
81
|
<component name="ProjectReloadState">
|
28
82
|
<option name="STATE" value="0" />
|
29
83
|
</component>
|
84
|
+
<component name="ProjectView">
|
85
|
+
<navigator currentView="ProjectPane" proportions="" version="1">
|
86
|
+
<flattenPackages />
|
87
|
+
<showMembers />
|
88
|
+
<showModules />
|
89
|
+
<showLibraryContents />
|
90
|
+
<hideEmptyPackages />
|
91
|
+
<abbreviatePackageNames />
|
92
|
+
<autoscrollToSource />
|
93
|
+
<autoscrollFromSource />
|
94
|
+
<sortByType />
|
95
|
+
</navigator>
|
96
|
+
<panes>
|
97
|
+
<pane id="ProjectPane">
|
98
|
+
<subPane>
|
99
|
+
<PATH>
|
100
|
+
<PATH_ELEMENT>
|
101
|
+
<option name="myItemId" value="vam" />
|
102
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
103
|
+
</PATH_ELEMENT>
|
104
|
+
</PATH>
|
105
|
+
<PATH>
|
106
|
+
<PATH_ELEMENT>
|
107
|
+
<option name="myItemId" value="vam" />
|
108
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
109
|
+
</PATH_ELEMENT>
|
110
|
+
<PATH_ELEMENT>
|
111
|
+
<option name="myItemId" value="vam" />
|
112
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
113
|
+
</PATH_ELEMENT>
|
114
|
+
</PATH>
|
115
|
+
<PATH>
|
116
|
+
<PATH_ELEMENT>
|
117
|
+
<option name="myItemId" value="vam" />
|
118
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
119
|
+
</PATH_ELEMENT>
|
120
|
+
<PATH_ELEMENT>
|
121
|
+
<option name="myItemId" value="vam" />
|
122
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
123
|
+
</PATH_ELEMENT>
|
124
|
+
<PATH_ELEMENT>
|
125
|
+
<option name="myItemId" value="lib" />
|
126
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
127
|
+
</PATH_ELEMENT>
|
128
|
+
</PATH>
|
129
|
+
<PATH>
|
130
|
+
<PATH_ELEMENT>
|
131
|
+
<option name="myItemId" value="vam" />
|
132
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
133
|
+
</PATH_ELEMENT>
|
134
|
+
<PATH_ELEMENT>
|
135
|
+
<option name="myItemId" value="vam" />
|
136
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
137
|
+
</PATH_ELEMENT>
|
138
|
+
<PATH_ELEMENT>
|
139
|
+
<option name="myItemId" value="lib" />
|
140
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
141
|
+
</PATH_ELEMENT>
|
142
|
+
<PATH_ELEMENT>
|
143
|
+
<option name="myItemId" value="vam" />
|
144
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
145
|
+
</PATH_ELEMENT>
|
146
|
+
</PATH>
|
147
|
+
</subPane>
|
148
|
+
</pane>
|
149
|
+
<pane id="Scope" />
|
150
|
+
</panes>
|
151
|
+
</component>
|
30
152
|
<component name="PropertiesComponent">
|
31
|
-
<property name="options.lastSelected" value="
|
153
|
+
<property name="options.lastSelected" value="Errors" />
|
32
154
|
<property name="options.splitter.main.proportions" value="0.3" />
|
33
|
-
<property name="options.splitter.details.proportions" value="0.
|
155
|
+
<property name="options.splitter.details.proportions" value="0.42737094" />
|
34
156
|
<property name="options.searchVisible" value="true" />
|
157
|
+
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
158
|
+
<property name="WebServerToolWindowFactoryState" value="false" />
|
159
|
+
<property name="recentsLimit" value="5" />
|
35
160
|
</component>
|
36
|
-
<component name="RunManager">
|
37
|
-
<
|
161
|
+
<component name="RunManager" selected="Ruby.test">
|
162
|
+
<configuration default="false" name="test" type="RubyRunConfigurationType" factoryName="Ruby" temporary="true">
|
163
|
+
<module name="vam" />
|
164
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
165
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$/test" />
|
166
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
167
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
168
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
169
|
+
<envs />
|
170
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
171
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
172
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
173
|
+
<COVERAGE_PATTERN ENABLED="true">
|
174
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
175
|
+
</COVERAGE_PATTERN>
|
176
|
+
</EXTENSION>
|
177
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
178
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$MODULE_DIR$/test/test.rb" />
|
179
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
180
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
181
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
182
|
+
<method />
|
183
|
+
</configuration>
|
184
|
+
<configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
|
185
|
+
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
186
|
+
<module name="" />
|
187
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
188
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
189
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
190
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
191
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
192
|
+
<envs />
|
193
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
194
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
195
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
196
|
+
<COVERAGE_PATTERN ENABLED="true">
|
197
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
198
|
+
</COVERAGE_PATTERN>
|
199
|
+
</EXTENSION>
|
200
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
201
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
202
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
203
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
204
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
205
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
206
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
207
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
208
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
209
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
|
210
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
211
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
212
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
213
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
214
|
+
<method />
|
215
|
+
</configuration>
|
216
|
+
<configuration default="true" type="RubyRunConfigurationType" factoryName="Ruby">
|
217
|
+
<module name="" />
|
218
|
+
<RUBY_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
219
|
+
<RUBY_RUN_CONFIG NAME="WORK DIR" VALUE="" />
|
220
|
+
<RUBY_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
221
|
+
<RUBY_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
222
|
+
<RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
223
|
+
<envs />
|
224
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
225
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
226
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
227
|
+
<COVERAGE_PATTERN ENABLED="true">
|
228
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
229
|
+
</COVERAGE_PATTERN>
|
230
|
+
</EXTENSION>
|
231
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
232
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="" />
|
233
|
+
<RUBY_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="" />
|
234
|
+
<method />
|
235
|
+
</configuration>
|
236
|
+
<configuration default="true" type="JavascriptDebugType" factoryName="JavaScript Debug">
|
237
|
+
<method />
|
238
|
+
</configuration>
|
239
|
+
<configuration default="true" type="TestUnitRunConfigurationType" factoryName="Test::Unit/Shoulda/Minitest">
|
240
|
+
<predefined_log_file id="RUBY_TESTUNIT" enabled="true" />
|
241
|
+
<module name="" />
|
242
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
243
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="" />
|
244
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
245
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
246
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
247
|
+
<envs />
|
248
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
249
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
250
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
251
|
+
<COVERAGE_PATTERN ENABLED="true">
|
252
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
253
|
+
</COVERAGE_PATTERN>
|
254
|
+
</EXTENSION>
|
255
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
256
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
257
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="" />
|
258
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="" />
|
259
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_METHOD_NAME" VALUE="" />
|
260
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
261
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
|
262
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
263
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
264
|
+
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_OPTIONS" VALUE="" />
|
265
|
+
<method />
|
266
|
+
</configuration>
|
267
|
+
<list size="1">
|
268
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.test" />
|
269
|
+
</list>
|
270
|
+
<recent_temporary>
|
271
|
+
<list size="1">
|
272
|
+
<item index="0" class="java.lang.String" itemvalue="Ruby.test" />
|
273
|
+
</list>
|
274
|
+
</recent_temporary>
|
38
275
|
</component>
|
39
276
|
<component name="ShelveChangesManager" show_recycled="false" />
|
40
277
|
<component name="TaskManager">
|
41
|
-
<task active="true" id="Default" summary="Default task"
|
278
|
+
<task active="true" id="Default" summary="Default task">
|
279
|
+
<changelist id="c861b24b-c769-4b19-beef-e84d719951e5" name="Default" comment="" />
|
280
|
+
<created>1401868864610</created>
|
281
|
+
<updated>1401868864610</updated>
|
282
|
+
</task>
|
42
283
|
<servers />
|
43
284
|
</component>
|
285
|
+
<component name="ToolWindowManager">
|
286
|
+
<frame x="4" y="22" width="1916" height="1058" extended-state="6" />
|
287
|
+
<editor active="false" />
|
288
|
+
<layout>
|
289
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
290
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32954547" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
291
|
+
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
292
|
+
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
293
|
+
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
294
|
+
<window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2497332" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
295
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
296
|
+
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
297
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
|
298
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32954547" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
299
|
+
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
|
300
|
+
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
301
|
+
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
302
|
+
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
303
|
+
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
304
|
+
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
305
|
+
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
|
306
|
+
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
|
307
|
+
</layout>
|
308
|
+
</component>
|
309
|
+
<component name="Vcs.Log.UiProperties">
|
310
|
+
<option name="RECENTLY_FILTERED_USER_GROUPS">
|
311
|
+
<collection />
|
312
|
+
</option>
|
313
|
+
<option name="RECENTLY_FILTERED_BRANCH_GROUPS">
|
314
|
+
<collection />
|
315
|
+
</option>
|
316
|
+
</component>
|
44
317
|
<component name="VcsContentAnnotationSettings">
|
45
318
|
<option name="myLimit" value="2678400000" />
|
46
319
|
</component>
|
@@ -52,5 +325,55 @@
|
|
52
325
|
<component name="XDebuggerManager">
|
53
326
|
<breakpoint-manager />
|
54
327
|
</component>
|
328
|
+
<component name="editorHistoryManager">
|
329
|
+
<entry file="file://$PROJECT_DIR$/lib/vam/version.rb">
|
330
|
+
<provider selected="true" editor-type-id="text-editor">
|
331
|
+
<state vertical-scroll-proportion="0.021276595" vertical-offset="0" max-vertical-offset="940">
|
332
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
333
|
+
<folding />
|
334
|
+
</state>
|
335
|
+
</provider>
|
336
|
+
</entry>
|
337
|
+
<entry file="file://$PROJECT_DIR$/lib/vam/dsl.rb">
|
338
|
+
<provider selected="true" editor-type-id="text-editor">
|
339
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="940">
|
340
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
341
|
+
<folding />
|
342
|
+
</state>
|
343
|
+
</provider>
|
344
|
+
</entry>
|
345
|
+
<entry file="file://$PROJECT_DIR$/lib/vam/constants.rb">
|
346
|
+
<provider selected="true" editor-type-id="text-editor">
|
347
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="940">
|
348
|
+
<caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
|
349
|
+
<folding />
|
350
|
+
</state>
|
351
|
+
</provider>
|
352
|
+
</entry>
|
353
|
+
<entry file="file://$PROJECT_DIR$/vam.gemspec">
|
354
|
+
<provider selected="true" editor-type-id="text-editor">
|
355
|
+
<state vertical-scroll-proportion="0.40425533" vertical-offset="0" max-vertical-offset="940">
|
356
|
+
<caret line="19" column="0" selection-start-line="19" selection-start-column="0" selection-end-line="19" selection-end-column="0" />
|
357
|
+
<folding />
|
358
|
+
</state>
|
359
|
+
</provider>
|
360
|
+
</entry>
|
361
|
+
<entry file="file://$PROJECT_DIR$/lib/vam/vam.rb">
|
362
|
+
<provider selected="true" editor-type-id="text-editor">
|
363
|
+
<state vertical-scroll-proportion="0.14893617" vertical-offset="1460" max-vertical-offset="2700">
|
364
|
+
<caret line="80" column="7" selection-start-line="80" selection-start-column="7" selection-end-line="80" selection-end-column="7" />
|
365
|
+
<folding />
|
366
|
+
</state>
|
367
|
+
</provider>
|
368
|
+
</entry>
|
369
|
+
<entry file="file://$PROJECT_DIR$/lib/vam/cli.rb">
|
370
|
+
<provider selected="true" editor-type-id="text-editor">
|
371
|
+
<state vertical-scroll-proportion="0.40425533" vertical-offset="0" max-vertical-offset="940">
|
372
|
+
<caret line="19" column="66" selection-start-line="19" selection-start-column="66" selection-end-line="19" selection-end-column="66" />
|
373
|
+
<folding />
|
374
|
+
</state>
|
375
|
+
</provider>
|
376
|
+
</entry>
|
377
|
+
</component>
|
55
378
|
</project>
|
56
379
|
|
data/lib/vam/cli.rb
CHANGED
@@ -17,7 +17,7 @@ module Vam
|
|
17
17
|
vams = Dsl.evaluate vamfile, vamfile+'.lock'
|
18
18
|
|
19
19
|
for vam in vams
|
20
|
-
dest = File.join
|
20
|
+
dest = File.join Dir.pwd, 'vendor', 'assets', 'components'
|
21
21
|
vam.install dest
|
22
22
|
end
|
23
23
|
|
@@ -25,5 +25,4 @@ module Vam
|
|
25
25
|
|
26
26
|
|
27
27
|
end
|
28
|
-
|
29
28
|
end
|
data/lib/vam/vam.rb
CHANGED
@@ -34,7 +34,7 @@ module Vam
|
|
34
34
|
|
35
35
|
|
36
36
|
def local(local, main: false)
|
37
|
-
filename = main ? 'index'+File.extname(local): File.basename(local)
|
37
|
+
filename = main ? 'index'+File.extname(local) : File.basename(local)
|
38
38
|
@locals << {local: local, filename: filename}
|
39
39
|
end
|
40
40
|
|
@@ -42,6 +42,8 @@ module Vam
|
|
42
42
|
def install(dest)
|
43
43
|
puts "===Install #{@name}===".colorize(:blue)
|
44
44
|
|
45
|
+
@dest = dest
|
46
|
+
|
45
47
|
dest = File.join dest, @name
|
46
48
|
FileUtils.mkdir_p dest unless File.exist? dest
|
47
49
|
|
@@ -58,6 +60,8 @@ module Vam
|
|
58
60
|
install_url dest, url
|
59
61
|
end
|
60
62
|
|
63
|
+
@dest = nil
|
64
|
+
|
61
65
|
end
|
62
66
|
|
63
67
|
|
@@ -68,8 +72,11 @@ module Vam
|
|
68
72
|
for f in Dir.glob File.join(local_path, '*')
|
69
73
|
FileUtils.cp_r f, dest
|
70
74
|
end
|
75
|
+
patch_dir dest
|
71
76
|
else
|
72
|
-
|
77
|
+
of = File.join dest, local[:filename]
|
78
|
+
FileUtils.cp local_path, of
|
79
|
+
patch of
|
73
80
|
end
|
74
81
|
end
|
75
82
|
|
@@ -85,7 +92,36 @@ module Vam
|
|
85
92
|
|
86
93
|
|
87
94
|
def install_url(dest, url)
|
88
|
-
|
95
|
+
of = File.join dest, url[:filename]
|
96
|
+
`wget #{url[:url]} -O #{of}`
|
97
|
+
patch of
|
98
|
+
end
|
99
|
+
|
100
|
+
|
101
|
+
def patch_dir(dir)
|
102
|
+
for of in Dir.glob("#{dir}/**/*.css")
|
103
|
+
patch of
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
|
108
|
+
def patch(of)
|
109
|
+
unless of.end_with? '.css'
|
110
|
+
return
|
111
|
+
end
|
112
|
+
content = File.read of, encoding: 'utf-8'
|
113
|
+
cwd = Dir.getwd
|
114
|
+
Dir.chdir File.dirname(of)
|
115
|
+
content = content.gsub /url\('?([\w|\.|\/|#|\?]+)'?\)/ do |m|
|
116
|
+
location = File.expand_path $1
|
117
|
+
location = location[@dest.length+1..-1]
|
118
|
+
"asset-url('#{location}')"
|
119
|
+
end
|
120
|
+
Dir.chdir cwd
|
121
|
+
File.open of+'.scss', 'w:utf-8' do |f|
|
122
|
+
f.write content
|
123
|
+
end
|
124
|
+
File.delete of
|
89
125
|
end
|
90
126
|
|
91
127
|
|
data/lib/vam/version.rb
CHANGED
data/vam.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'vam/version'
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = "vam"
|
8
8
|
spec.version = Vam::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
9
|
+
spec.authors = ['Xingjian Xu']
|
10
|
+
spec.email = ['dotswing@gmail.com']
|
11
11
|
spec.summary = %q{Vendor assets managment}
|
12
12
|
spec.description = %q{Vendor assets managment tool}
|
13
13
|
spec.homepage = "http://github.com/dotswing/vam"
|
@@ -18,8 +18,8 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency
|
22
|
-
spec.add_development_dependency
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.6'
|
22
|
+
spec.add_development_dependency 'rake', '~> 10.1'
|
23
23
|
|
24
|
-
spec.add_runtime_dependency 'colorize',
|
24
|
+
spec.add_runtime_dependency 'colorize', '~> 0.7'
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Xingjian Xu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|