script_executor 1.3.8 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.idea/.rakeTasks +1 -1
- data/.idea/misc.xml +3 -0
- data/.idea/script_executor.iml +23 -21
- data/.idea/workspace.xml +221 -148
- data/CHANGES +5 -1
- data/lib/script_executor/script_locator.rb +10 -2
- data/lib/script_executor/version.rb +1 -1
- data/spec/script_locator_spec.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NWQ0Mzg3NjZlNTNiMmUxZjVhMTUzNjg0MTc2ODUwOWE4MzU4YzI2MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWRlODUzMDExYTg4YzJjOGZkNDVkODU3YThkMGYxMDZkNTVhODFhMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NDgyMmQzOTBmN2MxZTlhM2ZiODYxYzgxYmJiMjJjYWIzYTlhYjI1MGZjOTZl
|
10
|
+
NzlmODllNjM5MWVjZjQ3MGU0MmE4YWRhNDgwOGRlMDk3OWNlYmI1YTNiYjc4
|
11
|
+
NDgxZGY1YWY5NGM4YTUyYzliOWJkNDlkZWEwZTVmMDgzZTM2N2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Mzk0ZWVhN2UwOTdjOWE2NmZhMjVjZThmZDZiM2QyZTYxY2I2MTQzMzY3NWFi
|
14
|
+
ZDMwZTVlYjIyODY5MTYxM2MzOWI0NDI5OWM0YTZhZmQwY2Q5NjQ5ZGJhYTAy
|
15
|
+
MmNlOWYzNjczNWMwZTQ0NGMxNDgxYzgwYjc2MTM3YmVlNWVmNDg=
|
data/.idea/.rakeTasks
CHANGED
@@ -4,4 +4,4 @@ You are allowed to:
|
|
4
4
|
1. Remove rake task
|
5
5
|
2. Add existing rake tasks
|
6
6
|
To add existing rake tasks automatically delete this file and reload the project.
|
7
|
-
--><RakeGroup description="" fullCmd="" taksId="rake"
|
7
|
+
--><RakeGroup description="" fullCmd="" taksId="rake" /></Settings>
|
data/.idea/misc.xml
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p429 [script_executor]" project-jdk-type="RUBY_SDK" />
|
4
|
+
<component name="SvnBranchConfigurationManager">
|
5
|
+
<option name="mySupportsUserInfoFilter" value="true" />
|
6
|
+
</component>
|
4
7
|
</project>
|
5
8
|
|
data/.idea/script_executor.iml
CHANGED
@@ -10,11 +10,11 @@
|
|
10
10
|
</facet>
|
11
11
|
</component>
|
12
12
|
<component name="ModuleRunConfigurationManager">
|
13
|
-
<configuration default="false" name="
|
13
|
+
<configuration default="false" name="script_locator_spec" 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)" />
|
17
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR
|
17
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
18
18
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
19
19
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
20
20
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
@@ -30,10 +30,10 @@
|
|
30
30
|
</EXTENSION>
|
31
31
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
32
32
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
33
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
33
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
34
34
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
35
35
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
36
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
36
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
37
37
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
38
38
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
39
39
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -42,11 +42,13 @@
|
|
42
42
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
43
43
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
44
44
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
45
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
45
46
|
<RunnerSettings RunnerId="RubyRunner" />
|
47
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
46
48
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
47
49
|
<method />
|
48
50
|
</configuration>
|
49
|
-
<configuration default="false" name="
|
51
|
+
<configuration default="false" name="executable_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
50
52
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
51
53
|
<module name="script_executor" />
|
52
54
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -66,7 +68,7 @@
|
|
66
68
|
</EXTENSION>
|
67
69
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
68
70
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
69
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
71
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
70
72
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
71
73
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
72
74
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
@@ -82,7 +84,7 @@
|
|
82
84
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
83
85
|
<method />
|
84
86
|
</configuration>
|
85
|
-
<configuration default="false" name="
|
87
|
+
<configuration default="false" name="MyExecutable remote execution should execute commands from :script parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
86
88
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
87
89
|
<module name="script_executor" />
|
88
90
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -93,7 +95,7 @@
|
|
93
95
|
<envs>
|
94
96
|
<env name="JRUBY_OPTS" value="-X+O" />
|
95
97
|
</envs>
|
96
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
98
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
97
99
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
98
100
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
99
101
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -105,7 +107,7 @@
|
|
105
107
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
106
108
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
107
109
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
108
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
110
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable remote execution should execute commands from :script parameter" />
|
109
111
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
110
112
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
111
113
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -118,7 +120,7 @@
|
|
118
120
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
119
121
|
<method />
|
120
122
|
</configuration>
|
121
|
-
<configuration default="false" name="MyExecutable
|
123
|
+
<configuration default="false" name="MyExecutable local execution should execute commands locally from :script parameter: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
122
124
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
123
125
|
<module name="script_executor" />
|
124
126
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -141,7 +143,7 @@
|
|
141
143
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
142
144
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
143
145
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
144
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable
|
146
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable local execution should execute commands locally from :script parameter" />
|
145
147
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
146
148
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
147
149
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -154,7 +156,7 @@
|
|
154
156
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
155
157
|
<method />
|
156
158
|
</configuration>
|
157
|
-
<configuration default="false" name="
|
159
|
+
<configuration default="false" name="MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
158
160
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
159
161
|
<module name="script_executor" />
|
160
162
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -165,7 +167,7 @@
|
|
165
167
|
<envs>
|
166
168
|
<env name="JRUBY_OPTS" value="-X+O" />
|
167
169
|
</envs>
|
168
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
170
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
169
171
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
170
172
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
171
173
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -174,10 +176,10 @@
|
|
174
176
|
</EXTENSION>
|
175
177
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
176
178
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
177
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
179
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
178
180
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
179
181
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
180
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
182
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyScriptLocator#evaluate_script_body locates script inside current file" />
|
181
183
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
182
184
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
183
185
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -186,8 +188,8 @@
|
|
186
188
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
187
189
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
188
190
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
189
|
-
<RunnerSettings RunnerId="
|
190
|
-
<ConfigurationWrapper RunnerId="
|
191
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
192
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
191
193
|
<method />
|
192
194
|
</configuration>
|
193
195
|
</component>
|
@@ -195,16 +197,16 @@
|
|
195
197
|
<content url="file://$MODULE_DIR$" />
|
196
198
|
<orderEntry type="jdk" jdkName="RVM: ruby-1.9.3-p545 [script_executor]" jdkType="RUBY_SDK" />
|
197
199
|
<orderEntry type="sourceFolder" forTests="false" />
|
198
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.
|
200
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.6.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
199
201
|
<orderEntry type="library" scope="PROVIDED" name="debugger-ruby_core_source (v1.2.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
200
202
|
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.1.3, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
201
|
-
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.
|
203
|
+
<orderEntry type="library" scope="PROVIDED" name="file_utils (v1.0.7, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
202
204
|
<orderEntry type="library" scope="PROVIDED" name="gemcutter (v0.7.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
203
|
-
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.
|
205
|
+
<orderEntry type="library" scope="PROVIDED" name="gemspec_deps_gen (v1.1.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
204
206
|
<orderEntry type="library" scope="PROVIDED" name="highline (v1.6.15, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
205
207
|
<orderEntry type="library" scope="PROVIDED" name="metaclass (v0.0.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
206
208
|
<orderEntry type="library" scope="PROVIDED" name="mocha (v0.13.1, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
207
|
-
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.
|
209
|
+
<orderEntry type="library" scope="PROVIDED" name="net-ssh (v2.8.0, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
208
210
|
<orderEntry type="library" scope="PROVIDED" name="rake (v10.0.4, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
209
211
|
<orderEntry type="library" scope="PROVIDED" name="rspec (v2.12.0, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
210
212
|
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v2.12.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" level="application" />
|
data/.idea/workspace.xml
CHANGED
@@ -1,12 +1,8 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<project version="4">
|
3
3
|
<component name="ChangeListManager">
|
4
|
-
<list default="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="">
|
5
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR
|
6
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile" afterPath="$PROJECT_DIR$/Gemfile" />
|
7
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/Rakefile" afterPath="$PROJECT_DIR$/Rakefile" />
|
8
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/script_executor.gemspec.erb" afterPath="$PROJECT_DIR$/script_executor.gemspec.erb" />
|
9
|
-
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/script_executor.gemspec" afterPath="$PROJECT_DIR$/script_executor.gemspec" />
|
4
|
+
<list default="true" readonly="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="">
|
5
|
+
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
|
10
6
|
</list>
|
11
7
|
<ignored path="script_executor.iws" />
|
12
8
|
<ignored path=".idea/workspace.xml" />
|
@@ -18,7 +14,8 @@
|
|
18
14
|
</component>
|
19
15
|
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
|
20
16
|
<component name="CoverageDataManager">
|
21
|
-
<SUITE FILE_PATH="coverage/script_executor@
|
17
|
+
<SUITE FILE_PATH="coverage/script_executor@MyScriptLocator_evaluate_script_body_locates_script_inside_current_file__script_executor.coverage" NAME="MyScriptLocator#evaluate_script_body locates script inside current file: script_executor Coverage Results" MODIFIED="1402110491955" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
18
|
+
<SUITE FILE_PATH="coverage/script_executor@script_locator_spec.coverage" NAME="script_locator_spec Coverage Results" MODIFIED="1402147217968" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
22
19
|
<SUITE FILE_PATH="coverage/script_executor@MyExecutable_remote_execution_should_execute_commands_from__script_parameter.coverage" NAME="MyExecutable remote execution should execute commands from :script parameter Coverage Results" MODIFIED="1385833810234" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
23
20
|
<SUITE FILE_PATH="coverage/script_executor@executable_spec.coverage" NAME="executable_spec Coverage Results" MODIFIED="1398702512672" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
24
21
|
<SUITE FILE_PATH="coverage/script_executor@MyExecutable_local_execution_should_execute_commands_locally_from__script_parameter__script_executor.coverage" NAME="MyExecutable local execution should execute commands locally from :script parameter: script_executor Coverage Results" MODIFIED="1385833654466" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="script_executor" />
|
@@ -35,81 +32,54 @@
|
|
35
32
|
</component>
|
36
33
|
<component name="FileEditorManager">
|
37
34
|
<leaf>
|
38
|
-
<file leaf-file-name="
|
39
|
-
<entry file="file://$PROJECT_DIR$/
|
40
|
-
<provider
|
41
|
-
<state
|
42
|
-
<caret line="13" column="42" selection-start-line="13" selection-start-column="42" selection-end-line="13" selection-end-column="42" />
|
43
|
-
<folding />
|
44
|
-
</state>
|
35
|
+
<file leaf-file-name="README.md" pinned="false" current="false" current-in-tab="false">
|
36
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
37
|
+
<provider editor-type-id="MarkdownPreviewEditor">
|
38
|
+
<state />
|
45
39
|
</provider>
|
46
|
-
</entry>
|
47
|
-
</file>
|
48
|
-
<file leaf-file-name="script_locator.rb" pinned="false" current="false" current-in-tab="false">
|
49
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
|
50
40
|
<provider selected="true" editor-type-id="text-editor">
|
51
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
52
|
-
<caret line="
|
41
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="1442" max-vertical-offset="2193">
|
42
|
+
<caret line="93" column="24" selection-start-line="93" selection-start-column="24" selection-end-line="93" selection-end-column="24" />
|
53
43
|
<folding />
|
54
44
|
</state>
|
55
45
|
</provider>
|
56
46
|
</entry>
|
57
47
|
</file>
|
58
|
-
<file leaf-file-name="
|
59
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
|
60
|
-
<provider selected="true" editor-type-id="text-editor">
|
61
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="120">
|
62
|
-
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
63
|
-
<folding />
|
64
|
-
</state>
|
65
|
-
</provider>
|
66
|
-
</entry>
|
67
|
-
</file>
|
68
|
-
<file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
|
48
|
+
<file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
|
69
49
|
<entry file="file://$PROJECT_DIR$/CHANGES">
|
70
50
|
<provider selected="true" editor-type-id="text-editor">
|
71
|
-
<state vertical-scroll-proportion="0.
|
72
|
-
<caret line="
|
51
|
+
<state vertical-scroll-proportion="0.8929987" vertical-offset="378" max-vertical-offset="1156">
|
52
|
+
<caret line="62" column="2" selection-start-line="62" selection-start-column="2" selection-end-line="62" selection-end-column="35" />
|
73
53
|
<folding />
|
74
54
|
</state>
|
75
55
|
</provider>
|
76
56
|
</entry>
|
77
57
|
</file>
|
78
|
-
<file leaf-file-name="
|
79
|
-
<entry file="file://$PROJECT_DIR$/
|
80
|
-
<provider selected="true" editor-type-id="text-editor">
|
81
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="675">
|
82
|
-
<caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
|
83
|
-
<folding />
|
84
|
-
</state>
|
85
|
-
</provider>
|
86
|
-
</entry>
|
87
|
-
</file>
|
88
|
-
<file leaf-file-name="Gemfile" pinned="false" current="true" current-in-tab="true">
|
89
|
-
<entry file="file://$PROJECT_DIR$/Gemfile">
|
58
|
+
<file leaf-file-name="script_locator.rb" pinned="false" current="false" current-in-tab="false">
|
59
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
|
90
60
|
<provider selected="true" editor-type-id="text-editor">
|
91
|
-
<state vertical-scroll-proportion="0.
|
92
|
-
<caret line="
|
61
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="680" max-vertical-offset="1326">
|
62
|
+
<caret line="40" column="18" selection-start-line="40" selection-start-column="18" selection-end-line="40" selection-end-column="18" />
|
93
63
|
<folding />
|
94
64
|
</state>
|
95
65
|
</provider>
|
96
66
|
</entry>
|
97
67
|
</file>
|
98
|
-
<file leaf-file-name="
|
99
|
-
<entry file="file://$PROJECT_DIR$/
|
68
|
+
<file leaf-file-name="script_locator_spec.rb" pinned="false" current="false" current-in-tab="false">
|
69
|
+
<entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
|
100
70
|
<provider selected="true" editor-type-id="text-editor">
|
101
|
-
<state vertical-scroll-proportion="
|
102
|
-
<caret line="
|
71
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="680" max-vertical-offset="1241">
|
72
|
+
<caret line="40" column="0" selection-start-line="40" selection-start-column="0" selection-end-line="40" selection-end-column="0" />
|
103
73
|
<folding />
|
104
74
|
</state>
|
105
75
|
</provider>
|
106
76
|
</entry>
|
107
77
|
</file>
|
108
|
-
<file leaf-file-name="
|
109
|
-
<entry file="file://$PROJECT_DIR$/
|
78
|
+
<file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
|
79
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
|
110
80
|
<provider selected="true" editor-type-id="text-editor">
|
111
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
112
|
-
<caret line="
|
81
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="17" max-vertical-offset="136">
|
82
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
113
83
|
<folding />
|
114
84
|
</state>
|
115
85
|
</provider>
|
@@ -151,13 +121,13 @@
|
|
151
121
|
<option value="$PROJECT_DIR$/spec/executable_spec.rb" />
|
152
122
|
<option value="$PROJECT_DIR$/spec/test.conf" />
|
153
123
|
<option value="$USER_HOME$/.rvm/gems/ruby-1.9.3-p545@script_executor/gems/text-interpolator-1.0.0/lib/text_interpolator/text_interpolator.rb" />
|
154
|
-
<option value="$PROJECT_DIR$/spec/script_locator_spec.rb" />
|
155
|
-
<option value="$PROJECT_DIR$/lib/script_executor/script_locator.rb" />
|
156
|
-
<option value="$PROJECT_DIR$/lib/script_executor/version.rb" />
|
157
|
-
<option value="$PROJECT_DIR$/CHANGES" />
|
158
124
|
<option value="$PROJECT_DIR$/Rakefile" />
|
159
125
|
<option value="$PROJECT_DIR$/script_executor.gemspec.erb" />
|
160
126
|
<option value="$PROJECT_DIR$/Gemfile" />
|
127
|
+
<option value="$PROJECT_DIR$/lib/script_executor/script_locator.rb" />
|
128
|
+
<option value="$PROJECT_DIR$/spec/script_locator_spec.rb" />
|
129
|
+
<option value="$PROJECT_DIR$/lib/script_executor/version.rb" />
|
130
|
+
<option value="$PROJECT_DIR$/CHANGES" />
|
161
131
|
</list>
|
162
132
|
</option>
|
163
133
|
</component>
|
@@ -206,6 +176,86 @@
|
|
206
176
|
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
207
177
|
</PATH_ELEMENT>
|
208
178
|
</PATH>
|
179
|
+
<PATH>
|
180
|
+
<PATH_ELEMENT>
|
181
|
+
<option name="myItemId" value="script_executor" />
|
182
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
183
|
+
</PATH_ELEMENT>
|
184
|
+
<PATH_ELEMENT>
|
185
|
+
<option name="myItemId" value="External Libraries" />
|
186
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
187
|
+
</PATH_ELEMENT>
|
188
|
+
<PATH_ELEMENT>
|
189
|
+
<option name="myItemId" value="rspec-core (v2.12.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" />
|
190
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
191
|
+
</PATH_ELEMENT>
|
192
|
+
<PATH_ELEMENT>
|
193
|
+
<option name="myItemId" value="lib" />
|
194
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
195
|
+
</PATH_ELEMENT>
|
196
|
+
<PATH_ELEMENT>
|
197
|
+
<option name="myItemId" value="rspec" />
|
198
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
199
|
+
</PATH_ELEMENT>
|
200
|
+
</PATH>
|
201
|
+
<PATH>
|
202
|
+
<PATH_ELEMENT>
|
203
|
+
<option name="myItemId" value="script_executor" />
|
204
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
205
|
+
</PATH_ELEMENT>
|
206
|
+
<PATH_ELEMENT>
|
207
|
+
<option name="myItemId" value="External Libraries" />
|
208
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
209
|
+
</PATH_ELEMENT>
|
210
|
+
<PATH_ELEMENT>
|
211
|
+
<option name="myItemId" value="rspec-core (v2.12.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" />
|
212
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
213
|
+
</PATH_ELEMENT>
|
214
|
+
<PATH_ELEMENT>
|
215
|
+
<option name="myItemId" value="lib" />
|
216
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
217
|
+
</PATH_ELEMENT>
|
218
|
+
<PATH_ELEMENT>
|
219
|
+
<option name="myItemId" value="rspec" />
|
220
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
221
|
+
</PATH_ELEMENT>
|
222
|
+
<PATH_ELEMENT>
|
223
|
+
<option name="myItemId" value="core" />
|
224
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
225
|
+
</PATH_ELEMENT>
|
226
|
+
</PATH>
|
227
|
+
<PATH>
|
228
|
+
<PATH_ELEMENT>
|
229
|
+
<option name="myItemId" value="script_executor" />
|
230
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
231
|
+
</PATH_ELEMENT>
|
232
|
+
<PATH_ELEMENT>
|
233
|
+
<option name="myItemId" value="External Libraries" />
|
234
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
235
|
+
</PATH_ELEMENT>
|
236
|
+
<PATH_ELEMENT>
|
237
|
+
<option name="myItemId" value="rspec-core (v2.12.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" />
|
238
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
239
|
+
</PATH_ELEMENT>
|
240
|
+
<PATH_ELEMENT>
|
241
|
+
<option name="myItemId" value="lib" />
|
242
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
|
243
|
+
</PATH_ELEMENT>
|
244
|
+
</PATH>
|
245
|
+
<PATH>
|
246
|
+
<PATH_ELEMENT>
|
247
|
+
<option name="myItemId" value="script_executor" />
|
248
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
|
249
|
+
</PATH_ELEMENT>
|
250
|
+
<PATH_ELEMENT>
|
251
|
+
<option name="myItemId" value="External Libraries" />
|
252
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
|
253
|
+
</PATH_ELEMENT>
|
254
|
+
<PATH_ELEMENT>
|
255
|
+
<option name="myItemId" value="rspec-core (v2.12.2, RVM: ruby-1.9.3-p545 [script_executor]) [gem]" />
|
256
|
+
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
|
257
|
+
</PATH_ELEMENT>
|
258
|
+
</PATH>
|
209
259
|
<PATH>
|
210
260
|
<PATH_ELEMENT>
|
211
261
|
<option name="myItemId" value="script_executor" />
|
@@ -293,12 +343,12 @@
|
|
293
343
|
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeWidth3" value="989" />
|
294
344
|
<property name="FileHistory.git4idea.history.GitHistoryProvider_treeOrder3" value="3" />
|
295
345
|
</component>
|
296
|
-
<component name="RunManager" selected="RSpec.
|
297
|
-
<configuration default="false" name="
|
346
|
+
<component name="RunManager" selected="RSpec.script_locator_spec">
|
347
|
+
<configuration default="false" name="script_locator_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
298
348
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
299
349
|
<module name="script_executor" />
|
300
350
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
301
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR
|
351
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
302
352
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
|
303
353
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
304
354
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
|
@@ -314,10 +364,10 @@
|
|
314
364
|
</EXTENSION>
|
315
365
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
316
366
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
317
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
367
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
318
368
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
319
369
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
320
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
370
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
321
371
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
322
372
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
323
373
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -326,11 +376,13 @@
|
|
326
376
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
327
377
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
328
378
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
379
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
329
380
|
<RunnerSettings RunnerId="RubyRunner" />
|
381
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
330
382
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
331
383
|
<method />
|
332
384
|
</configuration>
|
333
|
-
<configuration default="false" name="
|
385
|
+
<configuration default="false" name="executable_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
334
386
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
335
387
|
<module name="script_executor" />
|
336
388
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -350,7 +402,7 @@
|
|
350
402
|
</EXTENSION>
|
351
403
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
352
404
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
353
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
405
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
354
406
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
355
407
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
356
408
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
@@ -366,7 +418,7 @@
|
|
366
418
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
367
419
|
<method />
|
368
420
|
</configuration>
|
369
|
-
<configuration default="false" name="
|
421
|
+
<configuration default="false" name="MyExecutable remote execution should execute commands from :script parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
370
422
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
371
423
|
<module name="script_executor" />
|
372
424
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -377,7 +429,7 @@
|
|
377
429
|
<envs>
|
378
430
|
<env name="JRUBY_OPTS" value="-X+O" />
|
379
431
|
</envs>
|
380
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
432
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
381
433
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
382
434
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
383
435
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -389,7 +441,7 @@
|
|
389
441
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
390
442
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
391
443
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
392
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
|
444
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable remote execution should execute commands from :script parameter" />
|
393
445
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
394
446
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
395
447
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -402,7 +454,7 @@
|
|
402
454
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
403
455
|
<method />
|
404
456
|
</configuration>
|
405
|
-
<configuration default="false" name="MyExecutable
|
457
|
+
<configuration default="false" name="MyExecutable local execution should execute commands locally from :script parameter: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
406
458
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
407
459
|
<module name="script_executor" />
|
408
460
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -425,7 +477,7 @@
|
|
425
477
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/executable_spec.rb" />
|
426
478
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
427
479
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
428
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable
|
480
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyExecutable local execution should execute commands locally from :script parameter" />
|
429
481
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
430
482
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
431
483
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -438,7 +490,7 @@
|
|
438
490
|
<ConfigurationWrapper RunnerId="RubyRunner" />
|
439
491
|
<method />
|
440
492
|
</configuration>
|
441
|
-
<configuration default="false" name="
|
493
|
+
<configuration default="false" name="MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
|
442
494
|
<predefined_log_file id="RUBY_RSPEC" enabled="true" />
|
443
495
|
<module name="script_executor" />
|
444
496
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
@@ -449,7 +501,7 @@
|
|
449
501
|
<envs>
|
450
502
|
<env name="JRUBY_OPTS" value="-X+O" />
|
451
503
|
</envs>
|
452
|
-
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="
|
504
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
|
453
505
|
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
454
506
|
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
455
507
|
<COVERAGE_PATTERN ENABLED="true">
|
@@ -458,10 +510,10 @@
|
|
458
510
|
</EXTENSION>
|
459
511
|
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
460
512
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
|
461
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/
|
513
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$MODULE_DIR$/spec/script_locator_spec.rb" />
|
462
514
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
|
463
515
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
|
464
|
-
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="
|
516
|
+
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="MyScriptLocator#evaluate_script_body locates script inside current file" />
|
465
517
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
|
466
518
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
|
467
519
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
|
@@ -470,8 +522,8 @@
|
|
470
522
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ZEUS" VALUE="false" />
|
471
523
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPRING" VALUE="false" />
|
472
524
|
<RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
|
473
|
-
<RunnerSettings RunnerId="
|
474
|
-
<ConfigurationWrapper RunnerId="
|
525
|
+
<RunnerSettings RunnerId="RubyDebugRunner" />
|
526
|
+
<ConfigurationWrapper RunnerId="RubyDebugRunner" />
|
475
527
|
<method />
|
476
528
|
</configuration>
|
477
529
|
<configuration default="true" type="JavaScriptTestRunnerKarma" factoryName="Karma" config-file="">
|
@@ -584,23 +636,27 @@
|
|
584
636
|
</configuration>
|
585
637
|
<list size="6">
|
586
638
|
<item index="0" class="java.lang.String" itemvalue="Ruby remote debug.remote" />
|
587
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.
|
588
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
589
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
590
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.MyExecutable
|
591
|
-
<item index="5" class="java.lang.String" itemvalue="RSpec.
|
639
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.script_locator_spec" />
|
640
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.executable_spec" />
|
641
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.MyExecutable remote execution should execute commands from :script parameter" />
|
642
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.MyExecutable local execution should execute commands locally from :script parameter: script_executor" />
|
643
|
+
<item index="5" class="java.lang.String" itemvalue="RSpec.MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" />
|
592
644
|
</list>
|
593
645
|
<recent_temporary>
|
594
646
|
<list size="5">
|
595
|
-
<item index="0" class="java.lang.String" itemvalue="RSpec.
|
596
|
-
<item index="1" class="java.lang.String" itemvalue="RSpec.MyExecutable
|
597
|
-
<item index="2" class="java.lang.String" itemvalue="RSpec.
|
598
|
-
<item index="3" class="java.lang.String" itemvalue="RSpec.
|
599
|
-
<item index="4" class="java.lang.String" itemvalue="RSpec.
|
647
|
+
<item index="0" class="java.lang.String" itemvalue="RSpec.MyScriptLocator#evaluate_script_body locates script inside current file: script_executor" />
|
648
|
+
<item index="1" class="java.lang.String" itemvalue="RSpec.MyExecutable local execution should execute commands locally from :script parameter: script_executor" />
|
649
|
+
<item index="2" class="java.lang.String" itemvalue="RSpec.MyExecutable remote execution should execute commands from :script parameter" />
|
650
|
+
<item index="3" class="java.lang.String" itemvalue="RSpec.executable_spec" />
|
651
|
+
<item index="4" class="java.lang.String" itemvalue="RSpec.script_locator_spec" />
|
600
652
|
</list>
|
601
653
|
</recent_temporary>
|
602
654
|
</component>
|
603
655
|
<component name="ShelveChangesManager" show_recycled="false" />
|
656
|
+
<component name="SvnConfiguration">
|
657
|
+
<configuration>$USER_HOME$/.subversion</configuration>
|
658
|
+
<supportedVersion>125</supportedVersion>
|
659
|
+
</component>
|
604
660
|
<component name="TaskManager">
|
605
661
|
<task active="true" id="Default" summary="Default task">
|
606
662
|
<changelist id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="" />
|
@@ -627,34 +683,46 @@
|
|
627
683
|
<created>1398787935685</created>
|
628
684
|
<updated>1398787935685</updated>
|
629
685
|
</task>
|
630
|
-
<
|
686
|
+
<task id="LOCAL-00006" summary="* Allow '-' and '_' symbols in script name.">
|
687
|
+
<created>1398788285445</created>
|
688
|
+
<updated>1398788285445</updated>
|
689
|
+
</task>
|
690
|
+
<task id="LOCAL-00007" summary="* Allow '-' and '_' symbols in script name.">
|
691
|
+
<created>1398788297493</created>
|
692
|
+
<updated>1398788297493</updated>
|
693
|
+
</task>
|
694
|
+
<task id="LOCAL-00008" summary="Adding script_title method to API">
|
695
|
+
<created>1402147316310</created>
|
696
|
+
<updated>1402147316310</updated>
|
697
|
+
</task>
|
698
|
+
<option name="localTasksCounter" value="9" />
|
631
699
|
<servers />
|
632
700
|
</component>
|
633
701
|
<component name="ToolWindowManager">
|
634
702
|
<frame x="48" y="22" width="1396" height="878" extended-state="0" />
|
635
|
-
<editor active="
|
703
|
+
<editor active="false" />
|
636
704
|
<layout>
|
637
705
|
<window_info id="Dilbert" 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" />
|
638
|
-
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="
|
706
|
+
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.357599" sideWeight="0.9955329" order="7" side_tool="false" content_ui="tabs" />
|
639
707
|
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
708
|
+
<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" />
|
640
709
|
<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="3" side_tool="false" content_ui="tabs" />
|
641
|
-
<window_info id="
|
642
|
-
<window_info id="
|
710
|
+
<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="true" content_ui="tabs" />
|
711
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.21639587" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
|
712
|
+
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3971903" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
643
713
|
<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="2" side_tool="true" content_ui="tabs" />
|
714
|
+
<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="7" side_tool="true" content_ui="tabs" />
|
715
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3218391" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
644
716
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3290461" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
645
|
-
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32925683" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
646
|
-
<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" />
|
647
|
-
<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="true" content_ui="tabs" />
|
648
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.20162481" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
|
649
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3226152" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
|
650
717
|
<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" />
|
651
718
|
<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" />
|
652
719
|
<window_info id="Heroku" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
|
653
|
-
<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" />
|
654
720
|
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32929292" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
721
|
+
<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" />
|
722
|
+
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32822478" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
655
723
|
<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" />
|
656
|
-
<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" />
|
657
724
|
<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" />
|
725
|
+
<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" />
|
658
726
|
<window_info id="LuaJ" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
659
727
|
</layout>
|
660
728
|
<layout-to-restore>
|
@@ -676,9 +744,9 @@
|
|
676
744
|
<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="true" content_ui="tabs" />
|
677
745
|
<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" />
|
678
746
|
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3199498" sideWeight="0.64040405" order="0" side_tool="false" content_ui="combo" />
|
679
|
-
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3226152" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
680
|
-
<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" />
|
681
747
|
<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="6" side_tool="false" content_ui="tabs" />
|
748
|
+
<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" />
|
749
|
+
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3226152" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
682
750
|
<window_info id="LuaJ" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
683
751
|
</layout-to-restore>
|
684
752
|
</component>
|
@@ -703,7 +771,8 @@
|
|
703
771
|
<MESSAGE value="adding port as parameter" />
|
704
772
|
<MESSAGE value="Using text-interpolator as an additional engine." />
|
705
773
|
<MESSAGE value="* Allow '-' and '_' symbols in script name." />
|
706
|
-
<
|
774
|
+
<MESSAGE value="Adding script_title method to API" />
|
775
|
+
<option name="LAST_COMMIT_MESSAGE" value="Adding script_title method to API" />
|
707
776
|
</component>
|
708
777
|
<component name="XDebuggerManager">
|
709
778
|
<breakpoint-manager>
|
@@ -713,27 +782,23 @@
|
|
713
782
|
<line>35</line>
|
714
783
|
<option name="timeStamp" value="5" />
|
715
784
|
</line-breakpoint>
|
785
|
+
<line-breakpoint enabled="true" type="ruby-line">
|
786
|
+
<url>file://$PROJECT_DIR$/spec/script_locator_spec.rb</url>
|
787
|
+
<line>36</line>
|
788
|
+
<option name="timeStamp" value="7" />
|
789
|
+
</line-breakpoint>
|
716
790
|
</breakpoints>
|
717
791
|
<breakpoints-dialog>
|
718
792
|
<breakpoints-dialog />
|
719
793
|
</breakpoints-dialog>
|
720
|
-
<option name="time" value="
|
794
|
+
<option name="time" value="14" />
|
721
795
|
</breakpoint-manager>
|
722
796
|
</component>
|
723
797
|
<component name="editorHistoryManager">
|
724
|
-
<entry file="file://$PROJECT_DIR$/CHANGES">
|
725
|
-
<provider selected="true" editor-type-id="text-editor">
|
726
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="750" max-vertical-offset="840">
|
727
|
-
<caret line="50" column="2" selection-start-line="50" selection-start-column="2" selection-end-line="50" selection-end-column="2" />
|
728
|
-
<folding />
|
729
|
-
</state>
|
730
|
-
</provider>
|
731
|
-
</entry>
|
732
798
|
<entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
|
733
799
|
<provider selected="true" editor-type-id="text-editor">
|
734
800
|
<state vertical-scroll-proportion="0.0" vertical-offset="495" max-vertical-offset="660">
|
735
801
|
<caret line="33" column="0" selection-start-line="33" selection-start-column="0" selection-end-line="33" selection-end-column="0" />
|
736
|
-
<folding />
|
737
802
|
</state>
|
738
803
|
</provider>
|
739
804
|
</entry>
|
@@ -999,97 +1064,105 @@
|
|
999
1064
|
</state>
|
1000
1065
|
</provider>
|
1001
1066
|
</entry>
|
1002
|
-
<entry file="file://$PROJECT_DIR$/
|
1067
|
+
<entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
|
1003
1068
|
<provider selected="true" editor-type-id="text-editor">
|
1004
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
1005
|
-
<caret line="
|
1069
|
+
<state vertical-scroll-proportion="-0.0" vertical-offset="0" max-vertical-offset="90">
|
1070
|
+
<caret line="0" column="42" selection-start-line="0" selection-start-column="42" selection-end-line="0" selection-end-column="42" />
|
1006
1071
|
</state>
|
1007
1072
|
</provider>
|
1008
1073
|
</entry>
|
1009
|
-
<entry file="file://$PROJECT_DIR$/
|
1010
|
-
<provider editor-type-id="
|
1011
|
-
<state
|
1074
|
+
<entry file="file://$PROJECT_DIR$/lib/script_locator.rb">
|
1075
|
+
<provider selected="true" editor-type-id="text-editor">
|
1076
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="604">
|
1077
|
+
<caret line="0" column="40" selection-start-line="0" selection-start-column="40" selection-end-line="0" selection-end-column="40" />
|
1078
|
+
</state>
|
1012
1079
|
</provider>
|
1080
|
+
</entry>
|
1081
|
+
<entry file="file://$PROJECT_DIR$/script_executor.gemspec.erb">
|
1013
1082
|
<provider selected="true" editor-type-id="text-editor">
|
1014
|
-
<state vertical-scroll-proportion="
|
1015
|
-
<caret line="
|
1083
|
+
<state vertical-scroll-proportion="0.15822785" vertical-offset="0" max-vertical-offset="474">
|
1084
|
+
<caret line="5" column="33" selection-start-line="5" selection-start-column="33" selection-end-line="5" selection-end-column="33" />
|
1016
1085
|
</state>
|
1017
1086
|
</provider>
|
1018
1087
|
</entry>
|
1019
|
-
<entry file="file://$PROJECT_DIR$/
|
1088
|
+
<entry file="file://$PROJECT_DIR$/Rakefile">
|
1020
1089
|
<provider selected="true" editor-type-id="text-editor">
|
1021
|
-
<state vertical-scroll-proportion="
|
1022
|
-
<caret line="
|
1090
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="90" max-vertical-offset="675">
|
1091
|
+
<caret line="16" column="0" selection-start-line="16" selection-start-column="0" selection-end-line="16" selection-end-column="0" />
|
1023
1092
|
</state>
|
1024
1093
|
</provider>
|
1025
1094
|
</entry>
|
1026
|
-
<entry file="file://$PROJECT_DIR$/lib/
|
1095
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/remote_command.rb">
|
1027
1096
|
<provider selected="true" editor-type-id="text-editor">
|
1028
|
-
<state vertical-scroll-proportion="
|
1029
|
-
<caret line="
|
1097
|
+
<state vertical-scroll-proportion="-10.24" vertical-offset="254" max-vertical-offset="1717">
|
1098
|
+
<caret line="30" column="13" selection-start-line="30" selection-start-column="13" selection-end-line="30" selection-end-column="13" />
|
1099
|
+
<folding />
|
1030
1100
|
</state>
|
1031
1101
|
</provider>
|
1032
1102
|
</entry>
|
1033
1103
|
<entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
|
1034
1104
|
<provider selected="true" editor-type-id="text-editor">
|
1035
|
-
<state vertical-scroll-proportion="0.
|
1105
|
+
<state vertical-scroll-proportion="-0.68" vertical-offset="204" max-vertical-offset="1989">
|
1036
1106
|
<caret line="13" column="42" selection-start-line="13" selection-start-column="42" selection-end-line="13" selection-end-column="42" />
|
1037
1107
|
<folding />
|
1038
1108
|
</state>
|
1039
1109
|
</provider>
|
1040
1110
|
</entry>
|
1041
|
-
<entry file="file://$PROJECT_DIR$/
|
1111
|
+
<entry file="file://$PROJECT_DIR$/Gemfile">
|
1042
1112
|
<provider selected="true" editor-type-id="text-editor">
|
1043
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
1044
|
-
<caret line="
|
1113
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="510">
|
1114
|
+
<caret line="6" column="3" selection-start-line="6" selection-start-column="3" selection-end-line="6" selection-end-column="3" />
|
1045
1115
|
<folding />
|
1046
1116
|
</state>
|
1047
1117
|
</provider>
|
1048
1118
|
</entry>
|
1049
|
-
<entry file="file://$
|
1119
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p545@script_executor/gems/rspec-core-2.12.2/lib/rspec/core/subject.rb">
|
1050
1120
|
<provider selected="true" editor-type-id="text-editor">
|
1051
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
1052
|
-
<caret line="
|
1121
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="617" max-vertical-offset="3893">
|
1122
|
+
<caret line="45" column="0" selection-start-line="45" selection-start-column="0" selection-end-line="45" selection-end-column="0" />
|
1053
1123
|
<folding />
|
1054
1124
|
</state>
|
1055
1125
|
</provider>
|
1056
1126
|
</entry>
|
1057
|
-
<entry file="file://$PROJECT_DIR$/lib/script_executor/
|
1127
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
|
1058
1128
|
<provider selected="true" editor-type-id="text-editor">
|
1059
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
1060
|
-
<caret line="
|
1129
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="347" max-vertical-offset="1326">
|
1130
|
+
<caret line="40" column="18" selection-start-line="40" selection-start-column="18" selection-end-line="40" selection-end-column="18" />
|
1061
1131
|
<folding />
|
1062
1132
|
</state>
|
1063
1133
|
</provider>
|
1064
1134
|
</entry>
|
1065
|
-
<entry file="file://$PROJECT_DIR$/
|
1135
|
+
<entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
|
1066
1136
|
<provider selected="true" editor-type-id="text-editor">
|
1067
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
1068
|
-
<caret line="
|
1137
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="479" max-vertical-offset="1241">
|
1138
|
+
<caret line="40" column="0" selection-start-line="40" selection-start-column="0" selection-end-line="40" selection-end-column="0" />
|
1069
1139
|
<folding />
|
1070
1140
|
</state>
|
1071
1141
|
</provider>
|
1072
1142
|
</entry>
|
1073
|
-
<entry file="file://$PROJECT_DIR$/script_executor.
|
1143
|
+
<entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
|
1074
1144
|
<provider selected="true" editor-type-id="text-editor">
|
1075
|
-
<state vertical-scroll-proportion="
|
1076
|
-
<caret line="
|
1145
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="0" max-vertical-offset="136">
|
1146
|
+
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
1077
1147
|
<folding />
|
1078
1148
|
</state>
|
1079
1149
|
</provider>
|
1080
1150
|
</entry>
|
1081
|
-
<entry file="file://$PROJECT_DIR$/
|
1151
|
+
<entry file="file://$PROJECT_DIR$/README.md">
|
1152
|
+
<provider editor-type-id="MarkdownPreviewEditor">
|
1153
|
+
<state />
|
1154
|
+
</provider>
|
1082
1155
|
<provider selected="true" editor-type-id="text-editor">
|
1083
|
-
<state vertical-scroll-proportion="0.0" vertical-offset="
|
1084
|
-
<caret line="
|
1156
|
+
<state vertical-scroll-proportion="0.0" vertical-offset="1442" max-vertical-offset="2193">
|
1157
|
+
<caret line="93" column="24" selection-start-line="93" selection-start-column="24" selection-end-line="93" selection-end-column="24" />
|
1085
1158
|
<folding />
|
1086
1159
|
</state>
|
1087
1160
|
</provider>
|
1088
1161
|
</entry>
|
1089
|
-
<entry file="file://$PROJECT_DIR$/
|
1162
|
+
<entry file="file://$PROJECT_DIR$/CHANGES">
|
1090
1163
|
<provider selected="true" editor-type-id="text-editor">
|
1091
|
-
<state vertical-scroll-proportion="0.
|
1092
|
-
<caret line="
|
1164
|
+
<state vertical-scroll-proportion="0.8929987" vertical-offset="378" max-vertical-offset="1156">
|
1165
|
+
<caret line="62" column="2" selection-start-line="62" selection-start-column="2" selection-end-line="62" selection-end-column="35" />
|
1093
1166
|
<folding />
|
1094
1167
|
</state>
|
1095
1168
|
</provider>
|
data/CHANGES
CHANGED
@@ -27,6 +27,14 @@ module ScriptLocator
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def script_title script
|
31
|
+
if script[0] == '#'
|
32
|
+
StringIO.new(script[1..-1]).readline.strip
|
33
|
+
else
|
34
|
+
nil
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
30
38
|
private
|
31
39
|
|
32
40
|
def extract_data file
|
@@ -40,10 +48,10 @@ module ScriptLocator
|
|
40
48
|
def locate_scripts data
|
41
49
|
scripts = {}
|
42
50
|
|
43
|
-
stream = StringIO.new data
|
44
|
-
|
45
51
|
current_key = nil
|
46
52
|
|
53
|
+
stream = StringIO.new data
|
54
|
+
|
47
55
|
stream.each_line do |line|
|
48
56
|
if line =~ /^(\s)*\[[\w\d\s\-\_]*\](\s)*$/
|
49
57
|
marker = line.strip.gsub(/\[[\w\d\s\-\_]*\]/).first
|
data/spec/script_locator_spec.rb
CHANGED
@@ -16,7 +16,7 @@ describe MyScriptLocator do
|
|
16
16
|
|
17
17
|
scripts = subject.scripts(file)
|
18
18
|
|
19
|
-
scripts.
|
19
|
+
expect(scripts).not_to be_nil
|
20
20
|
end
|
21
21
|
|
22
22
|
it "reads from file completely if it does not have __END__ tag" do
|
@@ -24,7 +24,7 @@ describe MyScriptLocator do
|
|
24
24
|
|
25
25
|
scripts = subject.scripts(file)
|
26
26
|
|
27
|
-
scripts.
|
27
|
+
expect(scripts).not_to be_nil
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
@@ -36,7 +36,8 @@ describe MyScriptLocator do
|
|
36
36
|
|
37
37
|
result = subject.evaluate_script_body(scripts['test1'], binding)
|
38
38
|
|
39
|
-
result.
|
39
|
+
expect(result).to match /#{name}/
|
40
|
+
expect(subject.script_title(scripts['test1'])).to eq "Some description"
|
40
41
|
end
|
41
42
|
|
42
43
|
it "locates script inside external file and evaluates it as string" do
|
@@ -48,7 +49,7 @@ describe MyScriptLocator do
|
|
48
49
|
|
49
50
|
result = subject.evaluate_script_body(scripts['test1'], env, :string)
|
50
51
|
|
51
|
-
result.
|
52
|
+
expect(result).to match /#{env[:name]}/
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
@@ -57,6 +58,7 @@ end
|
|
57
58
|
__END__
|
58
59
|
|
59
60
|
[test1]
|
61
|
+
# Some description
|
60
62
|
|
61
63
|
echo "<%= name %>"
|
62
64
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: script_executor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Shvets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: highline
|