Module: RShade::Utils

Defined in:
lib/rshade/utils.rb

Constant Summary collapse

RUBY_VERSION_PATTERN =
/ruby-[0-9.]*/.freeze

Class Method Summary collapse

Class Method Details

.default_excluded_pathObject



15
16
17
# File 'lib/rshade/utils.rb', line 15

def self.default_excluded_path
  [ENV['GEM_PATH'].split(':'), RUBY_VERSION_PATTERN, /internal/, %r{/gems/}].flatten.compact
end

.root_dirObject



11
12
13
# File 'lib/rshade/utils.rb', line 11

def self.root_dir
  @root_dir ||= File.expand_path('../../', __dir__)
end

.store_dirObject



7
8
9
# File 'lib/rshade/utils.rb', line 7

def self.store_dir
  File.expand_path('../../tmp', __dir__)
end