script_executor 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -2,28 +2,24 @@
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
4
  <list default="true" id="6995392e-f204-4557-be32-fd20f300d877" name="Default" comment="">
5
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/Gemfile.lock" afterPath="$PROJECT_DIR$/Gemfile.lock" />
6
- <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/script_executor.iml" afterPath="$PROJECT_DIR$/.idea/script_executor.iml" />
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/CHANGES" afterPath="$PROJECT_DIR$/CHANGES" />
6
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/script_executor/script_locator.rb" afterPath="$PROJECT_DIR$/lib/script_executor/script_locator.rb" />
7
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/spec/script_locator_spec.rb" afterPath="$PROJECT_DIR$/spec/script_locator_spec.rb" />
8
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/script_executor/version.rb" afterPath="$PROJECT_DIR$/lib/script_executor/version.rb" />
7
9
  <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
8
10
  </list>
9
11
  <ignored path="script_executor.iws" />
10
12
  <ignored path=".idea/workspace.xml" />
11
- <file path="/Dummy.txt" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762103123" ignored="false" />
13
+ <file path="/Dummy.txt" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1356118530293" ignored="false" />
12
14
  <file path="/Gemfile" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355437179953" ignored="false" />
13
15
  <file path="/script_executor_spec.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762516678" ignored="false" />
14
16
  <file path="$PROJECT_DIR$/../../ui/src/thor/oracle_client.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355417447890" ignored="false" />
15
17
  <file path="/oracle_client.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355417361715" ignored="false" />
16
18
  <file path="$PROJECT_DIR$/../../ui/src/docs/how-to-install-tools-on-mountain-lion.txt" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355179284273" ignored="false" />
17
19
  <file path="/how-to-install-tools-on-mountain-lion.txt" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355179183290" ignored="false" />
18
- <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482853" ignored="false" />
19
- <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/syck.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482853" ignored="false" />
20
- <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/mkmf.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482853" ignored="false" />
21
- <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/multi-tk.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482853" ignored="false" />
22
- <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/set.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482854" ignored="false" />
23
20
  <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/json/common.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482854" ignored="false" />
24
21
  <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/tkextlib/tile.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482854" ignored="false" />
25
22
  <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rexml/xpath_parser.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482854" ignored="false" />
26
- <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/tk.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482854" ignored="false" />
27
23
  <file path="$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@script_executor/gems/rspec-expectations-2.12.0/lib/rspec/matchers.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061696975" ignored="false" />
28
24
  <file path="$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/tk/autoload.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355061482854" ignored="false" />
29
25
  <file path="$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@script_executor/gems/mocha-0.13.1/lib/mocha/object_methods.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355432956485" ignored="false" />
@@ -67,7 +63,7 @@
67
63
  <file path="$PROJECT_DIR$/../../ui/src/Gemfile" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355507081269" ignored="false" />
68
64
  <file path="/fragment.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355433500821" ignored="false" />
69
65
  <file path="/script_executor.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762503911" ignored="false" />
70
- <file path="/CHANGES" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762366578" ignored="false" />
66
+ <file path="/CHANGES" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1356118598805" ignored="false" />
71
67
  <file path="$USER_HOME$/.rvm/gems/ruby-1.8.7-p371@r21/gems/rake-0.8.7/lib/rake.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355156976039" ignored="false" />
72
68
  <file path="$USER_HOME$/.rvm/gems/ruby-1.8.7-p371@r21/gems/file_utils-1.0.5/lib/file_utils/file_utils.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355082830869" ignored="false" />
73
69
  <file path="$PROJECT_DIR$/../../ui/src/bin/install_oracle_client.sh" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355179739279" ignored="false" />
@@ -122,8 +118,8 @@
122
118
  <file path="/executable.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355416708647" ignored="false" />
123
119
  <file path="$PROJECT_DIR$/../../ui/src/thor/tomcat.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355410403079" ignored="false" />
124
120
  <file path="/tomcat.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355410403079" ignored="false" />
