cybrid_api_id_ruby 0.129.472
Legitimate Ruby gem with standard dependencies
VBScript launching PowerShellSystem command execution in method
SHA-2563b5e82b17f746883b5ea8cc06b8f7deb2c2ecfcb50f033b4f55fab308d7b70fd
Evidence
1require 'rake'
2require 'rake/tasklib'
3require 'rspec/support'
4
5RSpec::Support.require_rspec_support "ruby_features"
6
7# :nocov:
8unless RSpec::Support.respond_to?(:require_rspec_core …
9:2… RSpec::Support.define_optimized_require_for_rspec(:core) { |f| require_relative "../#{f}" }
10end
11# :nocov:
12
13RSpec::Support.require_rspec_core "shell_escape"
14
15module RSpec
16 module Core
17 # RSpec rake task
18 #
19 # @see Rakefile
20 class RakeTask < ::Rake::TaskLib
21 include ::Rake::DSL if defined?(::Rake::DSL)
22 include RSpec::Core::ShellEscape
23
24 # Default path to the RSpec executable.
25 DEFAULT_RSPEC_PATH = File.expand_path('../../../../exe/rspec', __FILE__)
26
27 # Default pattern for spec files.
28 DEFAULT_PATTERN = 'spec/**{,/*/**}/*_spec.rb'
29
30 # Name of task. Defaults …
94:24… verbose
95
96 if with_clean_environment
97 return if system({}, command, :unsetenv_others => true)
98 else
99 return if system(command)
100 end
101
102 puts failure_message if failure_message
103
104 return unless fail_on_error
105 $stderr.puts "#{command} failed" if verbose
106 exit $?.exitstatus || 1
107 end
108
109 private
110
111 # @private
112 def define(args, &task_block)
113 desc "Run RSpec code examples" unless ::Rake.application.last_description
114
115 task name, *args do |_, task_args|
116 RakeFileUtils._ …
49:24… ance_variable_defined? :@__better_errors_bindings_stack
50 exception.send :remove_instance_variable, :@__better_errors_bindings_stack
51 end
52
53 @exception =
54 begin
55 Mar …
228:49… mediate) do
229 count.times do |i|
230 threads << Thread.new { yield(i) }
231 end
232 threads.map(&:value)
⋯5 lines
Showing the top 5 files — 7 more files (49 regions) not shown.
No evidence locations were recorded for this file. Raw result