script_executor 1.6.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/jsTestFinder.xml +17 -0
- data/.idea/script_executor.iml +35 -42
- data/.idea/workspace.xml +532 -276
- data/CHANGES +5 -1
- data/Gemfile +5 -3
- data/Gemfile.lock +25 -16
- data/lib/script_executor/base_provision.rb +2 -2
- data/lib/script_executor/script_locator.rb +24 -48
- data/lib/script_executor/scripts_parser.rb +44 -0
- data/lib/script_executor/scripts_transformer.rb +25 -0
- data/lib/script_executor/version.rb +1 -1
- data/script_executor.gemspec +4 -1
- data/spec/base_provision_spec.rb +18 -0
- data/spec/executable_spec.rb +6 -8
- data/spec/script_locator_spec.rb +12 -15
- data/spec/scripts_parser_spec.rb +17 -0
- data/spec/spec_helper.rb +2 -1
- data/spec/support/base.conf.json +16 -0
- data/spec/support/big_script.sh +96 -0
- data/spec/{test.conf → support/test.conf} +0 -0
- data/spec/support/test2.conf +8 -0
- metadata +61 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79cad2a58055e9c2892db2123e386cfb75310f4b
|
4
|
+
data.tar.gz: 78e30e4ec11ad186f32d6c66ccee56fec29cb7fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 084bcceacbe24f7b80b17eddf02459971f68bc4dba99f735c4e6e17cfb53eb751edd6683b3f1e687613cc905d4e0059b5b912ea66d98ebcb7b666fe8e4653a1f
|
7
|
+
data.tar.gz: 913c4bd2928ab53368224e803e90f0ca53d36e40c0239d63242c8040ba3873e164a15ddf219c3bc080e9ba87e0ece7dccdf4b4b91853cab26cea34f3d56ce5d5
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="JavascriptTestFinderProjectComponent">
|
4
|
+
<option name="productionExtensions">
|
5
|
+
<list>
|
6
|
+
<option value=".js" />
|
7
|
+
<option value=".jsx" />
|
8
|
+
</list>
|
9
|
+
</option>
|
10
|
+
<option name="testExtensions">
|
11
|
+
<list>
|
12
|
+
<option value=".spec.js" />
|
13
|
+
<option value=".jstd" />
|
14
|
+
</list>
|
15
|
+
</option>
|
16
|
+
</component>
|
17
|
+
</project>
|
data/.idea/script_executor.iml
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
</facet>
|
11
11
|
</component>
|
12
12
|
<component name="ModuleRunConfigurationManager">
|
13
|
-
<configuration default="false" name="
|
13
|
+
<configuration default="false" name="MyExecutable: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
14
14
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
15
15
|
<module name="script_executor" />
|
16
16
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -32,7 +32,7 @@
|
|
32
32
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
33
33
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
34
34
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
35
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
35
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable" />
|
36
36
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
37
37
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
38
38
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -41,11 +41,9 @@
|
|
41
41
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
42
42
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
43
43
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
44
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
45
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
46
44
|
<method />
|
47
45
|
</configuration>
|
48
|
-
<configuration default="false" name="
|
46
|
+
<configuration default="false" name="Run spec 'script_locator_spec': script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
49
47
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
50
48
|
<module name="script_executor" />
|
51
49
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -56,7 +54,7 @@
|
|
56
54
|
<envs>
|
57
55
|
<env name="JRUBY_OPTS" value="-X+O" />
|
58
56
|
</envs>
|
59
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
57
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
60
58
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
61
59
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
62
60
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -64,10 +62,10 @@
|
|
64
62
|
</COVERAGE_PATTERN>
|
65
63
|
</EXTENSION>
|
66
64
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
67
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
65
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
68
66
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
69
67
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
70
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
68
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
71
69
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
72
70
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
73
71
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -76,11 +74,9 @@
|
|
76
74
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
77
75
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
78
76
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
79
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
80
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
81
77
|
<method />
|
82
78
|
</configuration>
|
83
|
-
<configuration default="false" name="
|
79
|
+
<configuration default="false" name="MyScriptLocator#evaluate_script_body locates script inside external file and evaluates it as string: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
84
80
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
85
81
|
<module name="script_executor" />
|
86
82
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -91,7 +87,7 @@
|
|
91
87
|
<envs>
|
92
88
|
<env name="JRUBY_OPTS" value="-X+O" />
|
93
89
|
</envs>
|
94
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
90
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
95
91
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
96
92
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
97
93
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -99,10 +95,10 @@
|
|
99
95
|
</COVERAGE_PATTERN>
|
100
96
|
</EXTENSION>
|
101
97
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
102
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
98
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
103
99
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
104
100
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
105
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
101
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyScriptLocator#evaluate_script_body locates script inside external file and evaluates it as string" />
|
106
102
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
107
103
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
108
104
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -111,11 +107,9 @@
|
|
111
107
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
112
108
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
113
109
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
114
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
115
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
116
110
|
<method />
|
117
111
|
</configuration>
|
118
|
-
<configuration default="false" name="
|
112
|
+
<configuration default="false" name="Run spec 'executable_spec': script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
119
113
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
120
114
|
<module name="script_executor" />
|
121
115
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -134,10 +128,10 @@
|
|
134
128
|
</COVERAGE_PATTERN>
|
135
129
|
</EXTENSION>
|
136
130
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
137
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
131
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
138
132
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
139
133
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
140
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
134
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
141
135
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
142
136
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
143
137
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -146,11 +140,9 @@
|
|
146
140
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
147
141
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
148
142
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
149
|
-
<RunnerSettings RunnerId="RubyDebugRunner" />
|
150
|
-
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
151
143
|
<method />
|
152
144
|
</configuration>
|
153
|
-
<configuration default="false" name="
|
145
|
+
<configuration default="false" name="BaseProvision#parse parses content from file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
154
146
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
155
147
|
<module name="script_executor" />
|
156
148
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -169,10 +161,10 @@
|
|
169
161
|
</COVERAGE_PATTERN>
|
170
162
|
</EXTENSION>
|
171
163
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
172
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
164
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/base_provision_spec.rb" />
|
173
165
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
174
166
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
175
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
167
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="BaseProvision#parse parses content from file" />
|
176
168
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
177
169
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
178
170
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -181,29 +173,30 @@
|
|
181
173
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
182
174
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
183
175
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
184
|
-
<RunnerSettings RunnerId="RubyRunner" />
|
185
|
-
<ConfigurationWrapper RunnerId="RubyRunner" />
|
186
176
|
<method />
|
187
177
|
</configuration>
|
188
178
|
</component>
|
189
179
|
<component name="NewModuleRootManager">
|
190
180
|
<content url="file://$MODULE_DIR$" />
|
191
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-2.2.
|
181
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.2.3 [script_executor]" jdkType="RUBY_SDK" />
|
192
182
|
<orderEntry type="sourceFolder" forTests="false" />
|
193
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
194
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
195
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
196
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
197
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
198
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
199
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
200
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
201
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
202
|
-
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.
|
203
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
204
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec
|
205
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-
|
206
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-
|
207
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
183
|
+
<orderEntry type="library" scope="PROVIDED" name="awesome_print (v1.6.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
184
|
+
<orderEntry type="library" scope="PROVIDED" name="blankslate (v3.1.3, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
185
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.10.6, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
186
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
187
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
188
|
+
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
189
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
190
|
+
<orderEntry type="library" scope="PROVIDED" name="highline (v1.6.15, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
191
|
+
<orderEntry type="library" scope="PROVIDED" name="json_pure (v1.8.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
192
|
+
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.9.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
193
|
+
<orderEntry type="library" scope="PROVIDED" name="parslet (v1.7.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
194
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.3.0, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
195
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.3.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
196
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.3.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
197
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.3.2, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
198
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.3.0, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
199
|
+
<orderEntry type="library" scope="PROVIDED" name="text-interpolator (v1.1.6, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
200
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.1, RVM: ruby-2.2.3 [script_executor]) [gem]" level="application" />
|
208
201
|
</component>
|
209
202
|
</module>
|