125
- <file path="$PROJECT_DIR$/../../ui/src/thor/ssh.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762752713" ignored="false" />
126
- <file path="/ssh.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355516960127" ignored="false" />
121
+ <file path="$PROJECT_DIR$/../../ui/src/thor/ssh.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355767370410" ignored="false" />
122
+ <file path="/ssh.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355767136872" ignored="false" />
127
123
  <file path="$PROJECT_DIR$/../../ui/src/thor/homer.thor" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355416035915" ignored="false" />
128
124
  <file path="$PROJECT_DIR$/../../ui/src/vendor/gems/script_executor/lib/script_executor/script_executor.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355415829525" ignored="false" />
129
125
  <file path="$PROJECT_DIR$/../../ui/src/vendor/gems/script_executor/lib/script_executor.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355411914177" ignored="false" />
@@ -162,8 +158,8 @@
162
158
  <file path="/test2.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355506601837" ignored="false" />
163
159
  <file path="/signoff.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355507121000" ignored="false" />
164
160
  <file path="/script_helper.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762300792" ignored="false" />
165
- <file path="/script_locator_spec.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355766716130" ignored="false" />
166
- <file path="/script_locator.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1355762926157" ignored="false" />
161
+ <file path="/script_locator_spec.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1356121354915" ignored="false" />
162
+ <file path="/script_locator.rb" changelist="6995392e-f204-4557-be32-fd20f300d877" time="1356120843372" ignored="false" />
167
163
  <option name="TRACKING_ENABLED" value="true" />
168
164
  <option name="SHOW_DIALOG" value="false" />
169
165
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -183,27 +179,25 @@
183
179
  <file leaf-file-name="executable_spec.rb" pinned="false" current="false" current-in-tab="false">
184
180
  <entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
185
181
  <provider selected="true" editor-type-id="text-editor">
186
- <state line="7" column="58" selection-start="0" selection-end="2064" vertical-scroll-proportion="0.0">
182
+ <state line="13" column="32" selection-start="239" selection-end="239" vertical-scroll-proportion="0.0">
187
183
  <folding />
188
184
  </state>
189
185
  </provider>
190
186
  </entry>
191
187
  </file>
192
- <file leaf-file-name="script_locator_spec.rb" pinned="false" current="false" current-in-tab="false">
193
- <entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
188
+ <file leaf-file-name="executable.rb" pinned="false" current="false" current-in-tab="false">
189
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
194
190
  <provider selected="true" editor-type-id="text-editor">
195
- <state line="18" column="13" selection-start="340" selection-end="340" vertical-scroll-proportion="0.0">
196
- <folding>
197
- <element signature="e#457#511#0" expanded="true" />
198
- </folding>
191
+ <state line="140" column="58" selection-start="3444" selection-end="3444" vertical-scroll-proportion="0.0">
192
+ <folding />
199
193
  </state>
200
194
  </provider>
201
195
  </entry>
202
196
  </file>
203
- <file leaf-file-name=".rvmrc" pinned="false" current="false" current-in-tab="false">
204
- <entry file="file://$PROJECT_DIR$/.rvmrc">
197
+ <file leaf-file-name="script_executor.rb" pinned="false" current="false" current-in-tab="false">
198
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/script_executor.rb">
205
199
  <provider selected="true" editor-type-id="text-editor">
206
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
200
+ <state line="7" column="20" selection-start="109" selection-end="109" vertical-scroll-proportion="0.0">
207
201
  <folding />
208
202
  </state>
209
203
  </provider>
@@ -218,55 +212,57 @@
218
212
  </provider>
219
213
  </entry>
220
214
  </file>
221
- <file leaf-file-name="executable.rb" pinned="false" current="false" current-in-tab="false">
222
- <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
215
+ <file leaf-file-name="script_locator.rb" pinned="false" current="false" current-in-tab="false">
216
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
223
217
  <provider selected="true" editor-type-id="text-editor">
224
- <state line="175" column="0" selection-start="4090" selection-end="4090" vertical-scroll-proportion="0.0">
218
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
225
219
  <folding />
226
220
  </state>
227
221
  </provider>
228
222
  </entry>
229
223
  </file>
230
- <file leaf-file-name="script_locator.rb" pinned="false" current="false" current-in-tab="false">
231
- <entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
224
+ <file leaf-file-name="erb.rb" pinned="false" current="false" current-in-tab="false">
225
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/erb.rb">
232
226
  <provider selected="true" editor-type-id="text-editor">
