Sha256: 397d5dddd7cf7931625c9d4d45ed518f50ff29a515e183b3674abe432082d54d

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

module RShade
  module Filter
    class Default
      RUBY_VERSION_PATTERN = /ruby-[0-9.]*/

      def self.create
        new.create
      end

      def create
        [create_exclude]
      end

      def create_exclude
        filter = ExcludePathFilter.new
        filter.config do |paths|
          excluded_paths.each do |path|
            paths << path
          end
        end
      end

      def excluded_paths
        [ENV['GEM_PATH'].split(':'), RUBY_VERSION_PATTERN, /internal/].flatten.compact
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rshade-0.1.9.1 lib/rshade/filter/default.rb
rshade-0.1.9 lib/rshade/filter/default.rb