233
- <state line="2" column="6" selection-start="21" selection-end="21" vertical-scroll-proportion="0.0">
227
+ <state line="71" column="1" selection-start="2081" selection-end="2109" vertical-scroll-proportion="-14.615385">
234
228
  <folding />
235
229
  </state>
236
230
  </provider>
237
231
  </entry>
238
232
  </file>
239
- <file leaf-file-name="CHANGES" pinned="false" current="false" current-in-tab="false">
240
- <entry file="file://$PROJECT_DIR$/CHANGES">
233
+ <file leaf-file-name="version.rb" pinned="false" current="false" current-in-tab="false">
234
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
241
235
  <provider selected="true" editor-type-id="text-editor">
242
- <state line="11" column="30" selection-start="173" selection-end="173" vertical-scroll-proportion="0.0">
236
+ <state line="2" column="21" selection-start="45" selection-end="45" vertical-scroll-proportion="0.0">
243
237
  <folding />
244
238
  </state>
245
239
  </provider>
246
240
  </entry>
247
241
  </file>
248
- <file leaf-file-name="Rakefile" pinned="false" current="true" current-in-tab="true">
249
- <entry file="file://$PROJECT_DIR$/Rakefile">
242
+ <file leaf-file-name="CHANGES" pinned="false" current="true" current-in-tab="true">
243
+ <entry file="file://$PROJECT_DIR$/CHANGES">
250
244
  <provider selected="true" editor-type-id="text-editor">
251
- <state line="31" column="3" selection-start="675" selection-end="675" vertical-scroll-proportion="0.51452285">
245
+ <state line="22" column="2" selection-start="300" selection-end="317" vertical-scroll-proportion="0.57050246">
252
246
  <folding />
253
247
  </state>
254
248
  </provider>
255
249
  </entry>
256
250
  </file>
257
- <file leaf-file-name="Gemfile" pinned="false" current="false" current-in-tab="false">
258
- <entry file="file://$PROJECT_DIR$/Gemfile">
251
+ <file leaf-file-name="script_locator_spec.rb" pinned="false" current="false" current-in-tab="false">
252
+ <entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
259
253
  <provider selected="true" editor-type-id="text-editor">
260
- <state line="14" column="28" selection-start="186" selection-end="186" vertical-scroll-proportion="0.0">
261
- <folding />
254
+ <state line="22" column="67" selection-start="475" selection-end="475" vertical-scroll-proportion="0.0">
255
+ <folding>
256
+ <element signature="e#520#580#0" expanded="true" />
257
+ </folding>
262
258
  </state>
263
259
  </provider>
264
260
  </entry>
265
261
  </file>
266
- <file leaf-file-name="dsl.rb" pinned="false" current="false" current-in-tab="false">
267
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.3/lib/bundler/dsl.rb">
262
+ <file leaf-file-name="Rakefile" pinned="false" current="false" current-in-tab="false">
263
+ <entry file="file://$PROJECT_DIR$/Rakefile">
268
264
  <provider selected="true" editor-type-id="text-editor">
269
- <state line="61" column="8" selection-start="2147" selection-end="2147" vertical-scroll-proportion="0.0">
265
+ <state line="31" column="3" selection-start="675" selection-end="675" vertical-scroll-proportion="0.0">
270
266
  <folding />
271
267
  </state>
272
268
  </provider>
@@ -293,13 +289,14 @@
293
289
  <option value="$PROJECT_DIR$/Rakefile" />
294
290
  <option value="$PROJECT_DIR$/lib/script_executor.rb" />
295
291
  <option value="$PROJECT_DIR$/Gemfile" />
296
- <option value="$PROJECT_DIR$/lib/script_executor/executable.rb" />
297
292
  <option value="$PROJECT_DIR$/lib/script_executor/script_helper.rb" />
298
- <option value="$PROJECT_DIR$/lib/script_executor/version.rb" />
299
- <option value="$PROJECT_DIR$/CHANGES" />
300
293
  <option value="$PROJECT_DIR$/lib/script_executor/script_executor.rb" />
301
294
  <option value="$PROJECT_DIR$/spec/script_executor_spec.rb" />
302
295
  <option value="$PROJECT_DIR$/lib/script_locator.rb" />
296
+ <option value="$PROJECT_DIR$/lib/script_executor/executable.rb" />
297
+ <option value="$PROJECT_DIR$/lib/script_executor/version.rb" />
298
+ <option value="$PROJECT_DIR$/CHANGES" />
299
+ <option value="$PROJECT_DIR$/lib/script_executor/script_locator.rb" />
303
300
  <option value="$PROJECT_DIR$/spec/script_locator_spec.rb" />
304
301
  </list>
305
302
  </option>
@@ -403,6 +400,38 @@
403
400
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
404
401
  </PATH_ELEMENT>
405
402
  </PATH>
403
+ <PATH>
404
+ <PATH_ELEMENT>
405
+ <option name="myItemId" value="script_executor" />
406
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
407
+ </PATH_ELEMENT>
408
+ <PATH_ELEMENT>
409
+ <option name="myItemId" value="External Libraries" />
410
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
411
+ </PATH_ELEMENT>
412
+ <PATH_ELEMENT>
413
+ <option name="myItemId" value="&lt; RVM: ruby-1.9.3-p327 [script_executor] &gt;" />
414
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
415
+ </PATH_ELEMENT>
416
+ </PATH>
417
+ <PATH>
418
+ <PATH_ELEMENT>
419
+ <option name="myItemId" value="script_executor" />
420
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
421
+ </PATH_ELEMENT>
422
+ <PATH_ELEMENT>
423
+ <option name="myItemId" value="External Libraries" />
424
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ExternalLibrariesNode" />
425
+ </PATH_ELEMENT>
426
+ <PATH_ELEMENT>
427
+ <option name="myItemId" value="&lt; RVM: ruby-1.9.3-p327 [script_executor] &gt;" />
428
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.NamedLibraryElementNode" />
429
+ </PATH_ELEMENT>
430
+ <PATH_ELEMENT>
431
+ <option name="myItemId" value="1.9.1" />
432
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
433
+ </PATH_ELEMENT>
434
+ </PATH>
406
435
  <PATH>
407
436
  <PATH_ELEMENT>
408
437
  <option name="myItemId" value="script_executor" />
@@ -469,10 +498,11 @@
469
498
  <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
470
499
  <property name="recentsLimit" value="5" />
471
500
  <property name="restartRequiresConfirmation" value="true" />
501
+ <property name="FullScreen" value="false" />
472
502
  <property name="options.searchVisible" value="true" />
473
503
  <property name="options.splitter.details.proportions" value="0.2" />
474
504
  </component>
475
- <component name="RunManager" selected="RSpec.executable_spec">
505
+ <component name="RunManager" selected="RSpec.script_locator_spec">
476
506
  <configuration default="false" name="ScriptExecutor should execute commands from :script parameter" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
477
507
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
478
508
  <module name="script_executor" />
@@ -486,6 +516,7 @@
486
516
  <env name="JRUBY_OPTS" value="-X+O" />
487
517
  </envs>
488
518
  <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
519
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
489
520
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
490
521
  <COVERAGE_PATTERN ENABLED="true">
491
522
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
@@ -521,6 +552,7 @@
521
552
  <env name="JRUBY_OPTS" value="-X+O" />
522
553
  </envs>
523
554
  <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
555
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
524
556
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
525
557
  <COVERAGE_PATTERN ENABLED="true">
526
558
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
@@ -555,6 +587,7 @@
555
587
  <env name="RUBYLIB" value="$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@script_executor/gems/ruby-debug-base19x-0.11.30.pre11/lib:$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@script_executor/gems/ruby-debug-ide-0.4.17.beta14/lib" />
556
588
  </envs>
557
589
  <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
590
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
558
591
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
559
592
  <COVERAGE_PATTERN ENABLED="true">
560
593
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
@@ -578,6 +611,40 @@
578
611
  <ConfigurationWrapper RunnerId="RubyRunner" />
579
612
  <method />
580
613
  </configuration>
614
+ <configuration default="false" name="script_locator_spec" type="RSpecRunConfigurationType" factoryName="RSpec" temporary="true">
615
+ <predefined_log_file id="RUBY_RSPEC" enabled="true" />
616
+ <module name="script_executor" />
617
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
618
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="WORK DIR" VALUE="$PROJECT_DIR$" />
619
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SHOULD_USE_SDK" VALUE="false" />
620
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
621
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
622
+ <envs>
623
+ <env name="JRUBY_OPTS" value="-X+O" />
624
+ </envs>
625
+ <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="true" />
626
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
627
+ <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
628
+ <COVERAGE_PATTERN ENABLED="true">
629
+ <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
630
+ </COVERAGE_PATTERN>
631
+ </EXTENSION>
632
+ <EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
633
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TESTS_FOLDER_PATH" VALUE="" />
634
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_SCRIPT_PATH" VALUE="$PROJECT_DIR$/spec/script_locator_spec.rb" />
635
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_RUNNER_PATH" VALUE="" />
636
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_FILE_MASK" VALUE="**/*_spec.rb" />
637
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_EXAMPLE_NAME" VALUE="" />
638
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="TEST_TEST_TYPE" VALUE="TEST_SCRIPT" />
639
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="SPEC_ARGS" VALUE="" />
640
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="RUNNER_VERSION" VALUE="" />
641
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="USE_CUSTOM_SPEC_RUNNER" VALUE="false" />
642
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="DRB" VALUE="false" />
643
+ <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="FULL_BACKTRACE" VALUE="false" />
644
+ <RunnerSettings RunnerId="RubyRunner" />
645
+ <ConfigurationWrapper RunnerId="RubyRunner" />
646
+ <method />
647
+ </configuration>
581
648
  <configuration default="true" type="RSpecRunConfigurationType" factoryName="RSpec">
582
649
  <predefined_log_file id="RUBY_RSPEC" enabled="true" />
583
650
  <module name="" />
@@ -588,6 +655,7 @@
588
655
  <RSPEC_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
589
656
  <envs />
590
657
  <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
658
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
591
659
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
592
660
  <COVERAGE_PATTERN ENABLED="true">
593
661
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
@@ -616,6 +684,7 @@
616
684
  <RUBY_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
617
685
  <envs />
618
686
  <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
687
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
619
688
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
620
689
  <COVERAGE_PATTERN ENABLED="true">
621
690
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
@@ -636,6 +705,7 @@
636
705
  <RTEST_RUN_CONFIG_SETTINGS_ID NAME="myPassParentEnvs" VALUE="true" />
637
706
  <envs />
638
707
  <EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
708
+ <EXTENSION ID="JRubyRunConfigurationExtension" />
639
709
  <EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
640
710
  <COVERAGE_PATTERN ENABLED="true">
641
711
  <PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
@@ -669,18 +739,20 @@
669
739
  <ConfigurationWrapper RunnerId="RubyRemoteDebugRunner" />
670
740
  <method />
671
741
  </configuration>
672
- <list size="4">
742
+ <list size="5">
673
743
  <item index="0" class="java.lang.String" itemvalue="Ruby remote debug.remote" />
674
744
  <item index="1" class="java.lang.String" itemvalue="RSpec.ScriptExecutor should execute commands from :script parameter" />
675
745
  <item index="2" class="java.lang.String" itemvalue="RSpec.ScriptExecutor should execute commands locally from the block of code as sudo" />
676
746
  <item index="3" class="java.lang.String" itemvalue="RSpec.executable_spec" />
747
+ <item index="4" class="java.lang.String" itemvalue="RSpec.script_locator_spec" />
677
748
  </list>
678
749
  <recent_temporary>
679
- <list size="4">
680
- <item index="0" class="java.lang.String" itemvalue="RSpec.executable_spec" />
750
+ <list size="5">
751
+ <item index="0" class="java.lang.String" itemvalue="RSpec.script_locator_spec" />
681
752
  <item index="1" class="java.lang.String" itemvalue="RSpec.executable_spec" />
682
- <item index="2" class="java.lang.String" itemvalue="RSpec.ScriptExecutor should execute commands from :script parameter" />
683
- <item index="3" class="java.lang.String" itemvalue="RSpec.ScriptExecutor should execute commands locally from the block of code as sudo" />
753
+ <item index="2" class="java.lang.String" itemvalue="RSpec.executable_spec" />
754
+ <item index="3" class="java.lang.String" itemvalue="RSpec.ScriptExecutor should execute commands from :script parameter" />
755
+ <item index="4" class="java.lang.String" itemvalue="RSpec.ScriptExecutor should execute commands locally from the block of code as sudo" />
684
756
  </list>
685
757
  </recent_temporary>
686
758
  </component>
@@ -701,11 +773,11 @@
701
773
  <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" />
702
774
  <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" />
703
775
  <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" />
704
- <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.22782387" sideWeight="0.6020202" order="0" side_tool="false" content_ui="combo" />
776
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.23420548" sideWeight="0.67474747" order="0" side_tool="false" content_ui="combo" />
705
777
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3979798" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
706
778
  <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" />
707
779
  <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" />
708
- <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32525253" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
780
+ <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32525253" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
709
781
  <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="7" side_tool="false" content_ui="tabs" />
710
782
  <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" />
711
783
  <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" />
@@ -751,6 +823,8 @@
751
823
  <option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
752
824
  <option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
753
825
  <option name="SHOW_DIRTY_RECURSIVELY" value="false" />
826
+ <option name="LIMIT_HISTORY" value="true" />
827
+ <option name="MAXIMUM_HISTORY_ROWS" value="1000" />
754
828
  <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
755
829
  <option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
756
830
  <option name="LAST_COMMIT_MESSAGE" />
@@ -773,116 +847,106 @@
773
847
  </breakpoint-manager>
774
848
  </component>
775
849
  <component name="editorHistoryManager">
776
- <entry file="file://$PROJECT_DIR$/Gemfile">
850
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
777
851
  <provider selected="true" editor-type-id="text-editor">
778
- <state line="8" column="24" selection-start="120" selection-end="120" vertical-scroll-proportion="0.0">
779
- <folding />
780
- </state>
852
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
781
853
  </provider>
782
854
  </entry>
783
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
855
+ <entry file="file://$PROJECT_DIR$/lib/script_locator.rb">
784
856
  <provider selected="true" editor-type-id="text-editor">
785
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
786
- <folding />
787
- </state>
857
+ <state line="2" column="58" selection-start="95" selection-end="95" vertical-scroll-proportion="0.034006376" />
788
858
  </provider>
789
859
  </entry>
790
- <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.3/lib/bundler/dsl.rb">
860
+ <entry file="file://$PROJECT_DIR$/lib/executable.rb">
791
861
  <provider selected="true" editor-type-id="text-editor">
792
- <state line="61" column="8" selection-start="2147" selection-end="2147" vertical-scroll-proportion="0.0">
793
- <folding />
794
- </state>
862
+ <state line="2" column="64" selection-start="91" selection-end="91" vertical-scroll-proportion="0.033195022" />
795
863
  </provider>
796
864
  </entry>
797
- <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
865
+ <entry file="file://$PROJECT_DIR$/Gemfile">
798
866
  <provider selected="true" editor-type-id="text-editor">
799
- <state line="175" column="0" selection-start="4090" selection-end="4090" vertical-scroll-proportion="0.0">
867
+ <state line="14" column="28" selection-start="186" selection-end="186" vertical-scroll-proportion="0.23284823">
800
868
  <folding />
801
869
  </state>
802
870
  </provider>
803
871
  </entry>
804
- <entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
872
+ <entry file="file://$USER_HOME$/.rvm/gems/ruby-1.9.3-p327@global/gems/bundler-1.2.3/lib/bundler/dsl.rb">
805
873
  <provider selected="true" editor-type-id="text-editor">
806
- <state line="1" column="16" selection-start="38" selection-end="38" vertical-scroll-proportion="0.0">
807
- <folding />
808
- </state>
874
+ <state line="61" column="8" selection-start="2147" selection-end="2147" vertical-scroll-proportion="0.016859852" />
809
875
  </provider>
810
876
  </entry>
811
- <entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
877
+ <entry file="file://$PROJECT_DIR$/.rvmrc">
812
878
  <provider selected="true" editor-type-id="text-editor">
813
- <state line="2" column="6" selection-start="21" selection-end="21" vertical-scroll-proportion="0.0">
814
- <folding />
815
- </state>
879
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
816
880
  </provider>
817
881
  </entry>
818
- <entry file="file://$PROJECT_DIR$/lib/script_executor/script_executor.rb">
882
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/executable.rb">
819
883
  <provider selected="true" editor-type-id="text-editor">
820
- <state line="7" column="20" selection-start="109" selection-end="109" vertical-scroll-proportion="0.0">
884
+ <state line="140" column="58" selection-start="3444" selection-end="3444" vertical-scroll-proportion="0.0">
821
885
  <folding />
822
886
  </state>
823
887
  </provider>
824
888
  </entry>
825
- <entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
889
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/script_executor.rb">
826
890
  <provider selected="true" editor-type-id="text-editor">
827
- <state line="7" column="58" selection-start="0" selection-end="2064" vertical-scroll-proportion="0.0">
891
+ <state line="7" column="20" selection-start="109" selection-end="109" vertical-scroll-proportion="0.0">
828
892
  <folding />
829
893
  </state>
830
894
  </provider>
831
895
  </entry>
832
- <entry file="file://$PROJECT_DIR$/lib/script_locator.rb">
896
+ <entry file="file://$PROJECT_DIR$/lib/script_executor.rb">
833
897
  <provider selected="true" editor-type-id="text-editor">
834
- <state line="2" column="58" selection-start="95" selection-end="95" vertical-scroll-proportion="0.034006376">
898
+ <state line="2" column="41" selection-start="96" selection-end="96" vertical-scroll-proportion="0.0">
835
899
  <folding />
836
900
  </state>
837
901
  </provider>
838
902
  </entry>
839
- <entry file="file://$PROJECT_DIR$/lib/executable.rb">
903
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/version.rb">
840
904
  <provider selected="true" editor-type-id="text-editor">
841
- <state line="2" column="64" selection-start="91" selection-end="91" vertical-scroll-proportion="0.033195022">
905
+ <state line="2" column="21" selection-start="45" selection-end="45" vertical-scroll-proportion="0.0">
842
906
  <folding />
843
907
  </state>
844
908
  </provider>
845
909
  </entry>
846
- <entry file="file://$PROJECT_DIR$/lib/script_executor.rb">
910
+ <entry file="file://$USER_HOME$/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/erb.rb">
847
911
  <provider selected="true" editor-type-id="text-editor">
848
- <state line="2" column="41" selection-start="96" selection-end="96" vertical-scroll-proportion="0.0">
912
+ <state line="71" column="1" selection-start="2081" selection-end="2109" vertical-scroll-proportion="-14.615385">
849
913
  <folding />
850
914
  </state>
851
915
  </provider>
852
916
  </entry>
853
- <entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
917
+ <entry file="file://$PROJECT_DIR$/lib/script_executor/script_locator.rb">
854
918
  <provider selected="true" editor-type-id="text-editor">
855
- <state line="18" column="13" selection-start="340" selection-end="340" vertical-scroll-proportion="0.0">
856
- <folding>
857
- <element signature="e#457#511#0" expanded="true" />
858
- </folding>
919
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
920
+ <folding />
859
921
  </state>
860
922
  </provider>
861
923
  </entry>
862
- <entry file="file://$PROJECT_DIR$/.rvmrc">
924
+ <entry file="file://$PROJECT_DIR$/spec/executable_spec.rb">
863
925
  <provider selected="true" editor-type-id="text-editor">
864
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
926
+ <state line="13" column="32" selection-start="239" selection-end="239" vertical-scroll-proportion="0.0">
865
927
  <folding />
866
928
  </state>
867
929
  </provider>
868
930
  </entry>
869
- <entry file="file://$PROJECT_DIR$/Gemfile">
931
+ <entry file="file://$PROJECT_DIR$/spec/script_locator_spec.rb">
870
932
  <provider selected="true" editor-type-id="text-editor">
871
- <state line="14" column="28" selection-start="186" selection-end="186" vertical-scroll-proportion="0.0">
872
- <folding />
933
+ <state line="22" column="67" selection-start="475" selection-end="475" vertical-scroll-proportion="0.0">
934
+ <folding>
935
+ <element signature="e#520#580#0" expanded="true" />
936
+ </folding>
873
937
  </state>
874
938
  </provider>
875
939
  </entry>
876
- <entry file="file://$PROJECT_DIR$/CHANGES">
940
+ <entry file="file://$PROJECT_DIR$/Rakefile">
877
941
  <provider selected="true" editor-type-id="text-editor">
878
- <state line="11" column="30" selection-start="173" selection-end="173" vertical-scroll-proportion="0.0">
942
+ <state line="31" column="3" selection-start="675" selection-end="675" vertical-scroll-proportion="0.0">
879
943
  <folding />
880
944
  </state>
881
945
  </provider>
882
946
  </entry>
883
- <entry file="file://$PROJECT_DIR$/Rakefile">
947
+ <entry file="file://$PROJECT_DIR$/CHANGES">
884
948
  <provider selected="true" editor-type-id="text-editor">
885
- <state line="31" column="3" selection-start="675" selection-end="675" vertical-scroll-proportion="0.51452285">
949
+ <state line="22" column="2" selection-start="300" selection-end="317" vertical-scroll-proportion="0.57050246">
886
950
  <folding />
887
951
  </state>
888
952
  </provider>
data/CHANGES CHANGED
@@ -16,4 +16,8 @@
16
16
 
17
17
  == Version 1.2.0
18
18
 
19
- * Introduce ScriptLocator module.
19
+ * Introduce ScriptLocator module.
20
+
21
+ == Version 1.2.1
22
+
23
+ * Fix binding issue.
@@ -2,10 +2,16 @@ require 'erb'
2
2
 
3
3
  module ScriptLocator
4
4
 
5
- def scripts file, binding
5
+ def scripts file
6
6
  data = extract_data file
7
7
 
8
- locate_scripts(data, binding)
8
+ locate_scripts(data)
9
+ end
10
+
11
+ def evaluate_script_body content, binding
12
+ template = ERB.new content
13
+
14
+ template.result(binding).strip
9
15
  end
10
16
 
11
17
  private
@@ -18,7 +24,7 @@ module ScriptLocator
18
24
  content[index+9..-1]
19
25
  end
20
26
 
21
- def locate_scripts data, binding
27
+ def locate_scripts data
22
28
  scripts = {}
23
29
 
24
30
  stream = StringIO.new data
@@ -40,17 +46,7 @@ module ScriptLocator
40
46
  end
41
47
  end
42
48
 
43
- scripts.each do |key, script|
44
- scripts[key] = execute_template(script, binding).strip
45
- end
46
-
47
49
  scripts
48
50
  end
49
51
 
50
- def execute_template content, binding
51
- template = ERB.new content
52
-
53
- template.result(binding)
54
- end
55
-
56
52
  end
@@ -1,3 +1,3 @@
1
1
  module ScriptExecutor
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -11,15 +11,18 @@ describe MyScriptLocator do
11
11
  subject { MyScriptLocator.new }
12
12
 
13
13
  it "should read after __END__" do
14
- result = subject.scripts(__FILE__, binding)
14
+ result = subject.scripts(__FILE__)
15
15
 
16
16
  result.should_not be_nil
17
17
  end
18
18
 
19
19
  it "should locate script" do
20
- result = subject.scripts(__FILE__, binding)
20
+ result = subject.scripts(__FILE__)
21
21
 
22
- result['test1'].should_not be_nil
22
+ name = "alisa"
23
+ script = subject.evaluate_script_body(result['test1'], binding)
24
+
25
+ script.should =~ /#{name}/
23
26
  end
24
27
 
25
28
  end
@@ -28,7 +31,7 @@ __END__
28
31
 
29
32
  [test1]
30
33
 
31
- echo "test1"
34
+ echo "<%= name %>"
32
35
 
33
36
  [test2]
34
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: script_executor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-17 00:00:00.000000000 Z
12
+ date: 2012-12-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  version: '0'
127
127
  segments:
128
128
  - 0
129
- hash: -2610870684344764088
129
+ hash: 3068490283749073270
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements: